mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +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()?
|
// Was this block requested by getBlock()?
|
||||||
if (maybeHandleRequestedData(m)) return;
|
if (maybeHandleRequestedData(m)) return;
|
||||||
if (blockChain == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
// Did we lose download peer status after requesting block data?
|
// Did we lose download peer status after requesting block data?
|
||||||
|
@ -919,7 +919,7 @@ public class Peer extends PeerSocketHandler {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (blockChain == null) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
// Note that we currently do nothing about peers which maliciously do not include transactions which
|
// Note that we currently do nothing about peers which maliciously do not include transactions which
|
||||||
|
|
Loading…
Add table
Reference in a new issue