-
Notifications
You must be signed in to change notification settings - Fork 134
feat(bitcoin-da): Job service #2960
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
jfldde
wants to merge
104
commits into
nightly
Choose a base branch
from
feat/bitcoin-da-job-service
base: nightly
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
Changes from all commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
5294cfd
feat: Cap bitcoin-da fee rate
jfldde 568e852
Revert capping at the FeeService level
jfldde b7342e0
Handle capping at the run_da_queue level and leverage existing retry …
jfldde 6da2916
Set default value of 15sat/vb
jfldde 48cd30e
Do not try sending tx with capped fee rate
jfldde 65caf04
Lint
jfldde 71cd09c
Merge branch 'nightly' into feat/cap-da-max-fee-rate
jfldde 64b789f
Temporary cap
jfldde 7e4e781
Comment
jfldde 23a4ee8
Rename to avoid confusion with sequencer config
jfldde eeb202f
DA job service initial implementation with test passing
jfldde a539c1e
Rm unused file
jfldde 3d7f1c3
Remove dead code
jfldde 3c93173
Fix build
jfldde 5dfd0d4
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde d9f33a9
Index job ids by index
jfldde d0682f0
Fetch fee rate before right before funding tx
jfldde bb1525f
Fix lint
jfldde 80b9d8c
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde 7c44415
Rethink should_select_new_utxo logic
jfldde f05d2cd
job RPCs
jfldde b16bda0
Cleanup
jfldde 635a477
Cleanup database error propagation
jfldde b16771d
Persistency test
jfldde 57f4233
Cleanup
jfldde 8c3a891
chore: da jobs schema types (#2966)
rakanalh eef70f6
Fix clippy issues
rakanalh aaeaa61
Remove job wrapper in RPCs
jfldde 1d582a6
Keep writes atomic
jfldde 7dc9642
Restore as_u8
jfldde 580e6bc
Prevent concurrent access to job service
jfldde 0c3b30c
Cleanup sent txids tracking
jfldde a9285d5
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde ac4137e
Fix ledgerdb re-use between services
jfldde c3475d2
Dedup ledgerdb test config
jfldde a7eb889
Fix utxo selection
jfldde d7c06ed
Fix lint
jfldde 1955c2b
Protect behind API_KEY
jfldde aecc8dc
Merge branch 'feat/cap-da-max-fee-rate' into feat/bitcoin-da-job-service
jfldde 1d345e8
Fee cap
jfldde 695769a
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde 8c4d6c3
Da job metrics
jfldde e5f5523
Rename to da_job
jfldde cb8ba05
Da job id by prover job id index
jfldde 27d97ae
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde 76abe0c
feat: DA job rollback (#2984)
rakanalh 3a6323d
Handle finalize_proving_job
jfldde 72e7d12
Remove prints
jfldde c16aa69
Fix build
jfldde 8d176d2
Lint
jfldde 00af97a
Restore test
jfldde 54fa3e8
Lint
jfldde ff7b779
Remove RPC todo
jfldde 6b14d8e
Store only txid in SentChunks
jfldde 542e2ab
Cache RawTxData and retrieve proof by id
jfldde 0987fab
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde f248217
Keep DaTxRequest behind native flag
jfldde 5667649
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde d197439
Handle process new job in select loop
jfldde 28504b3
Add e2e test for batch prover restart recovery
jfldde a12e54b
Fix build
jfldde 06efea6
Handle StoredProof variant for mockda
jfldde 4299a90
Add RPC to get da job id by job id
jfldde 2bf550b
Remove Job wrapper and store DaTxRequest as value instead
jfldde d9e8ac5
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde 30f6444
Lint
jfldde b75adfa
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde 9516eaf
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde 46fe7fd
Recover transient error and test
jfldde 1350a3d
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde ce8a04a
Remove da job RPCs from PROTECTED_METHODS
jfldde 3917bb1
Cap list jobs to 100
jfldde 6bed148
Fix array size
jfldde e1aed6f
Move DaTxRequest out of state_machine
jfldde 89f62b5
Add missing DaJobIdByProvingJobId to LEDGER_TABLES
jfldde d65ed88
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde e480de7
Dont wait for seqcom txid and add logging
jfldde a99ac5b
Rename wait_for_existing_da_job
jfldde 6e8b547
Rename RPC with additional ById suffix
jfldde 8077122
Additional documentation for InProgress and Completed status
jfldde 600498c
Don't go through file for test helper method
jfldde 84e05d9
Lint
jfldde bd0fdb8
Rename SentChunks to SentTxs to better reflect Complete tx tracking
jfldde d308b7c
Bump max_rebroadcast_attemps for test_queue_da_transactions_oldest_mode
jfldde c31ef6d
Move recover job logic
jfldde 3405f4a
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde d1130f1
Extract fee validation logic from process_job
jfldde a8b7768
Fix lint
jfldde 0420599
Steamline transaction recovery
jfldde b43e023
Get rid of Pending status
jfldde 08ae239
Limit data passed down to get_job_elapsed_time
jfldde 3378dab
refactor: UtxoManager
jfldde ed542ee
Merge branch 'nightly' into feat/utxo-manager
jfldde 8fc0022
Merge branch 'nightly' into feat/utxo-manager
jfldde 3f1d784
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde 84a1e47
Use parking_lot
jfldde 884500c
Remove deadcode
jfldde dbc3cb6
Renames
jfldde 5c5d0e8
Use UtxoContext consistently
jfldde 9b46a3c
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde 643e369
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde 9520a10
Merge branch 'feat/utxo-manager' of https://github.com/chainwayxyz/ci…
jfldde c1a59f8
Merge branch 'nightly' into feat/bitcoin-da-job-service
jfldde 8de4155
Merge branch 'nightly' of https://github.com/chainwayxyz/citrea into …
jfldde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we really separate these two?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I liked doing the PR this way but the resulting
daJobnamespace might be superfluous. I'll merge them