diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-29 22:32:14 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-07-01 00:00:01 +0800 |
commit | aac2b6ae4c5cf6f78547159c47f9192babe3e6dd (patch) | |
tree | 15a82179744f457c89607f4d115f3dbecf9a2dde /eth/protocol_test.go | |
parent | 5db8f447d597e55718263ba5ed1770290e3e0893 (diff) | |
download | go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.gz go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.bz2 go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.lz go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.xz go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.zst go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.zip |
eth: add the blocks from numbers protocol message
Diffstat (limited to 'eth/protocol_test.go')
-rw-r--r-- | eth/protocol_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go index ffd4ca19f..4c1579d4e 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -39,15 +39,15 @@ func TestStatusMsgErrors(t *testing.T) { wantError: errResp(ErrNoStatusMsg, "first msg has code 2 (!= 0)"), }, { - code: StatusMsg, data: statusMsgData{10, NetworkId, td, currentBlock, genesis}, + code: StatusMsg, data: statusData{10, NetworkId, td, currentBlock, genesis}, wantError: errResp(ErrProtocolVersionMismatch, "10 (!= 0)"), }, { - code: StatusMsg, data: statusMsgData{uint32(ProtocolVersions[0]), 999, td, currentBlock, genesis}, + code: StatusMsg, data: statusData{uint32(ProtocolVersions[0]), 999, td, currentBlock, genesis}, wantError: errResp(ErrNetworkIdMismatch, "999 (!= 0)"), }, { - code: StatusMsg, data: statusMsgData{uint32(ProtocolVersions[0]), NetworkId, td, currentBlock, common.Hash{3}}, + code: StatusMsg, data: statusData{uint32(ProtocolVersions[0]), NetworkId, td, currentBlock, common.Hash{3}}, wantError: errResp(ErrGenesisBlockMismatch, "0300000000000000000000000000000000000000000000000000000000000000 (!= %x)", genesis), }, } @@ -188,7 +188,7 @@ func newTestPeer(pm *ProtocolManager) (*testPeer, <-chan error) { func (p *testPeer) handshake(t *testing.T) { td, currentBlock, genesis := p.pm.chainman.Status() - msg := &statusMsgData{ + msg := &statusData{ ProtocolVersion: uint32(p.pm.protVer), NetworkId: uint32(p.pm.netId), TD: td, |