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.
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.
Yes, bitcoinj uses a completely straight line translation of your code to Java. Equivalent commit is here:
https://github.com/bitcoinj/bitcoinj/commit/bd986f35f10aa28299b8a9b5e4633cb437b013f7
Thanks! Also thanks to Matt for pointing this pull req out to me.
@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).
@sipa you underestimate my laziness, then :)
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.
Rebased.