Skip to content

Commit

Permalink
fix: update logs in SimplifiedQuorumList and DownloadProgressTracker …
Browse files Browse the repository at this point in the history
…for mnlistdiff

Signed-off-by: HashEngineering <[email protected]>
  • Loading branch information
HashEngineering committed Nov 23, 2023
1 parent c7d0d27 commit 6b91b05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected void progress(double pct, int blocksSoFar, Date date) {

if (lastMasternodeListStage.ordinal() > Stage.BeforeStarting.ordinal() &&
lastMasternodeListStage.ordinal() < Stage.Complete.ordinal()) {
log.info(String.format(Locale.US, "Chain download %d%% done. Processing Masternode Lists...", (int) pct));
log.info(String.format(Locale.US, "Chain download %d%% done while processing Masternode Lists: %s", (int) pct, lastMasternodeListStage));
} else if (!requiresHeaders || headersCaughtUp) {
log.info(String.format(Locale.US, "Chain download %d%% done with %d blocks to go, block date %s", (int) pct, blocksSoFar,
Utils.dateTimeFormat(date)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public SimplifiedQuorumList applyDiff(SimplifiedMasternodeListDiff diff, boolean
Context.get().chainLockHandler.addCoinbaseChainLock(entry.quorumHash, 8, signature);

// find a better way to do this
log.info("quorum {}:{} {}", entry.quorumHash, entry.quorumIndex, signature);
if ((doDIP24 && entry.llmqType == params.getLlmqDIP0024InstantSend().value) || (!doDIP24 && entry.llmqType != params.getLlmqDIP0024InstantSend().value)) {
// for now, don't use the return value
verifyQuorum(isLoadingBootstrap, chain, validateOldQuorums, entry);
Expand Down

0 comments on commit 6b91b05

Please sign in to comment.