fix: reschedule waker for >1 confs (#112)
This commit is contained in:
parent
e9204ac72d
commit
65b50a7668
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue