-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
abci: PrepareProposal #6544
abci: PrepareProposal #6544
Conversation
Codecov Report
@@ Coverage Diff @@
## abci++ #6544 +/- ##
==========================================
- Coverage 62.39% 60.41% -1.98%
==========================================
Files 298 299 +1
Lines 39991 27943 -12048
==========================================
- Hits 24951 16881 -8070
+ Misses 13269 9344 -3925
+ Partials 1771 1718 -53
|
Blocked on spec version release. |
@ValarDragon in one section of the RFC you mention sending only blockdata (txs) but in a different section you mention also the header. Could you double-check this is right? |
The header should came after vote extensions are built, right now it should just have the tx data |
(does this PR have the right name?) |
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.
This seems like a relative straight forward PR to me.
Since PrepareProposal
also acts like a CheckTx
, do you think it would be possible to remove or adjust the way we RecheckTx
after every block
Co-authored-by: Aleksandr Bezobchuk <[email protected]> Co-authored-by: Callum Waters <[email protected]>
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.
This is dope 👍🏼
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
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 @marbar3778! Left a bit of small feedback.
if len(req.BlockData) >= 1 { | ||
req.BlockData[1] = []byte("modified tx") | ||
} |
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.
Maybe add a quick comment on what we're doing here in this example.
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
* [Rebased to v0.34.x] abci: PrepareProposal (#6544) * fixed cherry-pick * proto changes * make proto-gen * UT fixes * generate Client directive * mockery * App fixes * Disable 'modified tx' hack * mockery * Make format * Fix lint Co-authored-by: Marko <[email protected]>
* [Rebased to v0.34.x] abci: PrepareProposal (#6544) * fixed cherry-pick * proto changes * make proto-gen * UT fixes * generate Client directive * mockery * App fixes * Disable 'modified tx' hack * mockery * Make format * Fix lint Co-authored-by: Marko <[email protected]>
* abci: PrepareProposal (tendermint#6544) * regenerate mocks, proto, mod/sum, and clean up remaining preprocesstxs * fix tests and revert to old go.mod * mockery * add processproposal proto/boilerplate/logic * gofmt * fix test * move UNKNOWN response behaviour to reject * fix test and add testing util code * pass full block data when proposing or processing proposals * linter * add the process proposal method to the e2e app * add missing kvstore abci method * pass block data and results for bass app * use correct kvstore process logic for kvstore app * remove linting comment Co-authored-by: Ismail Khoffi <[email protected]> * formatting Co-authored-by: John Adler <[email protected]> * use go generate instead of make mockery * add link Co-authored-by: Marko <[email protected]> Co-authored-by: mconcat <[email protected]> Co-authored-by: Ismail Khoffi <[email protected]> Co-authored-by: John Adler <[email protected]>
* abci: PrepareProposal (tendermint#6544) * regenerate mocks, proto, mod/sum, and clean up remaining preprocesstxs * fix tests and revert to old go.mod * mockery * add processproposal proto/boilerplate/logic * gofmt * fix test * move UNKNOWN response behaviour to reject * fix test and add testing util code * pass full block data when proposing or processing proposals * linter * add the process proposal method to the e2e app * add missing kvstore abci method * pass block data and results for bass app * use correct kvstore process logic for kvstore app * add new lazy share writers * linter * remove unused arg * sort messages before exporting * formatting and bug fix * fix tests * allow for picking of square size when computing shares for the data square * remove accidental code duplication * fix test from using wrong formatting directive * linter * ci: backport lint configuration changes (tendermint#7225) * lint: cleanup pending lint errors (tendermint#7237) * linter * remove unused arg * sort messages before exporting * formatting and bug fix * fix tests * allow for picking of square size when computing shares for the data square * fix test from using wrong formatting directive * linter * ci: backport lint configuration changes (tendermint#7225) * lint: cleanup pending lint errors (tendermint#7237) * add new lazy share writers * fix rebase * linter * try ci with go 1.17 * Revert "try ci with go 1.17" This reverts commit 0f76b4d444465cf8209bd98bb18f21b242207436. * please work, linter gods * spelling Co-authored-by: Hlib Kanunnikov <[email protected]> * initialize pending share using the const share size for capacity * force the last reserve bytes to be zero * remove todo * add typecheck back to golang linter * Revert "ci: backport lint configuration changes (tendermint#7225)" This reverts commit 35178048f0fef2d80a0346f28c7687be75c3db11. * Revert "lint: cleanup pending lint errors (tendermint#7237)" This reverts commit 5d806709a9dbfed4f7dda2facb49d46604584d36. * add the link to issue back in * removed unfinished comment * switch fuzzer back to one minute * regenerate proto * better docs * fix encoding check to include the hash added to Data * add docs to CotiguousShareWriter * fix encoding check * explain why the share reserve byte is zero * use punctuation Co-authored-by: Ismail Khoffi <[email protected]> * use punctuation Co-authored-by: Ismail Khoffi <[email protected]> * use punctuation Co-authored-by: Ismail Khoffi <[email protected]> * use punctuation Co-authored-by: Ismail Khoffi <[email protected]> * use punctuation Co-authored-by: Ismail Khoffi <[email protected]> * use punctuation Co-authored-by: Ismail Khoffi <[email protected]> * use clearer wording for compute shares docs * more accurate docs Co-authored-by: Marko <[email protected]> Co-authored-by: mconcat <[email protected]> Co-authored-by: Sam Kleinman <[email protected]> Co-authored-by: Hlib Kanunnikov <[email protected]> Co-authored-by: Ismail Khoffi <[email protected]>
Description
PrepareProposal implementation.
TODO:
ref #6066
cc @ValarDragon