Open KevL-99 opened 9 months ago
hi, did you start the faucet service successfully?
hi, did you start the faucet service successfully?
No. However I was able to use sui genesis -f --benchmark-ips
to start a local network with an arbitrary number of machines/IP addresses, and the faucet was usable with this method.
Goal
After starting a local sui network using
sui genesis-ceremony
, startsui-faucet
and get some gas coinsIssue
sui-faucet
on a local network started usingsui genesis-ceremony
sui faucet
returns an error when there are 0 gas coinssimple_faucet.rs
,sui-faucet
runs but unable to request gas coinsSteps to reproduce the issue
cargo run --bin sui-node -- --config-path <path/to/validator/or/fullnode/config/files>
sui client gas
, there are no gas coins owned by the active addresscargo run --bin sui-faucet -- --write-ahead-log /tmp/faucet.wal
, the faucet will give error:mpsc bounded channel requires buffer > 0
, the problem is caused by lines 124 and 125 ofsimple_faucet.rs
, containingmpsc::channel(coins.len())
, but there are no coins! So I manually changed it tompsc::channel(100)
, the faucet then starts upcurl
command gives error response{"transferredGasObjects":[],"error":"Timed out waiting for a coin from the gas coin pool"}
sui genesis -f
andsui start
, the start the faucet, the addresses seem to have some gas coin right off the start, so I was able to start the faucet without changingmpsc::channel(coins.len())
, and thecurl
command gives gas coin to the active address