Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consensus: enable COINBASE_FLAGS on PoS #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/miner.cpp
Expand Up @@ -338,7 +338,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
coinbaseTx.vout[0].nValue = nBlockReward;
}
}
coinbaseTx.vin[0].scriptSig = CScript() << nHeight;
coinbaseTx.vin[0].scriptSig = (CScript() << nHeight) + COINBASE_FLAGS;
if (!fPoSHeight) {
coinbaseTx.vin[0].scriptSig = coinbaseTx.vin[0].scriptSig << OP_0;
}
Expand Down Expand Up @@ -851,4 +851,4 @@ bool CreateTxSig(const CWallet& wallet, uint32_t nTime, CTransactionRef txCoinSt
}
return result;
}
#endif
#endif