Get the ID of the previous ledger/last closed ledger(LCL) on the network.
uint256 getPrevLedger( uint256 ledgerID, RCLCxLedger const& ledger, ConsensusMode mode);
Name |
Description |
---|---|
|
ID of previous ledger used by consensus |
|
Previous ledger consensus has available |
|
Current consensus mode |
The id of the last closed network
ledgerID may not match ledger.id() if we haven't acquired the ledger matching ledgerID from the network