aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-12-26 14:24:16 +0800
committerGitHub <noreply@github.com>2018-12-26 14:24:16 +0800
commit00416c9df2fec5398389863fb6f885a1fe11a6cc (patch)
tree74d260ac8a8c0e2ab782be1814b49b4232f56dc8 /core/consensus_test.go
parentd333dc1a24df26ae8e8e3ffa2d700c1116a93ba2 (diff)
downloaddexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.tar
dexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.tar.gz
dexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.tar.bz2
dexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.tar.lz
dexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.tar.xz
dexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.tar.zst
dexon-consensus-00416c9df2fec5398389863fb6f885a1fe11a6cc.zip
core: pull block random (#384)
* Add PullRandomness to interface * Add pendingBlocksWithoutRandomness to compactionChain * Pull randomness every 1 second
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r--core/consensus_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go
index 40ee34b..d26e102 100644
--- a/core/consensus_test.go
+++ b/core/consensus_test.go
@@ -48,6 +48,10 @@ func (n *network) PullBlocks(common.Hashes) {
func (n *network) PullVotes(types.Position) {
}
+// PullRandomness tries to pull randomness from the DEXON network.
+func (n *network) PullRandomness(common.Hashes) {
+}
+
// BroadcastVote broadcasts vote to all nodes in DEXON network.
func (n *network) BroadcastVote(vote *types.Vote) {
n.conn.broadcast(n.nID, vote)