diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-10 17:32:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 17:32:47 +0800 |
commit | f4690458abc24a0a3877f4facb0947c31d29e8cb (patch) | |
tree | 34ab0f3e13d4360b911832bd2fc943a7a2d2736c /simulation | |
parent | 09a0ab086cdafcb27b74e6346efdc8e96ca8145d (diff) | |
download | tangerine-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.go | 2 |
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) |