Skip to content

Commit

Permalink
Don't log scripthash
Browse files Browse the repository at this point in the history
  • Loading branch information
romanz committed Jun 26, 2022
1 parent bbe10f5 commit bf78c13
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ impl Rpc {
Some(status) => self.tracker.get_balance(status),
None => {
info!(
"{} blockchain.scripthash.get_balance called for unsubscribed scripthash: {}",
UNSUBSCRIBED_QUERY_MESSAGE, scripthash
"{} blockchain.scripthash.get_balance called for unsubscribed scripthash",
UNSUBSCRIBED_QUERY_MESSAGE
);
self.tracker.get_balance(&self.new_status(*scripthash)?)
}
Expand All @@ -272,8 +272,8 @@ impl Rpc {
Some(status) => json!(status.get_history()),
None => {
info!(
"{} blockchain.scripthash.get_history called for unsubscribed scripthash: {}",
UNSUBSCRIBED_QUERY_MESSAGE, scripthash
"{} blockchain.scripthash.get_history called for unsubscribed scripthash",
UNSUBSCRIBED_QUERY_MESSAGE
);
json!(self.new_status(*scripthash)?.get_history())
}
Expand All @@ -290,8 +290,8 @@ impl Rpc {
Some(status) => self.tracker.get_unspent(status),
None => {
info!(
"{} blockchain.scripthash.listunspent called for unsubscribed scripthash: {}",
UNSUBSCRIBED_QUERY_MESSAGE, scripthash
"{} blockchain.scripthash.listunspent called for unsubscribed scripthash",
UNSUBSCRIBED_QUERY_MESSAGE
);
self.tracker.get_unspent(&self.new_status(*scripthash)?)
}
Expand Down

0 comments on commit bf78c13

Please sign in to comment.