Function snarkvm_ledger_block::coinbase_target
source · pub fn coinbase_target(
previous_target: u64,
previous_block_timestamp: i64,
block_timestamp: i64,
anchor_time: u16,
num_blocks_per_epoch: u32,
genesis_target: u64
) -> Result<u64>
Expand description
Calculate the coinbase target for the given block timestamps and target.