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

A send-headers message. More...

#include <SendHeadersMessage.h>

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

Public Member Functions

 SendHeadersMessage (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.
 

Static Public Attributes

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

Detailed Description

A send-headers message.

Upon receipt of this message, the node is be permitted, but not required, to announce new blocks by headers messages (instead of inventory messages).

This message is supported by the protocol version >= 70012 or Bitcoin Core version >= 0.12.0.

See also
https://github.com/bitcoin/bips/blob/master/bip-0130.mediawiki

Constructor & Destructor Documentation

SendHeadersMessage::SendHeadersMessage ( 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: