Test for request
run example cargo run --package web3 --example transport_ws_loss_connection.
Got logs
Calling accounts.
Balance of 0xd028d24f16a8893bd078259d413372ac01580769: 99993030720000000000
Balance of 0xd028d24f16a8893bd078259d413372ac01580769: 99993030720000000000
Then restart ganache, got logs:
Get balance failed: Cannot send request. Internal task finished.
Get balance failed: Cannot send request. Internal task finished.
Get balance failed: Cannot send request. Internal task finished.
Balance of 0xd028d24f16a8893bd078259d413372ac01580769: 99993030720000000000
Balance of 0xd028d24f16a8893bd078259d413372ac01580769: 99993030720000000000
Balance of 0xd028d24f16a8893bd078259d413372ac01580769: 99993030720000000000
Test for subscription
run example cargo run --package web3 --example contract_log_filter_loss_connection
Got logs:
https://github.com/tomusdrw/rust-web3/issues/627
Firstly, run ganache
ganache-cli -b 3 -m "hamster coin cup brief quote trick stove draft hobby strong caught unable" --db ./db
Test for request run example
cargo run --package web3 --example transport_ws_loss_connection
. Got logsThen restart ganache, got logs:
Test for subscription run example
cargo run --package web3 --example contract_log_filter_loss_connection
Got logs:Then restarted ganache, got logs: