From ce9da6912a16f064160781bbff8a9762e305bae9 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Thu, 15 Nov 2018 13:05:50 +0800 Subject: test: fix network (#328) * Broadcast to set of node instead of broadcasting when attaching cache. * Fix pull blocks --- core/utils.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/utils.go') 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. -- cgit