-
Notifications
You must be signed in to change notification settings - Fork 25
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
Helium Lib attempt: 2 #930
Open
michaeldjeffrey
wants to merge
61
commits into
main
Choose a base branch
from
mj/helium-lib-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
michaeldjeffrey
force-pushed
the
mj/helium-lib-2
branch
from
January 14, 2025 16:31
2e366ad
to
92d81de
Compare
Remove test mocks, or move them to unit tests where applicable
now we can remove the ignore from testing confirmed txns
It's the only place it's still used, and a sender is being worked on that will use the same name.
The work done is helium-lib is useful, but not quite what we were looking for. The change still allows us to clean up quite a bit within Oracles though, so we can still use it.
When we submit to solana, we move the existing data transfer sessions to a pending table. When the txn is finalized, we write those to s3 from the pending table and delete. We do this move so the Daemon can continue to ingest s3 files without making them indistinguishable from pending txns.
- unneeded lifetimes - unnecessary references - box large Error
michaeldjeffrey
force-pushed
the
mj/helium-lib-2
branch
from
January 15, 2025 22:48
92d81de
to
a7116be
Compare
bbalser
reviewed
Jan 22, 2025
we want to put the server in a place to write out verified data transfer sessions, even if it cannot burn. fixup to always confirm before burning
This is a relatively big query, and it is nice to not have to keep multiple copies of it in sync. first_timestamp was added to handle the case where pending data transfer sessions are being moved back to the regular data transfer sessions table.
michaeldjeffrey
force-pushed
the
mj/helium-lib-2
branch
from
January 22, 2025 20:12
e9b1181
to
a09b1d7
Compare
bbalser
approved these changes
Jan 31, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a doozy!
The initial swing at using
helium-lib
in Oracles was intended only for the constructing of transactions.It then moved into also using
helium-lib
for sending and finalizing transactions, as there were issues with trusting when Solana said a transaction was finalized.Much of the work in this PR was a result of that attempt. It wasn't quite what was considered useful for
helium-lib
, but it did provide a baseline for shoring up burn transaction in Oracles.Use
helium-lib
for constructing transactionhexboosting::start_boost
inboost_manager
dc::burn_delegated
iniot_packet_verifier
andmobile_packet_verifier
iot_packet_verifier
updatessqlx
instead of mocksimpl TxnStore
for tracking transactionssolana
workspace providedTestSolanaClientMap
for Solana mock instead of local mockmobile_packet_verifier
updatespending_txns.sql
migration for tracking pending txns in a similar style toiot_packet_verifier
confirm_pending_txns
on startupimpl TxnStore
for tracking transactionssolana
workspace providedTestSolanaClientMap
for Solana mock instead of local mocksolana
updatesSolanaRpc
takes it'sSubDao
as an argumentburn::test_client::TestSolanaClientMap
for testingsender
module for breaking out how to track burn transactionsTransaction
wrapper for(SolanaTransaction, BlockHeight)
send_with_retry!
macro intostart_boost
until it also uses aTxnStore
for retrying.Thoughts for upcoming PRs
PendingTxn
could be consolidated betweeniot_packet_verifier
andmobile_packet_verifier
intosolana
, but they are currently not similar enough to feel comfortable doing that.helium-lib
handling send/retry/finalize logic for users.