about summary refs log tree commit diff
path: root/nixos/tests/geth.nix
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2022-01-22 22:07:14 +0100
committerFabian Möller <fabianm88@gmail.com>2022-01-22 22:07:14 +0100
commitaf628f46a1beaf74b1848593ee7ba200b4d4a67b (patch)
tree330e3367a25267d06959f15e41188aafb0c56c45 /nixos/tests/geth.nix
parent151717b818f932f0e4ac71c5be9eba3ebf85d4db (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.nix2
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(