diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-07-18 13:20:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-18 13:20:20 +0800 |
commit | 46a84bff9ac419853550f7c17b13fb8633e507c9 (patch) | |
tree | ffa7b96a3d566a83cdd07c11c507e6e2cebab776 /simulation | |
parent | 86b33411b2681cdf9542a5a36704d15f835e6d48 (diff) | |
download | dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.gz dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.bz2 dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.lz dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.xz dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.zst dexon-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.zip |
core: refactor acking relationship (#3)
* core: refactor acking relationship
Use AckBy only, and remove IndirectAcks.
Also fix the issue where validator is not filling Height when proposing
block.
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 84e5e52..d102d0d 100644 --- a/simulation/validator.go +++ b/simulation/validator.go @@ -130,7 +130,7 @@ func (v *Validator) BlockProposer() { ProposerID: v.ID, ParentHash: v.current.Hash, Hash: common.NewRandomHash(), - Height: 0, + Height: v.current.Height + 1., Acks: map[common.Hash]struct{}{}, } v.current = block |