block_hash => blockhash
This commit is contained in:
committed by
Greg Fitzgerald
parent
0f1582c196
commit
a94880574b
@ -11,14 +11,14 @@ pub const DEFAULT_SLOTS_PER_EPOCH: u64 = 64;
|
||||
|
||||
/// The time window of recent block hash values that the bank will track the signatures
|
||||
/// of over. Once the bank discards a block hash, it will reject any transactions that use
|
||||
/// that `recent_block_hash` in a transaction. Lowering this value reduces memory consumption,
|
||||
/// but requires clients to update its `recent_block_hash` more frequently. Raising the value
|
||||
/// that `recent_blockhash` in a transaction. Lowering this value reduces memory consumption,
|
||||
/// but requires clients to update its `recent_blockhash` more frequently. Raising the value
|
||||
/// lengthens the time a client must wait to be certain a missing transaction will
|
||||
/// not be processed by the network.
|
||||
pub const MAX_HASH_AGE_IN_SECONDS: usize = 120;
|
||||
|
||||
pub const MAX_RECENT_TICK_HASHES: usize = NUM_TICKS_PER_SECOND as usize * MAX_HASH_AGE_IN_SECONDS;
|
||||
pub const MAX_RECENT_BLOCK_HASHES: usize =
|
||||
pub const MAX_RECENT_BLOCKHASHES: usize =
|
||||
MAX_RECENT_TICK_HASHES / (DEFAULT_TICKS_PER_SLOT as usize);
|
||||
|
||||
pub fn duration_as_us(d: &Duration) -> u64 {
|
||||
|
Reference in New Issue
Block a user