diff options
author | Haoping Ku <haoping.ku@dexon.org> | 2018-08-10 17:57:28 +0800 |
---|---|---|
committer | missionliao <38416648+missionliao@users.noreply.github.com> | 2018-08-10 17:57:28 +0800 |
commit | 08c208c21f93d55bf3275610cbaf3ee6a545956a (patch) | |
tree | 83a0201040196c0fb953c6907edc799fee4a82d6 /core/types/block.go | |
parent | f4690458abc24a0a3877f4facb0947c31d29e8cb (diff) | |
download | dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.tar dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.tar.gz dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.tar.bz2 dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.tar.lz dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.tar.xz dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.tar.zst dexon-consensus-08c208c21f93d55bf3275610cbaf3ee6a545956a.zip |
core: reliable-broadcast: delete old blocks (#47)
Delete all blocks in received blocks array for avoiding using too
much memory space.
Diffstat (limited to 'core/types/block.go')
-rw-r--r-- | core/types/block.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index 9fd483e..4b8398c 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -71,6 +71,7 @@ type Block struct { Ackeds map[common.Hash]struct{} `json:"-"` AckedValidators map[ValidatorID]struct{} `json:"-"` Status Status `json:"-"` + ReceivedTime time.Time `json:"-"` } // Block implements BlockConverter interface. |