Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Nov 22, 2014

This is a check that is mentioned in BIP 37, but never implemented in the reference code. As Bitcoin Core so far never decodes partial merkle trees, this is not a problem. But perhaps others use the code as a reference.

Not intended for 0.10.

@mikehearn
Copy link
Contributor

Yes, bitcoinj uses a completely straight line translation of your code to Java. Equivalent commit is here:

bitcoinj/bitcoinj@bd986f3

Thanks! Also thanks to Matt for pointing this pull req out to me.

@sipa
Copy link
Member Author

sipa commented Nov 24, 2014

@mikehearn Heh, good that you notice. I was convinced that BitcoinJ actually implemented the rule as written in the BIP (on the other hand, until recently I was also convinced that Bitcoin Core implemented it too).

@TheBlueMatt
Copy link
Contributor

@sipa you underestimate my laziness, then :)

@laanwj laanwj added the Tests label Nov 28, 2014
This is a check that is mentioned in BIP 37, but never implemented in the
reference code. As Bitcoin Core so far never decodes partial merkle trees,
this is not a problem. But perhaps others use the code as a reference.
@sipa
Copy link
Member Author

sipa commented Dec 11, 2014

Rebased.

@laanwj
Copy link
Member

laanwj commented Dec 11, 2014

Tested ACK
commithash 0125988 pull #5349
(signature)

@laanwj laanwj merged commit 0125988 into bitcoin:master Jan 2, 2015
laanwj added a commit that referenced this pull request Jan 2, 2015
0125988 Implement test for merkle tree malleability in CPartialMerkleTree (Pieter Wuille)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants