aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol_test.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-01 19:36:49 +0800
committerzelig <viktor.tron@gmail.com>2015-04-01 19:36:49 +0800
commitf56fc9cd9d13e88ee1a244ea590e249e324b8b84 (patch)
treec5b31c90566931e6a1a859f98da549181805f62c /eth/protocol_test.go
parent6ffea34d8bf19fb358c1a7f01e20bf25f1061c5e (diff)
downloaddexon-f56fc9cd9d13e88ee1a244ea590e249e324b8b84.tar.gz
dexon-f56fc9cd9d13e88ee1a244ea590e249e324b8b84.tar.zst
dexon-f56fc9cd9d13e88ee1a244ea590e249e324b8b84.zip
change StatusMsgData.TD back to pointer type *big.Int
Diffstat (limited to 'eth/protocol_test.go')
-rw-r--r--eth/protocol_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go
index 2228fa0ec..d3466326a 100644
--- a/eth/protocol_test.go
+++ b/eth/protocol_test.go
@@ -173,7 +173,7 @@ func (self *ethProtocolTester) handshake(t *testing.T, mock bool) {
err := p2p.ExpectMsg(self, StatusMsg, &statusMsgData{
ProtocolVersion: ProtocolVersion,
NetworkId: NetworkId,
- TD: *td,
+ TD: td,
CurrentBlock: currentBlock,
GenesisBlock: genesis,
})
@@ -181,7 +181,7 @@ func (self *ethProtocolTester) handshake(t *testing.T, mock bool) {
t.Fatalf("incorrect outgoing status: %v", err)
}
if mock {
- go p2p.Send(self, StatusMsg, &statusMsgData{ProtocolVersion, NetworkId, *td, currentBlock, genesis})
+ go p2p.Send(self, StatusMsg, &statusMsgData{ProtocolVersion, NetworkId, td, currentBlock, genesis})
}
}
@@ -201,15 +201,15 @@ func TestStatusMsgErrors(t *testing.T) {
wantErrorCode: ErrNoStatusMsg,
},
{
- code: StatusMsg, data: statusMsgData{10, NetworkId, *td, currentBlock, genesis},
+ code: StatusMsg, data: statusMsgData{10, NetworkId, td, currentBlock, genesis},
wantErrorCode: ErrProtocolVersionMismatch,
},
{
- code: StatusMsg, data: statusMsgData{ProtocolVersion, 999, *td, currentBlock, genesis},
+ code: StatusMsg, data: statusMsgData{ProtocolVersion, 999, td, currentBlock, genesis},
wantErrorCode: ErrNetworkIdMismatch,
},
{
- code: StatusMsg, data: statusMsgData{ProtocolVersion, NetworkId, *td, currentBlock, common.Hash{3}},
+ code: StatusMsg, data: statusMsgData{ProtocolVersion, NetworkId, td, currentBlock, common.Hash{3}},
wantErrorCode: ErrGenesisBlockMismatch,
},
}