consensus: test validator set change

This commit is contained in:
Ethan Buchman
2016-11-23 18:20:46 -05:00
parent 65496ace20
commit 2f9063c1d6
8 changed files with 464 additions and 283 deletions

View File

@ -24,10 +24,16 @@ var (
testPartSize = 65536
)
//---------------------------------------
// Test block execution
func TestExecBlock(t *testing.T) {
// TODO
}
//---------------------------------------
// Test handshake/replay
// Sync from scratch
func TestHandshakeReplayAll(t *testing.T) {
testHandshakeReplay(t, 0)
@ -106,6 +112,7 @@ func testHandshakeReplay(t *testing.T, n int) {
}
//--------------------------
// utils for making blocks
// make some bogus txs
func txsFunc(blockNum int) (txs []types.Tx) {