|
Equity
Bitcoin Protocol Library
|
A block message. More...
#include <BlockMessage.h>
Public Member Functions | |
| BlockMessage (Equity::Block const &block) | |
| BlockMessage (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 Attributes | |
| Equity::Block | block_ |
| A block. | |
Static Public Attributes | |
| static char const | TYPE [] = "block" |
| Message type. | |
A block message.
The block message contains a block and is sent in response to a getdata message which requests information from a block hash.
| BlockMessage::BlockMessage | ( | Equity::Block const & | block | ) |
| block | a block |
| BlockMessage::BlockMessage | ( | uint8_t const *& | in, |
| size_t & | size | ||
| ) |
| [in,out] | in | pointer to the next byte to deserialize |
| [in,out] | size | number of bytes remaining in the serialized stream |
1.8.11