Implements the missing initialization/serialization methods for msg_merkleblock
, based on the already present class CMerkleBlock
. Also changes the method wait_for_merkleblock()
to be more precise by waiting for a merkleblock with a specified blockhash instead of an arbitrary one.
In the BIP37 test p2p_filter.py
, this new method is used to make the test of receiving merkleblock and tx if a filter is set to be more precise, by checking if they also arrive in the right order.
In the course of this PR, also the interface for the methods wait_for_merkleblock()
and wait_for_header()
are improved to take a hex string instead of an integer, which is more typesafe and less of a burden to the caller.