From 46a84bff9ac419853550f7c17b13fb8633e507c9 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 18 Jul 2018 13:20:20 +0800 Subject: 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. --- simulation/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'simulation') 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 -- cgit v1.2.3