|
Equity
Bitcoin Protocol Library
|
A block in the block chain. More...
#include <Block.h>
Classes | |
| struct | Header |
| A standard block header. More... | |
Public Member Functions | |
| Block (Header const &header, TransactionList const &transactions) | |
| Block (uint8_t const *&in, size_t &size) | |
| Header | header () const |
| Returns the header. | |
| TransactionList | transactions () const |
| Returns a list of transactions in the block. | |
Overrides Serializable | |
| virtual void | serialize (std::vector< uint8_t > &out) const override |
| virtual json | toJson () const override |
A block in the block chain.
A Block contains a list of validated transactions and information about its inclusion in the block chain
| Block::Block | ( | Header const & | header, |
| TransactionList const & | transactions | ||
| ) |
| header | block header |
| transactions | transactions included in the block |
| Block::Block | ( | 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