|
Equity
Bitcoin Protocol Library
|
A get-blocks message. More...
#include <GetBlocksMessage.h>
Public Member Functions | |
| GetBlocksMessage (uint32_t version, Crypto::Sha256HashList const &hashes, Crypto::Sha256Hash const &last) | |
| GetBlocksMessage (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 | |
| uint32_t | version_ |
| The protocol version. | |
| Crypto::Sha256HashList | hashes_ |
| List of block hashes to look for. | |
| Crypto::Sha256Hash | last_ |
| Last hash to return. | |
Static Public Attributes | |
| static char const | TYPE [] = "getblocks" |
| Message type. | |
A get-blocks message.
Requests an inventory message containing the list of blocks starting right after the last known hash in the block locator object, up to hash_stop or 500 blocks, whichever comes first.
| GetBlocksMessage::GetBlocksMessage | ( | uint32_t | version, |
| Crypto::Sha256HashList const & | hashes, | ||
| Crypto::Sha256Hash const & | last | ||
| ) |
| version | protocol version |
| hashes | requested blocks |
| last | last hash to return |
| GetBlocksMessage::GetBlocksMessage | ( | 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