diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-28 18:24:46 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-15 22:09:55 +0800 |
commit | 41193d921118b4bdef5f0a1a5b7349a4c58abe94 (patch) | |
tree | f5a274c3d007810064e3ed65e6e52390fb93669e /vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go | |
parent | 4efc1cf485200000420bd79638139eb5383641ae (diff) | |
download | go-tangerine-41193d921118b4bdef5f0a1a5b7349a4c58abe94.tar.gz go-tangerine-41193d921118b4bdef5f0a1a5b7349a4c58abe94.tar.zst go-tangerine-41193d921118b4bdef5f0a1a5b7349a4c58abe94.zip |
vendor: sync to latest core
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go')
-rw-r--r-- | vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go index 979045223..7006242b1 100644 --- a/vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go +++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/agreement-mgr.go @@ -199,6 +199,11 @@ func (mgr *agreementMgr) notifyRoundEvents(evts []utils.RoundEventParam) error { if len(mgr.configs) > 0 { lastCfg := mgr.configs[len(mgr.configs)-1] if e.BeginHeight != lastCfg.RoundEndHeight() { + // the init config of BA part is provided when constructing. + if len(mgr.configs) == 1 && + e.BeginHeight == lastCfg.LastPeriodBeginHeight() { + return nil + } return ErrInvalidBlockHeight } if lastCfg.RoundID() == e.Round { |