|
|
|
@ -44,9 +44,9 @@ func TestProcessMessageValidatorAnnounce(test *testing.T) { |
|
|
|
|
test.Fatalf("newhost failure: %v", err) |
|
|
|
|
} |
|
|
|
|
consensusLeader := New(host, "0", []p2p.Peer{validator1, validator2, validator3}, leader) |
|
|
|
|
blockBytes, err := hex.DecodeString("f90264f9025fa00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a02b418211410ee3e75b32abd925bbeba215172afa509d65c1953d4b4e505a4a2aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808080a000000000000000000000000000000000000000000000000000000000000000008800000000000000008400000001b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008080a00000000000000000000000000000000000000000000000000000000000000000c0c0") |
|
|
|
|
blockBytes, err := hex.DecodeString("f90265f90260a00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a02b418211410ee3e75b32abd925bbeba215172afa509d65c1953d4b4e505a4a2aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808080a000000000000000000000000000000000000000000000000000000000000000008800000000000000008400000000b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000808080a00000000000000000000000000000000000000000000000000000000000000000c0c0") |
|
|
|
|
consensusLeader.block = blockBytes |
|
|
|
|
hashBytes, err := hex.DecodeString("26d7cdbbaf6cedcaf946ad1e8c0bc2567e17418ce63026db4160a7cc32d9e488") |
|
|
|
|
hashBytes, err := hex.DecodeString("4bb43b0f1eaf617808b781c2402147e187e9e1ce90fc713d4867646379d3cdb0") |
|
|
|
|
|
|
|
|
|
copy(consensusLeader.blockHash[:], hashBytes[:]) |
|
|
|
|
|
|
|
|
@ -98,9 +98,9 @@ func TestProcessMessageValidatorPrepared(test *testing.T) { |
|
|
|
|
test.Fatalf("newhost failure: %v", err) |
|
|
|
|
} |
|
|
|
|
consensusLeader := New(host, "0", []p2p.Peer{validator1, validator2, validator3}, leader) |
|
|
|
|
blockBytes, err := hex.DecodeString("f90264f9025fa00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a02b418211410ee3e75b32abd925bbeba215172afa509d65c1953d4b4e505a4a2aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808080a000000000000000000000000000000000000000000000000000000000000000008800000000000000008400000001b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008080a00000000000000000000000000000000000000000000000000000000000000000c0c0") |
|
|
|
|
blockBytes, err := hex.DecodeString("f90265f90260a00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a02b418211410ee3e75b32abd925bbeba215172afa509d65c1953d4b4e505a4a2aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808080a000000000000000000000000000000000000000000000000000000000000000008800000000000000008400000000b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000808080a00000000000000000000000000000000000000000000000000000000000000000c0c0") |
|
|
|
|
consensusLeader.block = blockBytes |
|
|
|
|
hashBytes, err := hex.DecodeString("26d7cdbbaf6cedcaf946ad1e8c0bc2567e17418ce63026db4160a7cc32d9e488") |
|
|
|
|
hashBytes, err := hex.DecodeString("4bb43b0f1eaf617808b781c2402147e187e9e1ce90fc713d4867646379d3cdb0") |
|
|
|
|
|
|
|
|
|
copy(consensusLeader.blockHash[:], hashBytes[:]) |
|
|
|
|
|
|
|
|
@ -158,9 +158,9 @@ func TestProcessMessageValidatorCommitted(test *testing.T) { |
|
|
|
|
test.Fatalf("newhost failure: %v", err) |
|
|
|
|
} |
|
|
|
|
consensusLeader := New(host, "0", []p2p.Peer{validator1, validator2, validator3}, leader) |
|
|
|
|
blockBytes, err := hex.DecodeString("f90264f9025fa00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a02b418211410ee3e75b32abd925bbeba215172afa509d65c1953d4b4e505a4a2aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808080a000000000000000000000000000000000000000000000000000000000000000008800000000000000008400000001b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008080a00000000000000000000000000000000000000000000000000000000000000000c0c0") |
|
|
|
|
blockBytes, err := hex.DecodeString("f90265f90260a00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a02b418211410ee3e75b32abd925bbeba215172afa509d65c1953d4b4e505a4a2aa056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808502540be400808080a000000000000000000000000000000000000000000000000000000000000000008800000000000000008400000000b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000808080a00000000000000000000000000000000000000000000000000000000000000000c0c0") |
|
|
|
|
consensusLeader.block = blockBytes |
|
|
|
|
hashBytes, err := hex.DecodeString("26d7cdbbaf6cedcaf946ad1e8c0bc2567e17418ce63026db4160a7cc32d9e488") |
|
|
|
|
hashBytes, err := hex.DecodeString("4bb43b0f1eaf617808b781c2402147e187e9e1ce90fc713d4867646379d3cdb0") |
|
|
|
|
|
|
|
|
|
copy(consensusLeader.blockHash[:], hashBytes[:]) |
|
|
|
|
|
|
|
|
|