mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
parent
bbe10f52f8
commit
bf78c131cf
@ -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)?)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user