Skip to content

Commit 5d5c91c

Browse files
committed
fix: clippy errors
1 parent 6b7104a commit 5d5c91c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

stacks-signer/src/client/stacks_client.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ use std::time::{Duration, Instant};
2020
use blockstack_lib::chainstate::nakamoto::NakamotoBlock;
2121
use blockstack_lib::chainstate::stacks::boot::{NakamotoSignerEntry, SIGNERS_NAME};
2222
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;
2824
use blockstack_lib::net::api::callreadonly::CallReadOnlyResponse;
2925
use blockstack_lib::net::api::get_tenures_fork_info::{
3026
TenureForkingInfo, RPC_TENURE_FORKING_INFO_PATH,
@@ -61,8 +57,6 @@ use crate::runloop::RewardCycleInfo;
6157
pub struct StacksClient {
6258
/// The stacks address of the signer
6359
stacks_address: StacksAddress,
64-
/// The private key used in all stacks node communications
65-
stacks_private_key: StacksPrivateKey,
6660
/// The stacks node HTTP base endpoint
6761
http_origin: String,
6862
/// The types of transactions
@@ -94,7 +88,6 @@ pub struct CurrentAndLastSortition {
9488
impl From<&GlobalConfig> for StacksClient {
9589
fn from(config: &GlobalConfig) -> Self {
9690
Self {
97-
stacks_private_key: config.stacks_private_key,
9891
stacks_address: config.stacks_address,
9992
http_origin: format!("http://{}", config.node_host),
10093
tx_version: config.network.to_transaction_version(),
@@ -123,7 +116,6 @@ impl StacksClient {
123116
};
124117
let stacks_address = StacksAddress::p2pkh(mainnet, &pubkey);
125118
Self {
126-
stacks_private_key,
127119
stacks_address,
128120
http_origin: format!("http://{}", node_host),
129121
tx_version,

0 commit comments

Comments
 (0)