-
Notifications
You must be signed in to change notification settings - Fork 60
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
add get_current_pparams
local state query
#322
Merged
scarmuega
merged 5 commits into
txpipe:main
from
falcucci:get-current-protocol-params-local-state-query
Jan 8, 2024
Merged
add get_current_pparams
local state query
#322
scarmuega
merged 5 commits into
txpipe:main
from
falcucci:get-current-protocol-params-local-state-query
Jan 8, 2024
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
falcucci
changed the title
add
add Oct 30, 2023
GetEpoch
local state query w examplesGetCurrentPParams
local state query w examples
falcucci
changed the title
add
add Oct 30, 2023
GetCurrentPParams
local state query w examplesGetCurrentPParams
local state query w examples
falcucci
force-pushed
the
get-current-protocol-params-local-state-query
branch
from
January 3, 2024 20:25
332ead2
to
d045701
Compare
- rearranged the order of `preview_magic` and `pre_production_magic` in the import statement. - refactored how the variable `addry` is instantiated for readability. - added a function call to `queries_v16::get_current_pparams` in the `do_localstate_query` function. - refactored the instantiation of the `client` variable in the `main` function for readability. - in the `pallas-network` library, added the ability to encode and decode `rationalnumber` objects in relation to `minicbor`. - extended the `miniprotocols` in the `pallas-network` library with multiple structs and types related to epochs, cost models, protocol versions, etc. - implemented an asynchronous function `get_current_pparams` in the `miniprotocols` to get current protocol parameters.
- imported `unitinterval` from `pallas_network::miniprotocols::localstate::queries_v16` - added additional testing code for the server receiving a query from the client, including a check for the initial state of the query and sending the result of the query back to the client. - the query includes a large number of protocol parameters updates such as `minfee_a`, `max_block_body_size`, `pool_pledge_influence`, `max_collateral_inputs`, etc. - enhanced client-side testing code that sends a request and expects a series of `protocolparamupdate` in response from server - the client now tests for and handles receiving protocol parameters updates similar to those sent by the server.
falcucci
changed the title
add
add Jan 3, 2024
GetCurrentPParams
local state query w examplesGetCurrentPParams
local state query
@scarmuega just to prepare the bedside, this is also ready for review |
falcucci
changed the title
add
add Jan 3, 2024
GetCurrentPParams
local state queryget_current_pparams
local state query
falcucci
changed the title
add
add Jan 3, 2024
get_current_pparams
local state queryget_current_pparams
local state query
- rename struct `protocolparamupdate` to `protocolparam` - update the usage of the renamed struct `protocolparam` in the `get_current_pparams` function - adjust tests to reflect the renamed struct `protocolparam`
…c-miniprotocols` example.
scarmuega
approved these changes
Jan 8, 2024
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.
fixes #318