|
async fn load_node_version(node: BoxedSyncSendNode, network: &str) -> String { |
|
// The Bitcoin Core version is requested via the getnetworkinfo RPC. This |
|
// RPC exposes sensitive information to the caller, so it might not be |
|
// allowed on the whitelist. We set the version to VERSION_UNKNOWN if we |
|
// can't request it. As RPC interface might not be up yet, we |
|
// try to request the version multiple times. |
|
let mut interval = interval(Duration::from_secs(10)); |
These 5x 10s are hardcoded. Would be good to be able to skip this via a node configuration option if we know this version information isn't available.
I could use this to speed up the peer-observer-infrastructure integration tests.
fork-observer/src/main.rs
Lines 780 to 786 in a6e2956
These 5x 10s are hardcoded. Would be good to be able to skip this via a node configuration option if we know this version information isn't available.
I could use this to speed up the peer-observer-infrastructure integration tests.