diff options
author | Fabian Möller <fabianm88@gmail.com> | 2022-01-22 22:07:14 +0100 |
---|---|---|
committer | Fabian Möller <fabianm88@gmail.com> | 2022-01-22 22:07:14 +0100 |
commit | af628f46a1beaf74b1848593ee7ba200b4d4a67b (patch) | |
tree | 330e3367a25267d06959f15e41188aafb0c56c45 /nixos/tests/geth.nix | |
parent | 151717b818f932f0e4ac71c5be9eba3ebf85d4db (diff) |
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.
Diffstat (limited to 'nixos/tests/geth.nix')
-rw-r--r-- | nixos/tests/geth.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/geth.nix b/nixos/tests/geth.nix index 10cbd6d9038ca..af8230553bbbb 100644 --- a/nixos/tests/geth.nix +++ b/nixos/tests/geth.nix @@ -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( |