fix: reschedule waker for >1 confs (#112)

This commit is contained in:
Georgios Konstantopoulos 2020-12-24 18:33:22 +02:00 committed by GitHub
parent e9204ac72d
commit 65b50a7668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ impl<'a, P: JsonRpcClient> Future for PendingTransaction<'a, P> {
*this.state = PendingTxState::Completed; *this.state = PendingTxState::Completed;
return Poll::Ready(Ok(receipt)); return Poll::Ready(Ok(receipt));
} else { } else {
*this.state = PendingTxState::PausedGettingBlockNumber(receipt.clone()) *this.state = PendingTxState::PausedGettingBlockNumber(receipt.clone());
ctx.waker().wake_by_ref();
} }
} }
PendingTxState::Completed => { PendingTxState::Completed => {