MCPcopy Create free account
hub / github.com/BitVM/BitVM / get_start_time_block_number

Function get_start_time_block_number

bridge/src/superblock.rs:18–24  ·  view source on GitHub ↗

TODO: Implement selecting a block that marks the start of a superblock measurement period that lasts for the period ∆C (e.g. 2000 blocks), during which the operator must observe all blocks on the main chain and identify the heaviest superblock SB. */

(network: Network)

Source from the content-addressed store, hash-verified

16 all blocks on the main chain and identify the heaviest superblock SB.
17*/
18pub fn get_start_time_block_number(network: Network) -> u32 {
19 match network {
20 Network::Bitcoin => 161249,
21 Network::Regtest => 100,
22 _ => 161249,
23 }
24}
25
26// TODO: Replace with a real superblock
27pub fn find_superblock() -> Header {

Callers 5

start_timeMethod · 0.85
test_start_time_successFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_start_time_successFunction · 0.68