Skip to content

Commit

Permalink
CRC: fix typo in test descriptions and fix imports
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Nov 5, 2024
1 parent 0f2ad94 commit c80fa54
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions stacks-signer/src/chainstate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ use blockstack_lib::chainstate::nakamoto::NakamotoBlock;
use blockstack_lib::chainstate::stacks::TenureChangePayload;
use blockstack_lib::net::api::getsortition::SortitionInfo;
use blockstack_lib::util_lib::db::Error as DBError;
use clarity::types::chainstate::BurnchainHeaderHash;
use clarity::util::get_epoch_time_secs;
use slog::{slog_info, slog_warn};
use stacks_common::types::chainstate::{ConsensusHash, StacksPublicKey};
use stacks_common::types::chainstate::{BurnchainHeaderHash, ConsensusHash, StacksPublicKey};
use stacks_common::util::get_epoch_time_secs;
use stacks_common::util::hash::Hash160;
use stacks_common::{info, warn};

Expand Down
2 changes: 1 addition & 1 deletion stacks-signer/src/signerdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use blockstack_lib::util_lib::db::{
Error as DBError,
};
use clarity::types::chainstate::{BurnchainHeaderHash, StacksAddress};
use clarity::util::get_epoch_time_secs;
use libsigner::BlockProposal;
use rusqlite::{
params, Connection, Error as SqliteError, OpenFlags, OptionalExtension, Transaction,
Expand All @@ -33,6 +32,7 @@ use serde::{Deserialize, Serialize};
use slog::{slog_debug, slog_error};
use stacks_common::codec::{read_next, write_next, Error as CodecError, StacksMessageCodec};
use stacks_common::types::chainstate::ConsensusHash;
use stacks_common::util::get_epoch_time_secs;
use stacks_common::util::hash::Sha512Trunc256Sum;
use stacks_common::util::secp256k1::MessageSignature;
use stacks_common::{debug, define_u8_enum, error};
Expand Down
3 changes: 1 addition & 2 deletions stackslib/src/chainstate/stacks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,13 +1101,12 @@ pub const MAX_MICROBLOCK_SIZE: u32 = 65536;

#[cfg(test)]
pub mod test {
use clarity::util::get_epoch_time_secs;
use clarity::vm::representations::{ClarityName, ContractName};
use clarity::vm::ClarityVersion;
use stacks_common::bitvec::BitVec;
use stacks_common::util::hash::*;
use stacks_common::util::log;
use stacks_common::util::secp256k1::Secp256k1PrivateKey;
use stacks_common::util::{get_epoch_time_secs, log};

use super::*;
use crate::chainstate::burn::BlockSnapshot;
Expand Down
4 changes: 2 additions & 2 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4501,7 +4501,7 @@ fn locally_rejected_blocks_overriden_by_global_acceptance() {

#[test]
#[ignore]
/// Test that signers that have accept a locally signed block N+1 built in tenure A can sign a block proposed during a
/// Test that signers that have accepedt a locally signed block N+1 built in tenure A can sign a block proposed during a
/// 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.
///
/// Test Setup:
Expand Down Expand Up @@ -4725,7 +4725,7 @@ fn reorg_locally_accepted_blocks_across_tenures_succeeds() {

#[test]
#[ignore]
/// Test that signers that have accept a locally signed block N+1 built in tenure A cannot sign a block proposed during a
/// Test that signers that have accepted a locally signed block N+1 built in tenure A cannot sign a block proposed during a
/// 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
/// before the specified timeout has been exceeded.
///
Expand Down

0 comments on commit c80fa54

Please sign in to comment.