We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ee551 commit bafbfdeCopy full SHA for bafbfde
stacks-node/src/burnchains/bitcoin_regtest_controller.rs
@@ -484,10 +484,10 @@ impl BitcoinRegtestController {
484
/// tries to instantiate it or **panics** otherwise.
485
/// If the node is **not** a miner, returns None (e.g. follower node).
486
fn create_rpc_client_unchecked(config: &Config) -> Option<BitcoinRpcClient> {
487
- config.node.miner.then_some(
+ config.node.miner.then(|| {
488
BitcoinRpcClient::from_stx_config(&config)
489
- .expect("unable to instantiate the RPC client for miner node!"),
490
- )
+ .expect("unable to instantiate the RPC client for miner node!")
+ })
491
}
492
493
/// Attempt to get a reference to the underlying [`BitcoinRpcClient`].
0 commit comments