MCPcopy Create free account
hub / github.com/bwt-dev/bwt / test_rpc

Method test_rpc

src/app.rs:313–317  ·  view source on GitHub ↗
(config: &Config)

Source from the content-addressed store, hash-verified

311 }
312
313 pub fn test_rpc(config: &Config) -> Result<()> {
314 let rpc = RpcClient::new(config.bitcoind_url(), config.bitcoind_auth()?)?;
315 rpc.get_wallet_info()?;
316 Ok(())
317 }
318}
319
320// Check if the wallet is loaded, try loading it if not, and create the wallet

Callers

nothing calls this directly

Calls 2

bitcoind_urlMethod · 0.80
bitcoind_authMethod · 0.80

Tested by

no test coverage detected