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

Function network_block_time

bridge/tests/bridge/helper.rs:48–53  ·  view source on GitHub ↗

Returns expected block time for the given network in seconds.

(network: Network)

Source from the content-addressed store, hash-verified

46
47/// Returns expected block time for the given network in seconds.
48fn network_block_time(network: Network) -> u32 {
49 match network {
50 Network::Regtest => load_u32_env_var_from_file(REGTEST_BLOCK_TIME, TEST_ENV_FILE),
51 _ => 35, // Testnet, signet. This value is for Alpen signet. See https://mempool0713bb23.devnet-annapurna.stratabtc.org/
52 }
53}
54
55/// Provides a safe waiting duration in seconds for transaction confirmation on the specified network.
56/// This duration must be at least as long as the expected block time for that network.

Callers 1

tx_wait_timeFunction · 0.85

Calls 1

Tested by

no test coverage detected