nixos/tests/geth: fix api check

Since https://github.com/ethereum/go-ethereum/pull/21686 the `chainId`
API returns an error when the chain is not synced. So use
`blockNumber` as a basic function test.
This commit is contained in:
Fabian Möller 2022-01-22 22:07:14 +01:00
parent 151717b818
commit af628f46a1
No known key found for this signature in database
GPG Key ID: 70B29D65DD8A7E31

View File

@ -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(