-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fog passes
latest_block_version
to clients in its responses (#1461)
* Fog passes `latest_block_version` to clients in its responses This makes fog-ledger pass `latest_block_version` to clients in its responses when they do `KeyImage` checks or get merkle proofs. This will mean that they will get an update on this value when they do a balance check or before they submit a transaction, giving them a chance to potentially: * Pass the `latest_block_version` to the transaction builder, as envisioned in MCIP #26. * Maybe signal the need for an update if in the course of a balance check we learn that the block version has advanced beyond what our software was built to support. This is not a breaking change, this is just the part where fog communicates the `block_version` which is backwards compatible, so it is safe to merge at any time. The non-fog clients can already ask the ledger for the latest block version directly. We could add an API to consensus as well to get the latest block header, but it doesn't seem that it's a requirement right now so we didn't. * Update ledger/db/src/ledger_trait.rs Co-authored-by: Remoun Metyas <[email protected]> * try to get more fog ledger tests to pass * also pass `max_block_version` to the clients when we pass `block_version` This addresses a review suggestion from Eran Co-authored-by: Remoun Metyas <[email protected]>
- Loading branch information
Showing
13 changed files
with
228 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.