From bd57df67ae6794ffb7fe2416c6eae32768259ed9 Mon Sep 17 00:00:00 2001 From: Tuna Date: Tue, 9 Oct 2018 18:03:31 +0700 Subject: [PATCH] tiny fix unitest --- eth/backend.go | 2 +- eth/protocol_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index fe7d386e5a..bc3c7d2871 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -209,7 +209,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { return } if eth.etherbase != m2 { - // firstly, look into txPool + // firstly, look into pending txPool pendingMap, err := eth.txPool.Pending() if err != nil { log.Error("Fail to get txPool pending", "err", err) diff --git a/eth/protocol_test.go b/eth/protocol_test.go index ed30f35bf6..d6ac52e0f4 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -63,8 +63,8 @@ func testStatusMsgErrors(t *testing.T, protocol int) { wantError: errResp(ErrProtocolVersionMismatch, "10 (!= %d)", protocol), }, { - code: StatusMsg, data: statusData{uint32(protocol), 89, td, head.Hash(), genesis.Hash()}, - wantError: errResp(ErrNetworkIdMismatch, "89 (!= 1)"), + code: StatusMsg, data: statusData{uint32(protocol), 999, td, head.Hash(), genesis.Hash()}, + wantError: errResp(ErrNetworkIdMismatch, "999 (!= 89)"), }, { code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, td, head.Hash(), common.Hash{3}},