aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorNguyen Kien Trung <trung.n.k@gmail.com>2019-06-06 16:49:35 +0800
committerFelix Lange <fjl@twurst.com>2019-06-06 16:49:35 +0800
commit2823ce0086736e01cdb7b715d567d5ada445e3e4 (patch)
tree62b84ae30c6e291a3ac0f871fbb62d3669ed3324 /eth
parent30c2b1b06dc2ae703d082a46a5316ea89da04a52 (diff)
downloadgo-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar
go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.gz
go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.bz2
go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.lz
go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.xz
go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.tar.zst
go-tangerine-2823ce0086736e01cdb7b715d567d5ada445e3e4.zip
eth: check for DefaultConfig.NetworkId in test (#17599)
This makes the test work if NetworkId is changed in forks of go-ethereum.
Diffstat (limited to 'eth')
-rw-r--r--eth/protocol_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go
index aa43dfa92..e817d673a 100644
--- a/eth/protocol_test.go
+++ b/eth/protocol_test.go
@@ -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}},