20 #ifndef RIPPLE_PROTOCOL_LEDGERHEADER_H_INCLUDED
21 #define RIPPLE_PROTOCOL_LEDGERHEADER_H_INCLUDED
23 #include <ripple/basics/Slice.h>
24 #include <ripple/basics/XRPAmount.h>
25 #include <ripple/basics/base_uint.h>
26 #include <ripple/basics/chrono.h>
27 #include <ripple/protocol/Protocol.h>
28 #include <ripple/protocol/Serializer.h>
91 addRaw(LedgerHeader
const&, Serializer&,
bool includeHash =
false);
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void addRaw(LedgerHeader const &info, Serializer &s, bool includeHash)
LedgerHeader deserializePrefixedHeader(Slice data, bool hasHash)
Deserialize a ledger header (prefixed with 4 bytes) from a byte array.
LedgerHeader deserializeHeader(Slice data, bool hasHash)
Deserialize a ledger header from a byte array.
bool getCloseAgree(LedgerHeader const &info)
static const std::uint32_t sLCF_NoConsensusTime