mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-17 10:51:22 +08:00
chore: updates for latest bitcoind
This commit is contained in:
@@ -46,7 +46,7 @@ use burnchains::BLOCKSTACK_MAGIC_MAINNET;
|
||||
use deps::bitcoin::blockdata::block::LoneBlockHeader;
|
||||
use deps::bitcoin::network::message::NetworkMessage;
|
||||
use deps::bitcoin::network::serialize::BitcoinHash;
|
||||
|
||||
use deps::bitcoin::network::serialize::Error as btc_serialization_err;
|
||||
use util::log;
|
||||
|
||||
pub const USER_AGENT: &'static str = "Stacks/2.0";
|
||||
@@ -497,6 +497,11 @@ impl BitcoinIndexer {
|
||||
Err(btc_error::ConnectionBroken) => {
|
||||
do_handshake = true;
|
||||
}
|
||||
Err(btc_error::SerializationError(
|
||||
btc_serialization_err::UnrecognizedNetworkCommand(s),
|
||||
)) => {
|
||||
debug!("Received unrecognized netowkr command while receiving a message: {}, ignoring", s);
|
||||
}
|
||||
Err(e) => {
|
||||
warn!("Unhandled error while receiving a message: {:?}", e);
|
||||
do_handshake = true;
|
||||
|
||||
@@ -146,6 +146,11 @@ impl RunLoop {
|
||||
.unwrap();
|
||||
info!("Miner node: checking UTXOs at address: {}", btc_addr);
|
||||
|
||||
match burnchain.create_wallet_if_dne() {
|
||||
Err(e) => warn!("Error when creating wallet: {:?}", e),
|
||||
_ => {}
|
||||
}
|
||||
|
||||
let utxos =
|
||||
burnchain.get_utxos(&keychain.generate_op_signer().get_public_key(), 1, None, 0);
|
||||
if utxos.is_none() {
|
||||
|
||||
Reference in New Issue
Block a user