mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 10:45:51 +00: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
@ -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…
x
Reference in New Issue
Block a user