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