Skip to content

Commit

Permalink
nixos/tests/geth: fix api check
Browse files Browse the repository at this point in the history
Since ethereum/go-ethereum#21686 the `chainId`
API returns an error when the chain is not synced. So use
`blockNumber` as a basic function test.
  • Loading branch information
B4dM4n committed Jan 22, 2022
1 parent 151717b commit af628f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/tests/geth.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
machine.wait_for_open_port(18545)
machine.succeed(
'geth attach --exec "eth.chainId()" http://localhost:8545 | grep \'"0x0"\' '
'geth attach --exec eth.blockNumber http://localhost:8545 | grep \'^0$\' '
)
machine.succeed(
Expand Down

0 comments on commit af628f4

Please sign in to comment.