aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-29 22:32:14 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-07-01 00:00:01 +0800
commitaac2b6ae4c5cf6f78547159c47f9192babe3e6dd (patch)
tree15a82179744f457c89607f4d115f3dbecf9a2dde /eth/protocol_test.go
parent5db8f447d597e55718263ba5ed1770290e3e0893 (diff)
downloaddexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar
dexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.gz
dexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.bz2
dexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.lz
dexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.xz
dexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.zst
dexon-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.zip
eth: add the blocks from numbers protocol message
Diffstat (limited to 'eth/protocol_test.go')
-rw-r--r--eth/protocol_test.go8
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,