How much time/how many confirmations does the blockfrost provider need to sync up? #241
Replies: 1 comment 1 reply
-
|
"dep" is a typo in " From "subsequent query" in
you mean that in step " Regarding number of confirmations, 1 should be fine unless there is a bug in our code/assumptions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a vague-ish question that I could use some help tracking down the answer to.
I have run in to a few situations where I've done something akin to
where:
runis the proper invocation ofrunGYTxMonadNodeor similar,submitAndAwaitisgySubmitTxfollowed bygyAwaitTxConfirmed, andfetchResultFromTx1is somerunGYTxQueryMonadNodecalltx2somehow depends inputs oftx1.After some debugging, I've found that although blockfrost seems to report the result of tx1 as "confirmed", but the subsequent query appears to not actually find it properly updated. (I put "appears" in italics, because it's possible that this is not actually the case, and I have a bug elsewhere.)
Bumping the confirmations that
gyAwaitTxConfirmedlooks for from 1 to 2 seemed to help the situation somewhat, but not entirely. I'm going to try a higher number of confirmations, but I'm wondering what best practice is here.Can anyone with more knowledge of blockfrost/atlas chime in here? My mental model of both assumed that once the confirmation goes through, both blockfrost/atlas should be fully in sync, but I've had this assumption violated on other frameworks before.
Beta Was this translation helpful? Give feedback.
All reactions