diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-08 18:05:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 18:05:39 +0800 |
commit | 910fd2621b4110c2747561ef38c84413dd9ce117 (patch) | |
tree | cc442fb077c17e3a665c70dfcfe113b347b93bad /core | |
parent | 54b3726dc9183cbf2b517f71413a2559040ae5e0 (diff) | |
download | dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.tar dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.tar.gz dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.tar.bz2 dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.tar.lz dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.tar.xz dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.tar.zst dexon-consensus-910fd2621b4110c2747561ef38c84413dd9ce117.zip |
core: Fix timestamp (#182)
Diffstat (limited to 'core')
-rw-r--r-- | core/compaction-chain.go | 2 | ||||
-rw-r--r-- | core/lattice.go | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/core/compaction-chain.go b/core/compaction-chain.go index 3037768..6e6ce75 100644 --- a/core/compaction-chain.go +++ b/core/compaction-chain.go @@ -15,8 +15,6 @@ // along with the dexon-consensus-core library. If not, see // <http://www.gnu.org/licenses/>. -// TODO(jimmy-dexon): remove those comments before open source. - package core import ( diff --git a/core/lattice.go b/core/lattice.go index 7b34e1a..ca9d839 100644 --- a/core/lattice.go +++ b/core/lattice.go @@ -74,10 +74,8 @@ func (s *Lattice) PrepareBlock( s.lock.RLock() defer s.lock.RUnlock() - s.data.prepareBlock(b) - // TODO(mission): the proposeTime might be earlier than tip block of - // that chain. We should let latticeData suggest the time. b.Timestamp = proposeTime + s.data.prepareBlock(b) b.Payload = s.app.PreparePayload(b.Position) b.Witness = s.app.PrepareWitness(b.Witness.Height) if err = s.authModule.SignBlock(b); err != nil { |