Ledger.lastBlock/last_block - multiple declarations

Variable Ledger.last_block

The last block in the ledger

class Ledger
{
  // ...
  Block last_block ;
  // ...
}

Function Ledger.lastBlock

Returns a reference to the last block in the Ledger

ref const(Block) lastBlock() pure nothrow @nogc scope @safe const;

The last block is made available mostly for convenience. In general, users should rely on the various other functions which provide a view of the UTXO set and the validator sets, the two main output of the consensus process.

Returns

last block in the Ledger