Crate bitcoind[−][src]
Expand description
Bitcoind
Utility to run a regtest bitcoind process, useful in integration testing environment
use bitcoincore_rpc::RpcApi; let bitcoind = bitcoind::BitcoinD::new("/usr/local/bin/bitcoind").unwrap(); assert_eq!(0, bitcoind.client.get_blockchain_info().unwrap().blocks);
Re-exports
pub extern crate bitcoincore_rpc; |
pub extern crate tempfile; |
Structs
BitcoinD | Struct representing the bitcoind process with related information |
Config | Contains all the information to connect to this node |
Enums
Error | All the possible error in this crate |
P2P | Enum to specify p2p settings |
Functions
get_available_port | Returns a non-used local port if available Note there is a race condition during the time the method check availability and the caller |