mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
tiny fix unitest
This commit is contained in:
parent
6d7cfe14d8
commit
bd57df67ae
2 changed files with 3 additions and 3 deletions
|
|
@ -209,7 +209,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if eth.etherbase != m2 {
|
if eth.etherbase != m2 {
|
||||||
// firstly, look into txPool
|
// firstly, look into pending txPool
|
||||||
pendingMap, err := eth.txPool.Pending()
|
pendingMap, err := eth.txPool.Pending()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Fail to get txPool pending", "err", err)
|
log.Error("Fail to get txPool pending", "err", err)
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,8 @@ func testStatusMsgErrors(t *testing.T, protocol int) {
|
||||||
wantError: errResp(ErrProtocolVersionMismatch, "10 (!= %d)", protocol),
|
wantError: errResp(ErrProtocolVersionMismatch, "10 (!= %d)", protocol),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: StatusMsg, data: statusData{uint32(protocol), 89, td, head.Hash(), genesis.Hash()},
|
code: StatusMsg, data: statusData{uint32(protocol), 999, td, head.Hash(), genesis.Hash()},
|
||||||
wantError: errResp(ErrNetworkIdMismatch, "89 (!= 1)"),
|
wantError: errResp(ErrNetworkIdMismatch, "999 (!= 89)"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, td, head.Hash(), common.Hash{3}},
|
code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, td, head.Hash(), common.Hash{3}},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue