Equity
Bitcoin Protocol Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Network::MerkleBlockMessage Class Reference

A filtered-block message. More...

#include <MerkleBlockMessage.h>

Inheritance diagram for Network::MerkleBlockMessage:
Network::Message P2p::Serializable

Public Member Functions

 MerkleBlockMessage (Equity::Block::Header const &header, uint32_t count, Crypto::Sha256HashList const &hashes, P2p::BitArray const &flags)
 
 MerkleBlockMessage (uint8_t const *&in, size_t &size)
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
virtual json toJson () const override
 
- Public Member Functions inherited from Network::Message
 Message (char const *type)
 
std::string type () const
 Returns the type.
 

Public Attributes

Equity::Block::Header header_
 Block header.
 
uint32_t count_
 Number of transactions in the block (including unmatched ones)
 
Crypto::Sha256HashList hashes_
 Hashes in depth-first order.
 
P2p::BitArray flags_
 Flag bits.
 

Static Public Attributes

static char const TYPE [] = "merkleblock"
 Message type.
 

Detailed Description

A filtered-block message.

Contains information about a block and a filtered list of transactions in the block

Note
This message is related to bloom filtering of connections and is defined in BIP 0037.
See also
FilterAddMessage, FilterClearMessage, FilterLoadMessage

Constructor & Destructor Documentation

MerkleBlockMessage::MerkleBlockMessage ( Equity::Block::Header const &  header,
uint32_t  count,
Crypto::Sha256HashList const &  hashes,
P2p::BitArray const &  flags 
)
Parameters
headerblock header
countnumber of transactions in the block (including unmatched ones)
hasheshashes in depth-first order
flagsflag bits
MerkleBlockMessage::MerkleBlockMessage ( uint8_t const *&  in,
size_t &  size 
)
Parameters
[in,out]inpointer to the next byte to deserialize
[in,out]sizenumber of bytes remaining in the serialized stream

The documentation for this class was generated from the following files: