poa-bridge/integration-tests
Yurii Rashkovskii 618d3bcb00
Problem: bridge crashes with insufficient balance
Currently there are two possible situations related to low balance on
the account which is used for bridge operations:

1. The account which is used to sign transactions to be addressed by
ForeignBridge contract has low balance. So, the bridge is not able to do
deposit_relay and withdraw_confirm.
2. The account which is used to sign transactions to be addressed by
HomeBridge contract has low balance. So, the bridge is not able to do
withdraw_relay.

In both cases bridges hangs silently at the moment of sending
transactions and does not proceed with further actions even the
operation is intended to be performed in opposite direction (e.g. the
bridge hangs at the moment to perform withdraw_relay, so deposit_relay
cannot be performed either).

Solution: make bridge track its balance and hande insufficient

Bridge will crash with ERR_INSUFFICIENT_FUNDS (code 4) so that
supervisor can decide what should happen next. It will also log the
condition.

P.S.Make sure to run the tests with `--test-threads=1` to avoid
other test conflicting with this one. A better solution to this
issue must be devised later, however.
2018-04-04 10:42:16 +04:00
..
tests Problem: bridge crashes with insufficient balance 2018-04-04 10:42:16 +04:00
Cargo.toml Problem: integration tests won't compile or pass 2018-03-05 15:23:36 +07:00
bridge_config.toml integration tests bridge config: give deposit more gas so it succeeds 2018-01-26 10:00:44 +01:00
bridge_config_gas_price.toml Problem: bridge crashes with insufficient balance 2018-04-04 10:42:16 +04:00
build.rs Problem: can't compile inyegration tests 2018-03-09 08:09:27 +00:00
password.txt add first rough integration test 2018-01-19 14:43:28 +01:00