ledger_last_time

This commit is contained in:
tequ
2025-09-23 16:17:15 +09:00
parent 3f65b57997
commit 4d33603f39

View File

@@ -585,6 +585,15 @@ HookAPI::ledger_last_hash() const
return hookCtx.applyCtx.view().info().parentHash;
}
uint64_t
HookAPI::ledger_last_time() const
{
return hookCtx.applyCtx.view()
.info()
.parentCloseTime.time_since_epoch()
.count();
}
Expected<uint256, HookReturnCode>
HookAPI::ledger_nonce() const
{