16 return packet << blk.m_height << blk.m_transactions;
21 return packet >> blk.m_height >> blk.m_transactions;
27 auto atomizer_buf = snp.m_atomizer->serialize();
28 auto snp_buf = snp.m_snp->serialize();
29 ser << static_cast<uint64_t>(snp_buf->size());
30 ser.write(snp_buf->data_begin(), snp_buf->size());
31 ser.write(atomizer_buf.data(), atomizer_buf.size());
40 auto snp_buf = nuraft::buffer::alloc(snp_sz);
41 deser.read(snp_buf->data_begin(), snp_buf->size());
42 auto nuraft_snp = nuraft::snapshot::deserialize(*snp_buf);
43 snp.m_snp = std::move(nuraft_snp);
44 snp.m_atomizer->deserialize(deser);
45 snp.m_blocks->clear();
46 deser >> *snp.m_blocks;
53 packet << msg.m_block_height << msg.m_tx << msg.m_attestations;
59 packet >> msg.m_block_height >> msg.m_tx >> msg.m_attestations;
66 packet << msg.m_oldest_attestation << msg.m_tx;
73 packet >> msg.m_oldest_attestation >> msg.m_tx;
80 return packet << msg.m_agg_txs;
86 return packet >> msg.m_agg_txs;
91 return ser << r.m_block_height;
95 return deser >> r.m_block_height;
110 return ser << r.m_block_height;
114 return deser >> r.m_block_height;
119 return ser << r.m_blk << r.m_errs;
123 return deser >> r.m_blk >> r.m_errs;
128 return ser << r.m_blk;
132 return deser >> r.m_blk;
Interface for serializing objects into and out of raw bytes representations.
auto operator>>(serializer &deser, parsec::agent::rpc::request &req) -> serializer &
auto operator<<(serializer &ser, const parsec::agent::rpc::request &req) -> serializer &
Transaction notification message with a full set of input attestations.
Batch of aggregate transaction notifications.
Batch of compact transactions settled by the atomizer.
Retrieve cached block request.
Atomizer state machine response from get block request.
Placeholder struct for a make block state machine request.
Response from atomizer state machine to a make block request.
Prune blocks request for RPC and state machine.
Represents a snapshot of the state machine with associated metadata.
Transaction notification message.