8000 Node/Solana: TX for account by bruce-riley · Pull Request #4350 · wormhole-foundation/wormhole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Node/Solana: TX for account #4350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bruce-riley
Copy link
Contributor
@bruce-riley bruce-riley commented Apr 15, 2025

This PR updates the Solana watcher so that it can use the getSignaturesForAddress RPC call to poll for Wormhole observations, and enables the feature for Fogo. (This is the technique used in the dashboard monitor.)

Note that this PR does not affect the behavior for either Solana or Pyth.

The hope is that this technique will work better than the current technique of polling for every block, given Fogo's short block time.

Each interval (one second), it polls for the latest slot, determines the range of transactions (but not the complete list of transactions) since the last interval, and uses the above mentioned RPC call to read all transactions involving the Core contract within that range of transactions. If it finds any transactions involving the Core contract, it uses the standard transaction processing code to observe any messages.

This PR also adds the transaction signature to the "message observed" log message, to help with debugging and reobservation.

@bruce-riley bruce-riley force-pushed the node/solana_tx_for_acct branch 5 times, most recently from cdc4ff6 to c1ea700 Compare April 15, 2025 20:22
@bruce-riley bruce-riley marked this pull request as ready for review April 15, 2025 20:25
@bruce-riley bruce-riley force-pushed the node/solana_tx_for_acct branch 6 times, most recently from 960c62d to dfb84ae Compare April 17, 2025 19:53
@bruce-riley bruce-riley force-pushed the node/solana_tx_for_acct branch from dfb84ae to cb2673a Compare May 19, 2025 18:55
@bruce-riley bruce-riley force-pushed the node/solana_tx_for_acct branch from cb2673a to 8ed2ad8 Compare May 21, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0