aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/lattice.go')
-rw-r--r--core/lattice.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/lattice.go b/core/lattice.go
index 442214b..ea5286d 100644
--- a/core/lattice.go
+++ b/core/lattice.go
@@ -58,7 +58,7 @@ func NewLattice(
pool: newBlockPool(cfg.NumChains),
data: newLatticeData(db, dataConfig),
toModule: newTotalOrdering(toConfig),
- ctModule: newConsensusTimestamp(cfg.NumChains),
+ ctModule: newConsensusTimestamp(dMoment, cfg.NumChains),
}
return
}
@@ -140,6 +140,8 @@ func (s *Lattice) ProcessBlock(
s.lock.Lock()
defer s.lock.Unlock()
if inLattice, err = s.data.addBlock(input); err != nil {
+ // TODO(mission): if sanity check failed with "acking block doesn't
+ // exists", we should keep it in a pool.
return
}
// TODO(mission): remove this hack, BA related stuffs should not