poa-bridge/bridge/src/bridge
Yurii Rashkovskii 976256780b
Problem: unknown balance warning
Upon startup, bridge produces the following warning:

```
WARN:bridge::bridge::deposit_relay: foreign contract balance is unknown
```

This happens because the RPC response from the node might
not come/get processed immediately.

By itself this warning means that the deposit_relay won't
perform any operations.

Solution: don't commence operations until balances are retrieved

Also, indicate when balances are retrieved:

```
INFO:bridge::bridge: Retrieved home contract balance
INFO:bridge::bridge: Retrieved foreign contract balance
```

This shows us that the balances are successfully retrieved and
bridge can commence its operations.
2018-04-16 07:21:31 -07:00
..
balance.rs Problem: bridge crashes with insufficient balance 2018-04-04 10:42:16 +04:00
deploy.rs user explicitely specifies homeGasPrice on withdraw. resolves #112 2018-02-09 09:41:45 +01:00
deposit_relay.rs Problem: bridge crashes with insufficient balance 2018-04-04 10:42:16 +04:00
mod.rs Problem: unknown balance warning 2018-04-16 07:21:31 -07:00
withdraw_confirm.rs Problem: bridge crashes with insufficient balance 2018-04-04 10:42:16 +04:00
withdraw_relay.rs Problem: bridge crashes with insufficient balance 2018-04-04 10:42:16 +04:00