Returns expected block time for the given network in seconds.
(network: Network)
| 46 | |
| 47 | /// Returns expected block time for the given network in seconds. |
| 48 | fn 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. |
no test coverage detected