blocknative/notify

Desynchronized events

Closed this issue · 3 comments

I'm creating a universal Faucet for developers and I'm using Notify.js. Thanks for the library it's awesome!
I'm having a small issue that I'm not being able to solve.
When I receive a transaction hash from Kovan network, it's already mined / confirmed and I get the notify.hash() listening forever and never entering into emitter.on('txConfirmed', (data) => {.
Is there a way to fix this through to the library?

@lndgalante Is this problem specific to Kovan? Or do you see it on other networks? We should be delivering a txConfirmed response even if we start listening after the tx is confirmed, as long as the confirmation was recently (less than an hour ago). Will investigate on this end.

@cmeisl Yes just only on Kovan, the transactions are done really fast, I did some hacky thing on my code as a temporary fix that works for now. Thanks!

We are not able to reproduce this issue.

Note that If it a transaction is watched once it works as expected, as long the the transaction was confirmed within the last hour. If you watch the same transaction a second time, then it hangs, but that is expected behavior as we don't notify the same client twice.

@lndgalante Closing this issue. Please comment if you still think there is a problem and would like to re-open the issue.