-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electrum improvements #1164
Electrum improvements #1164
Conversation
sstone
commented
Oct 4, 2019
- electrum client: downgrade log level for some connection events from INFO to DEBUG
- electrum watcher: don't ask for Merkle Proofs for unconfirmed txs (which by definition cannot exist)
Codecov Report
@@ Coverage Diff @@
## master #1164 +/- ##
==========================================
+ Coverage 77.12% 77.15% +0.02%
==========================================
Files 142 142
Lines 9929 9930 +1
Branches 403 403
==========================================
+ Hits 7658 7661 +3
+ Misses 2271 2269 -2
|
@@ -92,7 +92,7 @@ class ElectrumClient(serverAddress: InetSocketAddress, ssl: SSL)(implicit val ec | |||
}) | |||
|
|||
// Start the client. | |||
log.info("connecting to server={}", serverAddress) | |||
log.debug("connecting to server={}", serverAddress) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not convinced that hiding connection issues is the right thing to do.
@@ -867,7 +867,7 @@ object ElectrumWallet { | |||
val confirmedBalance = confirmedReceived.map(_.amount).sum - confirmedSpents.map(_.amount).sum | |||
val unconfirmedBalance = unconfirmedReceived.map(_.amount).sum - unconfirmedSpents.map(_.amount).sum | |||
|
|||
logger.debug(s"scriptHash=$scriptHash confirmedBalance=$confirmedBalance unconfirmedBalance=$unconfirmedBalance)") | |||
logger.trace(s"scriptHash=$scriptHash confirmedBalance=$confirmedBalance unconfirmedBalance=$unconfirmedBalance)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only trace
in the entire code base. Is it really such a special case that we need it here and not anywhere else?
Our info logs were too spammy.
This reverts commit 9d5d5b7.
15f76e0
to
5db67b4
Compare