Restore block rewards with zero premine
Some checks failed
ci/gh-actions/depends / Cross-Mac aarch64 (push) Failing after 8m37s
ci/gh-actions/depends / ARM v7 (push) Has been cancelled
ci/gh-actions/depends / i686 Linux (push) Has been cancelled
ci/gh-actions/depends / i686 Win (push) Has been cancelled
ci/gh-actions/depends / RISCV 64bit (push) Has been cancelled
ci/gh-actions/depends / Cross-Mac x86_64 (push) Has been cancelled
ci/gh-actions/depends / x86_64 Freebsd (push) Has been cancelled
ci/gh-actions/depends / x86_64 Linux (push) Has been cancelled
ci/gh-actions/depends / Win64 (push) Has been cancelled
ci/gh-actions/depends / ARM v8 (push) Has been cancelled
Some checks failed
ci/gh-actions/depends / Cross-Mac aarch64 (push) Failing after 8m37s
ci/gh-actions/depends / ARM v7 (push) Has been cancelled
ci/gh-actions/depends / i686 Linux (push) Has been cancelled
ci/gh-actions/depends / i686 Win (push) Has been cancelled
ci/gh-actions/depends / RISCV 64bit (push) Has been cancelled
ci/gh-actions/depends / Cross-Mac x86_64 (push) Has been cancelled
ci/gh-actions/depends / x86_64 Freebsd (push) Has been cancelled
ci/gh-actions/depends / x86_64 Linux (push) Has been cancelled
ci/gh-actions/depends / Win64 (push) Has been cancelled
ci/gh-actions/depends / ARM v8 (push) Has been cancelled
This commit is contained in:
@@ -92,8 +92,10 @@ namespace cryptonote {
|
||||
|
||||
uint64_t full_reward_zone = get_min_block_weight(version);
|
||||
|
||||
// Check for height == 0
|
||||
if (already_generated_coins == 0) {
|
||||
// Legacy code used zero generated coins as a proxy for the genesis premine.
|
||||
// For a fresh chain with no premine, block 1 also starts from zero generated
|
||||
// coins and must receive the normal emission reward.
|
||||
if (already_generated_coins == 0 && PREMINE_AMOUNT > 0) {
|
||||
reward = PREMINE_AMOUNT;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user