mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-25 07:07:39 +01:00
PeerGroup: print a log warn if there's no blockchain.
This commit is contained in:
parent
0e74eba29f
commit
a893bdd603
1 changed files with 4 additions and 0 deletions
|
@ -740,6 +740,10 @@ public class PeerGroup extends AbstractExecutionThreadService implements Transac
|
|||
@Override
|
||||
protected void startUp() throws Exception {
|
||||
// This is run in a background thread by the Service implementation.
|
||||
if (chain == null) {
|
||||
// Just try to help catch what might be a programming error.
|
||||
log.warn("Starting up with no attached block chain. Did you forget to pass one to the constructor?");
|
||||
}
|
||||
vPingTimer = new Timer("Peer pinging thread", true);
|
||||
if (torClient != null) {
|
||||
log.info("Starting Tor/Orchid ...");
|
||||
|
|
Loading…
Add table
Reference in a new issue