-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adding substate and partition delete support to FlashLedgerTransaction in Core API #810
Conversation
…re/substate_flash_core_api
@@ -7413,10 +7413,10 @@ components: | |||
- $ref: "#/components/schemas/LedgerTransaction" | |||
- type: object | |||
required: | |||
- flash_transaction | |||
- flashed_state_updates |
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.
(note from author)
A flash transaction, apart from state updates, also has a name
.
Do we want to include it in the Core API response?
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.
Yes please :)
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.
(already done - see - name
one line above)
Docker tags |
@@ -1360,7 +1360,6 @@ impl SubstateDatabase for RocksDBStore { | |||
self.open_db_context() | |||
.cf(SubstatesCf) | |||
.iterate_group_from(&(partition_key.clone(), from_sort_key), Direction::Forward) | |||
.take_while(move |((next_key, _), _)| next_key == &partition_key) |
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.
(note from author)
This is just a drive-by mentioned at https://rdxworks.slack.com/archives/D04CPLNN81Y/p1705591790950219
…tes) + Asserting on flash txns' receipts.
…re/substate_flash_core_api
…re/substate_flash_core_api
|
An omission reported at https://rdxworks.slack.com/archives/C01M90Y2448/p1705913560366799
Intuitively, the
FlashTransaction
could be represented asStateUpdates
.However, our existing
StateUpdates
Core API output is very receipt-focused (e.g. it includes previous value for substate updates) and it is hard to render forFlashTransaction
. So I had to re-create a similar structure.