Skip to content

Commit

Permalink
PeerGroup: print a log warn if there's no blockchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehearn committed May 5, 2014
1 parent 0e74eba commit a893bdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/com/google/bitcoin/core/PeerGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,10 @@ private boolean haveReadyInactivePeer(long nowMillis) {
@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 ...");
Expand Down

0 comments on commit a893bdd

Please sign in to comment.