refactor: some constants moved

This commit is contained in:
Jude Nelson
2024-04-29 10:03:27 -04:00
parent c40b801b37
commit bbade15335

View File

@@ -40,7 +40,9 @@ pub type StacksEpoch = GenericStacksEpoch<ExecutionCost>;
pub const SYSTEM_FORK_SET_VERSION: [u8; 4] = [23u8, 0u8, 0u8, 0u8];
// chain id
pub use stacks_common::consts::{CHAIN_ID_MAINNET, CHAIN_ID_TESTNET, STACKS_EPOCH_MAX};
pub use stacks_common::consts::{
CHAIN_ID_MAINNET, CHAIN_ID_TESTNET, MINING_COMMITMENT_WINDOW, STACKS_EPOCH_MAX,
};
// peer version (big-endian)
// first byte == major network protocol version (currently 0x18)
@@ -74,10 +76,6 @@ pub const NETWORK_ID_TESTNET: u32 = 0xff000000;
// default port
pub const NETWORK_P2P_PORT: u16 = 6265;
// sliding burnchain window over which a miner's past block-commit payouts will be used to weight
// its current block-commit in a sortition
pub const MINING_COMMITMENT_WINDOW: u8 = 6;
// Number of previous burnchain blocks to search to find burnchain-hosted Stacks operations
pub const BURNCHAIN_TX_SEARCH_WINDOW: u8 = 6;