diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-22 17:01:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-22 17:01:42 +0800 |
commit | 929d41761b72abab106b5a4d627701d1c232e891 (patch) | |
tree | 2683f07d02b1d72231810ec12963b51c562165a2 /core/test/block-revealer.go | |
parent | 8ef4fc213703620fbfa13890dee042d40eea8545 (diff) | |
download | dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.tar dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.tar.gz dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.tar.bz2 dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.tar.lz dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.tar.xz dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.tar.zst dexon-consensus-929d41761b72abab106b5a4d627701d1c232e891.zip |
core: remove acks (#451)
Diffstat (limited to 'core/test/block-revealer.go')
-rw-r--r-- | core/test/block-revealer.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/test/block-revealer.go b/core/test/block-revealer.go index 90b3d3e..7516e6c 100644 --- a/core/test/block-revealer.go +++ b/core/test/block-revealer.go @@ -31,19 +31,6 @@ var ( ErrNotValidCompactionChain = errors.New("not valid compaction chain") ) -// isAllAckingBlockRevealed is a helper to check if all acking blocks of -// one block are revealed. -func isAllAckingBlockRevealed( - b *types.Block, revealed map[common.Hash]struct{}) bool { - - for _, ack := range b.Acks { - if _, exists := revealed[ack]; !exists { - return false - } - } - return true -} - // loadAllBlocks is a helper to load all blocks from db.BlockIterator. func loadAllBlocks(iter db.BlockIterator) ( blocks map[common.Hash]*types.Block, err error) { |