diff options
author | Antoine A <> | 2022-03-23 21:36:38 +0100 |
---|---|---|
committer | Antoine A <> | 2022-03-23 21:36:38 +0100 |
commit | 4855a6ec05351a697de9f10be1597eaa8a726c0a (patch) | |
tree | 442bf9000470d244ba51710dc5c9f3b68ca2b24c /btc-wire | |
parent | effa824a4de6f09a999a578f30ba3e341d380b31 (diff) | |
download | depolymerization-4855a6ec05351a697de9f10be1597eaa8a726c0a.tar.gz depolymerization-4855a6ec05351a697de9f10be1597eaa8a726c0a.tar.bz2 depolymerization-4855a6ec05351a697de9f10be1597eaa8a726c0a.zip |
dirty fix for eth tests and other improvements
Diffstat (limited to 'btc-wire')
-rw-r--r-- | btc-wire/src/main.rs | 2 | ||||
-rw-r--r-- | btc-wire/src/rpc.rs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/btc-wire/src/main.rs b/btc-wire/src/main.rs index 16d52a4..53ec673 100644 --- a/btc-wire/src/main.rs +++ b/btc-wire/src/main.rs @@ -110,6 +110,7 @@ fn init(config: Option<PathBuf>, init: Init) -> LoopResult<()> { rpc.load_wallet(WIRE_WALLET_NAME).ok();
// Load previous address
+ // TODO Use address label instead of the database ?
let prev_addr = db.query_opt("SELECT value FROM state WHERE name = 'addr'", &[])?;
let addr = if let Some(row) = prev_addr {
sql_addr(&row, 0)
@@ -158,6 +159,7 @@ fn run(config: Option<PathBuf>) { Network::Regtest => "regtest",
};
info!("Running on {} chain", chain_name);
+ // TODO Check wire wallet own config PAYTO address
let rpc_watcher = auto_rpc_common(state.btc_config.clone());
let rpc_analysis = auto_rpc_common(state.btc_config.clone());
diff --git a/btc-wire/src/rpc.rs b/btc-wire/src/rpc.rs index 786d21c..9aed519 100644 --- a/btc-wire/src/rpc.rs +++ b/btc-wire/src/rpc.rs @@ -47,7 +47,7 @@ pub fn auto_rpc_wallet(config: BitcoinConfig, wallet: &'static str) -> AutoRpcWa let mut rpc = Rpc::wallet(config, wallet) .map_err(|err| error!("connect RPC: {}", err)) .ok()?; - rpc.load_wallet(wallet).ok(); + rpc.load_wallet(wallet).ok(); rpc.unlock_wallet(&password()) .map_err(|err| error!("connect RPC: {}", err)) .ok()?; |