mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
feat: Hook up parent_ldgr_time host function
This commit is contained in:
@@ -71,6 +71,18 @@ HostContext::getLedgerSqn(rust::Slice<std::uint8_t> out) const noexcept
|
||||
});
|
||||
}
|
||||
|
||||
std::int32_t
|
||||
HostContext::getParentLedgerTime(rust::Slice<std::uint8_t> out) const noexcept
|
||||
{
|
||||
return guarded(hostFunctions_.getJournal(), kHostInternal, [&] {
|
||||
auto const time = hostFunctions_.getParentLedgerTime();
|
||||
if (!time)
|
||||
return hfErrorToInt(time.error());
|
||||
|
||||
return answerScalar(out, *time);
|
||||
});
|
||||
}
|
||||
|
||||
std::int32_t
|
||||
HostContext::getCurrentLedgerObjField(std::int32_t field, rust::Slice<std::uint8_t> out)
|
||||
const noexcept
|
||||
|
||||
Reference in New Issue
Block a user