mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
Peer: Lower log priority of message about not being configured with a block chain.
Using Peer[Group] to download blocks with no block chain is reasonable and printing a message every time a block is received is annoying.
This commit is contained in:
parent
021b0d76fe
commit
2c8ffc84ec
1 changed files with 2 additions and 2 deletions
|
@ -856,7 +856,7 @@ public class Peer extends PeerSocketHandler {
|
|||
// Was this block requested by getBlock()?
|
||||
if (maybeHandleRequestedData(m)) return;
|
||||
if (blockChain == null) {
|
||||
log.warn("Received block but was not configured with an AbstractBlockChain");
|
||||
log.debug("Received block but was not configured with an AbstractBlockChain");
|
||||
return;
|
||||
}
|
||||
// Did we lose download peer status after requesting block data?
|
||||
|
@ -919,7 +919,7 @@ public class Peer extends PeerSocketHandler {
|
|||
return;
|
||||
}
|
||||
if (blockChain == null) {
|
||||
log.warn("Received filtered block but was not configured with an AbstractBlockChain");
|
||||
log.debug("Received filtered block but was not configured with an AbstractBlockChain");
|
||||
return;
|
||||
}
|
||||
// Note that we currently do nothing about peers which maliciously do not include transactions which
|
||||
|
|
Loading…
Add table
Reference in a new issue