diff options
| author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-01-15 16:06:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-15 16:06:21 +0800 |
| commit | 8e1b6161f346993b74558124758cfb650465cf05 (patch) | |
| tree | c5b60eae90c3358e6faf43cee9d3ffc3b9945dd1 /core/consensus.go | |
| parent | 809e8def862fdfa792061a448f952747f1af4d3c (diff) | |
| download | dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.gz dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.bz2 dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.lz dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.xz dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.tar.zst dexon-consensus-8e1b6161f346993b74558124758cfb650465cf05.zip | |
core: Fix BA3.0 (#420)
* Add Restart to Ticker
* Change pre allocated size
* Return NextTime from lattice
* Few hacky fixes for BA
* PullVote in FastRollback state
* Add shallowBlock for agreementResult
* Extend period
* Fixup
Diffstat (limited to 'core/consensus.go')
| -rw-r--r-- | core/consensus.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go index 2770018..0754e80 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -932,7 +932,7 @@ MessageLoop: ch, e := con.baConfirmedBlock[val.Hash] return ch, e }(); exist { - if err := con.lattice.SanityCheck(val); err != nil { + if err := con.lattice.SanityCheck(val, false); err != nil { if err == ErrRetrySanityCheckLater { err = nil } else { @@ -1040,6 +1040,7 @@ func (con *Consensus) ProcessAgreementResult( if err := VerifyAgreementResult(rand, con.nodeSetCache); err != nil { return err } + con.lattice.AddShallowBlock(rand.BlockHash, rand.Position) // Syncing BA Module. if err := con.baMgr.processAgreementResult(rand); err != nil { return err |
