diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-11-15 13:05:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 13:05:50 +0800 |
commit | ce9da6912a16f064160781bbff8a9762e305bae9 (patch) | |
tree | f4de88f0488687e4480cc8461b8a3cbf03a1c85b /core/utils.go | |
parent | 7b68cc8fa60d91a7c6ed2f78dc851da48d1fc258 (diff) | |
download | dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.gz dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.bz2 dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.lz dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.xz dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.tar.zst dexon-consensus-ce9da6912a16f064160781bbff8a9762e305bae9.zip |
test: fix network (#328)
* Broadcast to set of node instead of broadcasting when attaching cache.
* Fix pull blocks
Diffstat (limited to 'core/utils.go')
-rw-r--r-- | core/utils.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/utils.go b/core/utils.go index 6b9ce63..a3da340 100644 --- a/core/utils.go +++ b/core/utils.go @@ -27,8 +27,13 @@ import ( "github.com/dexon-foundation/dexon-consensus/common" "github.com/dexon-foundation/dexon-consensus/core/crypto" "github.com/dexon-foundation/dexon-consensus/core/types" + "github.com/dexon-foundation/dexon-consensus/core/utils" ) +// NodeSetCache is type alias to avoid fullnode compile error when moving +// it to core/utils package. +type NodeSetCache = utils.NodeSetCache + var ( debug = false // ErrEmptyTimestamps would be reported if Block.timestamps is empty. |