Skip to content

Commit c80fa54

Browse files
committed
CRC: fix typo in test descriptions and fix imports
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 0f2ad94 commit c80fa54

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

stacks-signer/src/chainstate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ use blockstack_lib::chainstate::nakamoto::NakamotoBlock;
1919
use blockstack_lib::chainstate::stacks::TenureChangePayload;
2020
use blockstack_lib::net::api::getsortition::SortitionInfo;
2121
use blockstack_lib::util_lib::db::Error as DBError;
22-
use clarity::types::chainstate::BurnchainHeaderHash;
23-
use clarity::util::get_epoch_time_secs;
2422
use slog::{slog_info, slog_warn};
25-
use stacks_common::types::chainstate::{ConsensusHash, StacksPublicKey};
23+
use stacks_common::types::chainstate::{BurnchainHeaderHash, ConsensusHash, StacksPublicKey};
24+
use stacks_common::util::get_epoch_time_secs;
2625
use stacks_common::util::hash::Hash160;
2726
use stacks_common::{info, warn};
2827

stacks-signer/src/signerdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use blockstack_lib::util_lib::db::{
2424
Error as DBError,
2525
};
2626
use clarity::types::chainstate::{BurnchainHeaderHash, StacksAddress};
27-
use clarity::util::get_epoch_time_secs;
2827
use libsigner::BlockProposal;
2928
use rusqlite::{
3029
params, Connection, Error as SqliteError, OpenFlags, OptionalExtension, Transaction,
@@ -33,6 +32,7 @@ use serde::{Deserialize, Serialize};
3332
use slog::{slog_debug, slog_error};
3433
use stacks_common::codec::{read_next, write_next, Error as CodecError, StacksMessageCodec};
3534
use stacks_common::types::chainstate::ConsensusHash;
35+
use stacks_common::util::get_epoch_time_secs;
3636
use stacks_common::util::hash::Sha512Trunc256Sum;
3737
use stacks_common::util::secp256k1::MessageSignature;
3838
use stacks_common::{debug, define_u8_enum, error};

stackslib/src/chainstate/stacks/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,13 +1101,12 @@ pub const MAX_MICROBLOCK_SIZE: u32 = 65536;
11011101

11021102
#[cfg(test)]
11031103
pub mod test {
1104-
use clarity::util::get_epoch_time_secs;
11051104
use clarity::vm::representations::{ClarityName, ContractName};
11061105
use clarity::vm::ClarityVersion;
11071106
use stacks_common::bitvec::BitVec;
11081107
use stacks_common::util::hash::*;
1109-
use stacks_common::util::log;
11101108
use stacks_common::util::secp256k1::Secp256k1PrivateKey;
1109+
use stacks_common::util::{get_epoch_time_secs, log};
11111110

11121111
use super::*;
11131112
use crate::chainstate::burn::BlockSnapshot;

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,7 @@ fn locally_rejected_blocks_overriden_by_global_acceptance() {
45014501

45024502
#[test]
45034503
#[ignore]
4504-
/// Test that signers that have accept a locally signed block N+1 built in tenure A can sign a block proposed during a
4504+
/// Test that signers that have accepedt a locally signed block N+1 built in tenure A can sign a block proposed during a
45054505
/// new tenure B built upon the last globally accepted block N if the timeout is exceeded, i.e. a reorg can occur at a tenure boundary.
45064506
///
45074507
/// Test Setup:
@@ -4725,7 +4725,7 @@ fn reorg_locally_accepted_blocks_across_tenures_succeeds() {
47254725

47264726
#[test]
47274727
#[ignore]
4728-
/// Test that signers that have accept a locally signed block N+1 built in tenure A cannot sign a block proposed during a
4728+
/// Test that signers that have accepted a locally signed block N+1 built in tenure A cannot sign a block proposed during a
47294729
/// new tenure B built upon the last globally accepted block N if the timeout is not exceeded, i.e. a reorg cannot occur at a tenure boundary
47304730
/// before the specified timeout has been exceeded.
47314731
///

0 commit comments

Comments
 (0)