mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 14:50:54 +00:00
32 lines
675 B
C++
32 lines
675 B
C++
#include <xrpld/app/ledger/AccountStateSF.h>
|
|
|
|
#include <xrpl/basics/Blob.h>
|
|
#include <xrpl/basics/SHAMapHash.h>
|
|
#include <xrpl/nodestore/NodeObject.h>
|
|
#include <xrpl/shamap/SHAMapTreeNode.h>
|
|
|
|
#include <cstdint>
|
|
#include <optional>
|
|
#include <utility>
|
|
|
|
namespace xrpl {
|
|
|
|
void
|
|
AccountStateSF::gotNode(
|
|
bool,
|
|
SHAMapHash const& nodeHash,
|
|
std::uint32_t ledgerSeq,
|
|
Blob&& nodeData,
|
|
SHAMapNodeType) const
|
|
{
|
|
db_.store(NodeObjectType::AccountNode, std::move(nodeData), nodeHash.asUInt256(), ledgerSeq);
|
|
}
|
|
|
|
std::optional<Blob>
|
|
AccountStateSF::getNode(SHAMapHash const& nodeHash) const
|
|
{
|
|
return fp_.getFetchPack(nodeHash.asUInt256());
|
|
}
|
|
|
|
} // namespace xrpl
|