I try to run a custom testnet but it fails to connect to my local Parity Görli node.
I run a local Parity Görli node with all RPC APIs exposed:
~
❯ parity --chain görli --ports-shift 1234 --jsonrpc-apis all
2020-03-18 11:06:52 Starting Parity-Ethereum/v2.7.2-stable-2662d1925e-20200206/x86_64-unknown-linux-gnu/rustc1.41.0
2020-03-18 11:06:52 Keys path /home/user/.local/share/io.parity.ethereum/keys/goerli
2020-03-18 11:06:52 DB path /home/user/.local/share/io.parity.ethereum/chains/goerli/db/b1d518969eab529d
2020-03-18 11:06:52 State DB configuration: fast
2020-03-18 11:06:52 Operating mode: active
2020-03-18 11:06:53 Configured for Görli Testnet using Clique engine
2020-03-18 11:06:55 NAT mapped to external address 192.168.1.100:31537
2020-03-18 11:06:55 Public node URL: enode://e2ea472bcbf28c3a5784e34f6ca05cca9c87779885af013eaf3ecc4d0f213e19a20f4170b83945631507b84187368df51dcb15011da4f2c125e9a1e58f258934@192.168.1.100:31537
2020-03-18 11:07:00 Syncing #2356636 0x7466…4808 0.00 blk/s 0.0 tx/s 0.0 Mgas/s 0+ 379 Qed #2359175 8/25 peers 0 bytes chain 60 MiB db 2 MiB queue 19 MiB sync RPC: 0 conn, 0 req/s, 0 µs
2020-03-18 11:07:04 Reorg to #2356637 0xb176…7eeb (0x7466…4808 #2356635 0xa50a…0559 0x2e71…7d20)
2020-03-18 11:07:05 Syncing #2356694 0x4293…3db2 11.59 blk/s 14.6 tx/s 4.8 Mgas/s 0+ 9597 Qed #2366294 8/25 peers 88 KiB chain 60 MiB db 44 MiB queue 7 MiB sync RPC: 0 conn, 0 req/s, 0 µs
2020-03-18 11:07:10 Syncing #2356912 0x55bb…212c 43.57 blk/s 70.2 tx/s 24.2 Mgas/s 0+ 9381 Qed #2366294 8/25 peers 184 KiB chain 68 MiB db 42 MiB queue 7 MiB sync RPC: 0 conn, 0 req/s, 0 µs
2020-03-18 11:07:15 Syncing #2357245 0x4b92…a9db 66.60 blk/s 114.4 tx/s 38.3 Mgas/s 0+ 9045 Qed #2366294 8/25 peers 299 KiB chain 68 MiB db 41 MiB queue 7 MiB sync RPC: 0 conn, 0 req/s, 0 µs
2020-03-18 11:07:20 Syncing #2357649 0x2831…a339 80.80 blk/s 146.8 tx/s 39.4 Mgas/s 0+ 8640 Qed #2366291 8/25 peers 438 KiB chain 65 MiB db 39 MiB queue 7 MiB sync RPC: 0 conn, 0 req/s, 0 µs
And I run a Lighthouse custom beacon chain node that fails to connect to Görli on Port 9779:
~/.opt/lighthouse master ⇣
❯ target/release/lighthouse b --testnet-dir ~/.lighthouse/schlesi --spec mainnet --eth1-endpoint 127.0.0.1:9779
Mar 18 11:08:00.836 WARN Ethereum 2.0 is pre-release. This software is experimental.
Mar 18 11:08:00.837 INFO Starting from an empty database data_dir: "/home/user/.lighthouse/beacon"
Mar 18 11:08:00.887 INFO Waiting for eth2 genesis from eth1 eth1_node: 127.0.0.1:9779, service: beacon
Mar 18 11:08:07.931 ERRO Failed to update eth1 deposit cache error: GetBlockNumberFailed("Failed to get block number: Request failed: Error(Url(RelativeUrlWithoutBase))"), service: beacon
Mar 18 11:08:14.945 ERRO Failed to update eth1 deposit cache error: GetBlockNumberFailed("Failed to get block number: Request failed: Error(Url(RelativeUrlWithoutBase))"), service: beacon
Mar 18 11:08:21.966 ERRO Failed to update eth1 deposit cache error: GetBlockNumberFailed("Failed to get block number: Request failed: Error(Url(RelativeUrlWithoutBase))"), service: beacon
Mar 18 11:08:28.990 ERRO Failed to update eth1 deposit cache error: GetBlockNumberFailed("Failed to get block number: Request failed: Error(Url(RelativeUrlWithoutBase))"), service: beacon
Mar 18 11:08:36.014 ERRO Failed to update eth1 deposit cache error: GetBlockNumberFailed("Failed to get block number: Request failed: Error(Url(RelativeUrlWithoutBase))"), service: beacon
I was assuming that connecting to a local Görli node should work smoothly.
This is my testnet config: https://gist.github.com/q9f/d6eea3ea3356e41bde81864143284ce9
And my field notes: https://hackmd.io/GIwaFeGaQn6q7VYb_n94LA?both
I'm unable to resolve this on my own. Why would it fail to update the eth1 deposit cache?
The contract does not have any deposits yet. But that shouldn't be of an issue? https://goerli.etherscan.io/address/0xaa888248144bc5d584a7f400839d0d912f21c39a
Ah, sorry for the buzz, I forgot to pass the protocol (HTTP)
--eth1-endpoint http://127.0.0.1:9779
Most helpful comment
Ah, sorry for the buzz, I forgot to pass the protocol (HTTP)