diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-05 22:10:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 22:10:55 +0800 |
commit | b74b8c092dcc10a7792d92c64c6dc22d94edb295 (patch) | |
tree | 25d249774f2e116c357674693dd4633c11c55582 /core/consensus_test.go | |
parent | a23f81165db3071131ef67e70a54bbc78b8a0af1 (diff) | |
download | tangerine-consensus-b74b8c092dcc10a7792d92c64c6dc22d94edb295.tar.gz tangerine-consensus-b74b8c092dcc10a7792d92c64c6dc22d94edb295.tar.zst tangerine-consensus-b74b8c092dcc10a7792d92c64c6dc22d94edb295.zip |
core: General tsig (#177)
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r-- | core/consensus_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go index e8615a2..6827352 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -47,6 +47,18 @@ func (n *network) BroadcastBlock(block *types.Block) { n.conn.broadcast(n.nID, block) } +// BroadcastRandomnessRequest broadcasts rand request to DKG set. +func (n *network) BroadcastRandomnessRequest( + randRequest *types.AgreementResult) { + n.conn.broadcast(n.nID, randRequest) +} + +// BroadcastRandomnessResult broadcasts rand request to Notary set. +func (n *network) BroadcastRandomnessResult( + randResult *types.BlockRandomnessResult) { + n.conn.broadcast(n.nID, randResult) +} + // SendDKGPrivateShare sends PrivateShare to a DKG participant. func (n *network) SendDKGPrivateShare( recv crypto.PublicKey, prvShare *types.DKGPrivateShare) { |