Add function comment for function nano::upgrade_epoch. (#3772)
This commit is contained in:
parent
672468f4a1
commit
8386478020
1 changed files with 3 additions and 0 deletions
|
|
@ -209,6 +209,9 @@ uint64_t nano::system::work_generate_limited (nano::block_hash const & root_a, u
|
|||
return result;
|
||||
}
|
||||
|
||||
/** Initiate an epoch upgrade. Writes the epoch block into the ledger and leaves it to
|
||||
* node background processes (e.g. frontiers confirmation) to cement the block.
|
||||
*/
|
||||
std::unique_ptr<nano::state_block> nano::upgrade_epoch (nano::work_pool & pool_a, nano::ledger & ledger_a, nano::epoch epoch_a)
|
||||
{
|
||||
auto transaction (ledger_a.store.tx_begin_write ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue