mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
ledger_last_time
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user