Skip to content

Commit

Permalink
Sleep if btcd isn't immediately available and try again when attempti…
Browse files Browse the repository at this point in the history
…ng to decode a coinbase.
  • Loading branch information
ckolivas committed May 3, 2017
1 parent 4cdef95 commit 31047bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ static void decode_exit(struct pool *pool, char *cb)
json_t *val;
int dummy;

if (!opt_btcd) {
if (!opt_btcd && !sleep(3) && !opt_btcd) {
applog(LOG_ERR, "No bitcoind specified, unable to decode coinbase.");
exit(1);
}
Expand Down

0 comments on commit 31047bd

Please sign in to comment.