3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

PeerGroup: print a log warn if there's no blockchain.

This commit is contained in:
Mike Hearn 2014-05-05 22:32:46 +02:00
parent 0e74eba29f
commit a893bdd603

View File

@ -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 ...");