From ef18b8a034339c01c519610303d2c3a1dbc3b615 Mon Sep 17 00:00:00 2001 From: "Naomi Hamada(naomi_mcrn)" Date: Mon, 29 Jul 2019 20:31:19 +0900 Subject: [PATCH] Enable COINBASE_FLAGS on PoS If COINBASE_FLAGS is not empty, add it to coinbase to identify minter. --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 0b7752ae742e..2249a41df402 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -338,7 +338,7 @@ std::unique_ptr 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; } @@ -851,4 +851,4 @@ bool CreateTxSig(const CWallet& wallet, uint32_t nTime, CTransactionRef txCoinSt } return result; } -#endif \ No newline at end of file +#endif