Handle zero-premine genesis separately from emission
Some checks failed
ci/gh-actions/depends / ARM v8 (push) Has been cancelled
ci/gh-actions/depends / Cross-Mac aarch64 (push) Has been cancelled
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
Some checks failed
ci/gh-actions/depends / ARM v8 (push) Has been cancelled
ci/gh-actions/depends / Cross-Mac aarch64 (push) Has been cancelled
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
This commit is contained in:
@@ -1532,6 +1532,14 @@ bool Blockchain::validate_miner_transaction(const block& b, size_t cumulative_bl
|
||||
}
|
||||
partial_block_reward = false;
|
||||
|
||||
if (height == 0)
|
||||
{
|
||||
base_reward = PREMINE_AMOUNT;
|
||||
CHECK_AND_ASSERT_MES(b.miner_tx.amount_burnt == 0, false, "genesis miner transaction must not burn funds");
|
||||
CHECK_AND_ASSERT_MES(money_in_use == PREMINE_AMOUNT, false, "genesis miner transaction has incorrect amount");
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (version) {
|
||||
case HF_VERSION_BULLETPROOF_PLUS:
|
||||
case HF_VERSION_ENABLE_N_OUTS:
|
||||
|
||||
Reference in New Issue
Block a user