MCPcopy Create free account
hub / github.com/bitcoindevkit/bdk-cli / node_exec

Method node_exec

tests/integration.rs:185–198  ·  view source on GitHub ↗

Execute bdk-cli node command

(&self, args: &[&str])

Source from the content-addressed store, hash-verified

183
184 /// Execute bdk-cli node command
185 fn node_exec(&self, args: &[&str]) -> Result<Value, IntTestError> {
186 // Check if data directory is specified
187 let mut node_args = if let Some(datadir) = &self.node_datadir {
188 let datadir = datadir.as_os_str().to_str().unwrap();
189 ["--network", &self.network, "--datadir", datadir, "node"].to_vec()
190 } else {
191 ["--network", &self.network, "node"].to_vec()
192 };
193
194 for arg in args {
195 node_args.push(arg);
196 }
197 run_cmd_with_args(&self.target, &node_args)
198 }
199 }
200
201 // Run A Basic wallet operation test, with given feature

Callers 1

basic_wallet_opsFunction · 0.80

Calls 1

run_cmd_with_argsFunction · 0.85

Tested by

no test coverage detected