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

Remove Merkle Proof Generation from Foreign API get_outputs #3792

Merged
merged 4 commits into from
Jun 18, 2024

Conversation

yeastplume
Copy link
Member

As evidenced by #3791, Merkle proof generation is an experimental feature that currently isn't being used but also has the potential to grind nodes to a halt, as a request for a proof for an early output requires the chain to rewind to that position. This is an obvious problem for archival nodes, but also an issue on non-archival nodes due to the ability to request the genesis coinbase output and force a rewind of the entire chain.

This functionality had been turned off for the get_block function, but for some reason remained within the get_outputs function.

#3487

Note there's no known use for these Merkle proofs as present (PIBD uses a form of them, but has its own code for proof generation and never requires a rewind due to it only operating on tree states at the horizon). This PR modifies the foreign API call to ignore the include_merkle_proof field in the get_outputs foreign api, while leaving the parameter in place to avoid breaking existing installations. Instructions to turn it back on are embedded.

Once merged into master, will cherry-pick to 5.3.x branch and rebuild.

@yeastplume yeastplume changed the title Remove Merkle Generation from Foreign API get_outputs Remove Merkle Proof Generation from Foreign API get_outputs Jun 17, 2024
Copy link
Contributor

@tromp tromp left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@yeastplume yeastplume merged commit 845c41d into mimblewimble:master Jun 18, 2024
12 checks passed
yeastplume added a commit to yeastplume/grin that referenced this pull request Jun 19, 2024
…wimble#3792)

* Update versioning on master to 5.4.0-alpha.0

* Remove merkle proof generation from foreign API
yeastplume added a commit that referenced this pull request Jun 20, 2024
…#3793)

* Remove Merkle Proof Generation from Foreign API `get_outputs` (#3792)

* Update versioning on master to 5.4.0-alpha.0

* Remove merkle proof generation from foreign API

* version update for next build
bayk added a commit to mwcproject/mwc-node that referenced this pull request Jun 29, 2024
…_outputs` (mimblewimble#3792) (mimblewimble#3793)

MWC - Merkle Proof is not removed, it is optional requested data, let's not break API
@IDRozenblad
Copy link

seems fine

yeastplume added a commit that referenced this pull request Sep 16, 2024
* Update grin_secp to 0.7.14 (#3788)

* Update versioning on master to 5.4.0-alpha.0

* Update versioning on master to 5.4.0-alpha.0 (#3789)

* Remove Merkle Proof Generation from Foreign API `get_outputs` (#3792)

* Update versioning on master to 5.4.0-alpha.0

* Remove merkle proof generation from foreign API

* Rust 1.80+ fixes & accumulated warning cleanup (#3796)

* Update versioning on master to 5.4.0-alpha.0

* updates for 1.80 and other accumulated warnings

* further warning cleanups

* move dead code tag to function defn rather than module

* Chain type field (#3790)

* Adding chain type field into get_status rpc

* formatting

* update version for next build

---------

Co-authored-by: aglkm <[email protected]>
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.

3 participants