MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestGetCommitConsensus

Function TestGetCommitConsensus

consensus/vbft/node_utils_test.go:145–157  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func TestGetCommitConsensus(t *testing.T) {
146 blockcommitmsg := &blockCommitMsg{
147 Committer: 1,
148 BlockProposer: 1,
149 BlockNum: 1,
150 CommitBlockHash: common.Uint256{},
151 CommitForEmpty: true,
152 }
153 var commitMsgs []*blockCommitMsg
154 commitMsgs = append(commitMsgs, blockcommitmsg)
155 blockproposer, flag := getCommitConsensus(commitMsgs, 2, 7)
156 t.Logf("TestGetCommitConsensus %d ,%v", blockproposer, flag)
157}
158
159func newTestVrfValue() vconfig.VRFValue {
160 v := make([]byte, 1024)

Callers

nothing calls this directly

Calls 1

getCommitConsensusFunction · 0.85

Tested by

no test coverage detected