1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Don't log scripthash

Fixes #724
This commit is contained in:
Roman Zeyde 2022-06-26 21:26:54 +03:00
parent bbe10f52f8
commit bf78c131cf
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -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)?)
}
@ -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())
}
@ -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)?)
}