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 /core/types/block.go | |
parent | 86b33411b2681cdf9542a5a36704d15f835e6d48 (diff) | |
download | tangerine-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar tangerine-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.gz tangerine-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.bz2 tangerine-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.lz tangerine-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.xz tangerine-consensus-46a84bff9ac419853550f7c17b13fb8633e507c9.tar.zst tangerine-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 'core/types/block.go')
-rw-r--r-- | core/types/block.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/types/block.go b/core/types/block.go index 8808312..91b71da 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -45,9 +45,8 @@ type Block struct { Timestamps map[ValidatorID]time.Time Acks map[common.Hash]struct{} - IndirectAcks map[common.Hash]struct{} - AckedBy map[common.Hash]bool // bool: direct - State State + Ackeds map[common.Hash]struct{} + State State } func (b *Block) String() string { |