Open PurrProof opened 1 week ago
This is probably due to you not running Scilla - see the code in z2/src/
for details (or use scripts/z2 run
to run your network). I believe this behaviour to be correct:
Whilst the subsequent treatment of the txn might bear investigation (I'm not sure to what extent we should fail txns or keep them around forever in the hope that one day they will succeed - at least, until another txn with the same nonce and higher gas fee turns up), I'd allege that this is a fairly minor issue given that Scilla should normally be available.
I guess one question (for @JamesHinshelwood ?) is whether the node should outright abort when it can't connect to Scilla.
No, this is definitely not because Scilla isn’t running.
I’m sure Scilla is compiled into this Zilliqa binary:
$ RUST_LOG=zilliqa=warn,zilliqa=info ./target/debug/zilliqa 65d7f4da9bedc8fb79cbf6722342960bbdfb9759bc0d9e3fb4989e831ccbc227 -c config-single-node.toml 2>&1
The tests from evm_scilla_js_tests, run with pnpm hardhat test
, including the Scilla-related tests, work well on this Zilliqa binary.
Problem appears, when I try to deploy scilla-contract via Gozilliqa. Same Go-script works as expected (contract deployed), when I run ZQ2 with `docker compose up -d'.
Contract Deployment Fails with "Connection Refused" Error When Running Zilliqa Node Manually
Description:
I am running a Zilliqa node using the following command:
This approach to run the node is based on the script from Zilliqa's repo.
When trying to deploy a contract using the GoZilliqa SDK, I encounter the following logs:
especially this:
error=Transport(Http(Stream(hyper_util::client::legacy::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))))
The error message indicates a
Connection Refused
issue, and the transaction fails. However, the transaction is reported as processed in the response:When I start the Zilliqa node using
docker compose up
, the contract deploys successfully, and no such connection issue occurs.Possible Issue:
Can you please help clarify the source of this connection refusal error when manually starting the node, and suggest a fix or workaround?