Translations:Forging Algorithm/14/en

From ArdorDocs
Revision as of 15:58, 31 March 2020 by FuzzyBot (talk | contribs) (FuzzyBot moved page Translations:Forging (f)/14/en to Translations:Forging Algorithm/14/en without leaving a redirect: Part of translatable page "Forging (f)")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The block forger

The way who gets to generate the next block is chosen, is done by using the condition:

if (hits.get(accountId).compareTo(target) < 0){
   BlockchainProcessorImpl.getInstance().generateBlock(secretPhrase);
}

Taken from ardor / src / java / nxt / Generator.java