(t *testing.T)
| 143 | } |
| 144 | |
| 145 | func 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 | |
| 159 | func newTestVrfValue() vconfig.VRFValue { |
| 160 | v := make([]byte, 1024) |
nothing calls this directly
no test coverage detected