@@ -20,11 +20,7 @@ use std::time::{Duration, Instant};
20
20
use blockstack_lib:: chainstate:: nakamoto:: NakamotoBlock ;
21
21
use blockstack_lib:: chainstate:: stacks:: boot:: { NakamotoSignerEntry , SIGNERS_NAME } ;
22
22
use blockstack_lib:: chainstate:: stacks:: db:: StacksBlockHeaderTypes ;
23
- use blockstack_lib:: chainstate:: stacks:: {
24
- StacksTransaction , StacksTransactionSigner , TransactionAnchorMode , TransactionAuth ,
25
- TransactionContractCall , TransactionPayload , TransactionPostConditionMode ,
26
- TransactionSpendingCondition , TransactionVersion ,
27
- } ;
23
+ use blockstack_lib:: chainstate:: stacks:: TransactionVersion ;
28
24
use blockstack_lib:: net:: api:: callreadonly:: CallReadOnlyResponse ;
29
25
use blockstack_lib:: net:: api:: get_tenures_fork_info:: {
30
26
TenureForkingInfo , RPC_TENURE_FORKING_INFO_PATH ,
@@ -61,8 +57,6 @@ use crate::runloop::RewardCycleInfo;
61
57
pub struct StacksClient {
62
58
/// The stacks address of the signer
63
59
stacks_address : StacksAddress ,
64
- /// The private key used in all stacks node communications
65
- stacks_private_key : StacksPrivateKey ,
66
60
/// The stacks node HTTP base endpoint
67
61
http_origin : String ,
68
62
/// The types of transactions
@@ -94,7 +88,6 @@ pub struct CurrentAndLastSortition {
94
88
impl From < & GlobalConfig > for StacksClient {
95
89
fn from ( config : & GlobalConfig ) -> Self {
96
90
Self {
97
- stacks_private_key : config. stacks_private_key ,
98
91
stacks_address : config. stacks_address ,
99
92
http_origin : format ! ( "http://{}" , config. node_host) ,
100
93
tx_version : config. network . to_transaction_version ( ) ,
@@ -123,7 +116,6 @@ impl StacksClient {
123
116
} ;
124
117
let stacks_address = StacksAddress :: p2pkh ( mainnet, & pubkey) ;
125
118
Self {
126
- stacks_private_key,
127
119
stacks_address,
128
120
http_origin : format ! ( "http://{}" , node_host) ,
129
121
tx_version,
0 commit comments