-
Notifications
You must be signed in to change notification settings - Fork 992
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
refactor finalize block #2482
refactor finalize block #2482
Conversation
8d2eb2a
to
91a3992
Compare
91a3992
to
3270bee
Compare
* tomas/refactor-testing-addrs: changelog: add #2507 core: prevent from using addresses for testing in non-test code changelog: add #2506 gov: replace namada_state dep with namada_storage changelog: add #2503 update all core types usages core: flatten types mod update replay_protection usage core: factor out the ledger::replay_protection mod into a new crate core: refactor out ledger::eth_bridge mod changelog: add #2493 benches: fix the shell to update conversions on new epochs move shielded params from core into shielded_token move inflation from core to trans_token replace namada_state usage with namada_storage in token crates changelog: add #2482 refactor finalize_block PoS updates refactor finalize_block governance updates refactor finalize_block token updates
3270bee
to
fdafaa6
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2482 +/- ##
==========================================
+ Coverage 53.38% 53.39% +0.01%
==========================================
Files 302 303 +1
Lines 103403 103433 +30
==========================================
+ Hits 55198 55231 +33
+ Misses 48205 48202 -3 ☔ View full report in Codecov by Sentry. |
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.
Looks good to me, thank you!
* tomas/refactor-finalize-block: changelog: add #2482 refactor finalize_block PoS updates refactor finalize_block governance updates refactor finalize_block token updates
* tomas/refactor-finalize-block: changelog: add #2482 refactor finalize_block PoS updates refactor finalize_block governance updates refactor finalize_block token updates
Can we also move namada/crates/apps/src/lib/node/ledger/shell/finalize_block.rs Lines 647 to 653 in fdafaa6
apply_inflation ? I suspect it may have been incorrectly placed into this function, it can at least go right into finalize_block::finalize_block or some other function, but it has nothing to do with inflation.
|
Would it also be safer to call |
Also, perhaps we could move |
Yeah, good call |
@yito88 it looks like the ibc events were in the wrong place and they would have only been applied on new epochs |
93bdcff
to
f338483
Compare
Describe your changes
Refactored token, gov and PoS sub-systems integration in finalize block. The token and PoS logic is moved into their respective crates. Gov proposal exec depends on the shell as well as IBC and PoS so this is kept in
crates/apps/src/lib/node/ledger/shell/governance.rs
for now.Indicate on which release or other PRs this topic is based on
0.31.5
Checklist before merging to
draft