Commit 2823ce00 authored by Nguyen Kien Trung's avatar Nguyen Kien Trung Committed by Felix Lange

eth: check for DefaultConfig.NetworkId in test (#17599)

This makes the test work if NetworkId is changed in forks of go-ethereum.
No related merge requests found
......@@ -64,7 +64,7 @@ func testStatusMsgErrors(t *testing.T, protocol int) {
},
{
code: StatusMsg, data: statusData{uint32(protocol), 999, td, head.Hash(), genesis.Hash()},
wantError: errResp(ErrNetworkIdMismatch, "999 (!= 1)"),
wantError: errResp(ErrNetworkIdMismatch, "999 (!= %d)", DefaultConfig.NetworkId),
},
{
code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, td, head.Hash(), common.Hash{3}},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment