aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-10 17:32:47 +0800
committerGitHub <noreply@github.com>2018-08-10 17:32:47 +0800
commitf4690458abc24a0a3877f4facb0947c31d29e8cb (patch)
tree34ab0f3e13d4360b911832bd2fc943a7a2d2736c /simulation
parent09a0ab086cdafcb27b74e6346efdc8e96ca8145d (diff)
downloadtangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar
tangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.gz
tangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.bz2
tangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.lz
tangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.xz
tangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.tar.zst
tangerine-consensus-f4690458abc24a0a3877f4facb0947c31d29e8cb.zip
core: Modify Consensus interface (#45)
Diffstat (limited to 'simulation')
-rw-r--r--simulation/validator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/validator.go b/simulation/validator.go
index 9a84908..246d0d3 100644
--- a/simulation/validator.go
+++ b/simulation/validator.go
@@ -196,7 +196,7 @@ ProposingBlockLoop:
ProposerID: v.ID,
Hash: common.NewRandomHash(),
}
- if err := v.consensus.PrepareBlock(block); err != nil {
+ if err := v.consensus.PrepareBlock(block, time.Now().UTC()); err != nil {
panic(err)
}
v.app.addBlock(block)