mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
lint: fix lint issues
This commit is contained in:
parent
b4b6a0705e
commit
8499b13762
131 changed files with 83 additions and 64 deletions
2
src/rpc/mining.cpp
Executable file → Normal file
2
src/rpc/mining.cpp
Executable file → Normal file
|
|
@ -1175,7 +1175,7 @@ static RPCHelpMan getnewblockhex()
|
|||
unsigned int nHeight = chainman.ActiveChain().Tip()->nHeight + 1; // Height first in coinbase required for block.version=2
|
||||
CMutableTransaction txCoinbase(*pblocktemplate->block.vtx[0]);
|
||||
txCoinbase.vin[0].scriptSig = (CScript() << nHeight << CScriptNum(nExtraNonce));
|
||||
assert(txCoinbase.vin[0].scriptSig.size() <= 100);
|
||||
CHECK_NONFATAL(txCoinbase.vin[0].scriptSig.size() <= 100);
|
||||
|
||||
pblocktemplate->block.vtx[0] = MakeTransactionRef(std::move(txCoinbase));
|
||||
pblocktemplate->block.hashMerkleRoot = BlockMerkleRoot(pblocktemplate->block);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue