iotexproject / w3bstream

An offchain computing layer for DePIN verifiable data computation, supporting a variety of validity proofs including Zero Knowledge (ZK), Trusted Execution Environments (TEE), and Multi-party Computation (MPC)
https://docs.iotex.io/depin-infra-modules-dim/w3bstream-depin-verification
Apache License 2.0
26 stars 18 forks source link

Proof sending to chain is failing with "insufficient funds" error #26

Closed simonerom closed 1 year ago

simonerom commented 1 year ago

After following the README instructions I found my node is failing for me with the send transaction failed: insufficient funds for gas * price + value error. However, I've used a private key that has funds on the IoTeX testnet (>1800 IOTX).

img_v3_0251_76a6dcf9-e711-42fb-a4fb-cd2bcce2407h

Can we have some additional log about the CHAIN_ENDPOINT configuration, the actual address the proof is being sent to and estimated gas in the error message?

huangzhiran commented 1 year ago

ok, we will log this info

simonerom commented 1 year ago

After further verification, I found out that commit 9e33f23 works for me, as it successfully sends the transaction to the chain. However, the latest commit still fails to send the transaction, even after PR https://github.com/machinefi/sprout/pull/38 has been merged.

huangzhiran commented 1 year ago

the EstimateGas always return err "execution simulation failed: status = 106". I will change to hardcode gaslimit currently

huangzhiran commented 1 year ago

@simonerom the gas error has been fixed