A headers message.
More...
#include <HeadersMessage.h>
|
| HeadersMessage (Equity::BlockList const &blocks) |
|
| HeadersMessage (uint8_t const *&in, size_t &size) |
|
|
virtual void | serialize (std::vector< uint8_t > &out) const override |
|
virtual json | toJson () const override |
|
| Message (char const *type) |
|
std::string | type () const |
| Returns the type.
|
|
|
Equity::BlockList | blocks_ |
| Blocks with the transactions removed.
|
|
A headers message.
Contains block headers in response to a get-headers message.
- Note
- The header used in this message is effectively a Block::Header plus an empty list of transactions. The block headers in this packet include a transaction count (a VarInt, so there can be more than 81 bytes per header) as opposed to the block headers that are hashed by miners. I don't know why a standard block header isn't used in this message.
- See also
- GetHeadersMessage
HeadersMessage::HeadersMessage |
( |
Equity::BlockList const & |
blocks | ) |
|
HeadersMessage::HeadersMessage |
( |
uint8_t const *& |
in, |
|
|
size_t & |
size |
|
) |
| |
- Parameters
-
[in,out] | in | pointer to the next byte to deserialize |
[in,out] | size | number of bytes remaining in the serialized stream |
The documentation for this class was generated from the following files: