Deposits wait (#1036)

* Address clippy arith lints

* Make account manager wait for eth1 to sync

* Fix bug with testnet parsing

* Tidy logs
This commit is contained in:
Paul Hauner
2020-04-22 15:20:55 +10:00
committed by GitHub
parent 018a666731
commit 2b6b2354e4
5 changed files with 164 additions and 39 deletions

View File

@@ -308,7 +308,7 @@ impl ValidatorDirectoryBuilder {
web3: Web3<T>,
from: Address,
deposit_contract: Address,
) -> impl Future<Item = Self, Error = String> {
) -> impl Future<Item = (Self, Hash256), Error = String> {
self.get_deposit_data()
.into_future()
.and_then(move |(deposit_data, deposit_amount)| {
@@ -325,7 +325,7 @@ impl ValidatorDirectoryBuilder {
})
.map_err(|e| format!("Failed to send transaction: {:?}", e))
})
.map(|_tx| self)
.map(|tx| (self, tx))
}
pub fn build(self) -> Result<ValidatorDirectory, String> {