wormhole-foundation / wormhole-monitor

The eagle-eyed observer. The meta-watcher.
https://wormhole-foundation.github.io/wormhole-monitor/
Other
6 stars 0 forks source link

near: ensure execution outcomes are finalized #36

Closed heyitaki closed 1 year ago

heyitaki commented 1 year ago

A transaction that is included in a finalized block may contain execution outcomes that are included in unfinalized blocks. Take for example this transaction that was executed in block 81623098 and has WH logs from receipt 8BD19w75XUxtsyPXqJVqB5cY5jL1452wqL1WNETEWLHG executed in block 81623100 2 seconds later.

A possible solution is to use a queue of transactions to fetch and re-add a transaction to queue to be processed later if it has an unfinalized outcome, similar to the way the NEAR guardian watcher works.