aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-08 18:05:39 +0800
committerGitHub <noreply@github.com>2018-10-08 18:05:39 +0800
commit910fd2621b4110c2747561ef38c84413dd9ce117 (patch)
treecc442fb077c17e3a665c70dfcfe113b347b93bad /core
parent54b3726dc9183cbf2b517f71413a2559040ae5e0 (diff)
downloaddexon-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.go2
-rw-r--r--core/lattice.go4
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 {