diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-29 10:28:17 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-01-29 11:48:38 +0800 |
commit | 5d689c191fdb12de2446bbccd1f7ae6d91f55206 (patch) | |
tree | 34aacee0f189260e99984ae8bac4b4489d409ea2 | |
parent | 930cf6c25aeb10cfe01c57ccedd34cff7a157774 (diff) | |
download | dexon-consensus-5d689c191fdb12de2446bbccd1f7ae6d91f55206.tar.gz dexon-consensus-5d689c191fdb12de2446bbccd1f7ae6d91f55206.tar.zst dexon-consensus-5d689c191fdb12de2446bbccd1f7ae6d91f55206.zip |
Fixup: add more log to trace syncing not finished issue
-rw-r--r-- | core/syncer/consensus.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/syncer/consensus.go b/core/syncer/consensus.go index 1f89fb6..2c84d84 100644 --- a/core/syncer/consensus.go +++ b/core/syncer/consensus.go @@ -162,6 +162,7 @@ func (con *Consensus) checkIfValidated() (validated bool) { con.logger.Debug("syncer chain-validation status", "validated-chain", validatedChainCount, "round", round, + "num-chains", numChains, "valid", validated) return } @@ -392,6 +393,7 @@ func (con *Consensus) processFinalizedBlock(block *types.Block) error { if con.lattice == nil { return nil } + con.logger.Trace("syncer process finalized block", "block", block) delivered, err := con.lattice.ProcessFinalizedBlock(block) if err != nil { return err @@ -400,6 +402,7 @@ func (con *Consensus) processFinalizedBlock(block *types.Block) error { defer con.lock.Unlock() con.finalizedBlockHashes = append(con.finalizedBlockHashes, block.Hash) for idx, b := range delivered { + con.logger.Trace("syncer block devliered", "block", b) if con.finalizedBlockHashes[idx] != b.Hash { return ErrMismatchBlockHashSequence } |