Skip to content
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

update masp conversions via write log #1108

Merged
merged 29 commits into from
Feb 7, 2023
Merged

update masp conversions via write log #1108

merged 29 commits into from
Feb 7, 2023

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Jan 31, 2023

based on #913

This PR Improves the WlStorage to write protocol changes via block-level write log. This is then used to make sure that no storage changes are committed in ABCI FinalizeBlock request handler and only in the Commit handler.

@tzemanovic tzemanovic force-pushed the tomas/protocol-write-log branch 3 times, most recently from 24ece92 to 9441d70 Compare February 1, 2023 11:14
@tzemanovic
Copy link
Member Author

pls update wasm

tzemanovic added a commit that referenced this pull request Feb 1, 2023
tzemanovic added a commit that referenced this pull request Feb 1, 2023
@tzemanovic tzemanovic marked this pull request as ready for review February 1, 2023 18:27
@tzemanovic tzemanovic requested a review from juped February 1, 2023 18:29
@tzemanovic
Copy link
Member Author

pls update wasm

Copy link
Member Author

@tzemanovic tzemanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @yito88 for pointing out that there are possible storage write from goverance proposal that are committed directly to DB

@tzemanovic tzemanovic marked this pull request as draft February 2, 2023 09:41
tzemanovic added a commit that referenced this pull request Feb 2, 2023
@tzemanovic
Copy link
Member Author

thanks @yito88 for pointing out that there are possible storage write from goverance proposal that are committed directly to DB

I added the fix for gov - I've moved the gov module from tx_prelude into core/ledger/storage_api to make it re-usable and extended the test case to cover proposals with it.

@tzemanovic
Copy link
Member Author

pls update wasm

@tzemanovic tzemanovic marked this pull request as ready for review February 2, 2023 16:01
@juped juped merged commit d1260e6 into main Feb 7, 2023
@juped juped deleted the tomas/protocol-write-log branch February 7, 2023 01:49
juped added a commit that referenced this pull request Feb 10, 2023
* tomas/protocol-write-log:
  [ci] wasm checksums update
  changelog: add #1108
  shell/queries: refactor token query using storage_api token mod
  shell/gov: apply changes via `WlStorage` write log
  test/finalize_block: ensure that proposal doesn't commit to DB
  gov + token: refactor using storage_api
  move gov mod from tx_prelude to core storage_api
  test/test_vp_host_env: update to write via tx
  ledger: apply `update_allowed_conversions` storage changes via WlStorage
  wl_storage: apply protocol write log changes at block level
  test/ledger/shell: test that `finalize_block` doesn't commit storage
bengtlofgren pushed a commit that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants