mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Drop unneeded nullptr check from CreateNewBlock()
This commit is contained in:
parent
dd87b6dff3
commit
a93c171faa
1 changed files with 0 additions and 4 deletions
|
@ -113,10 +113,6 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
|
||||||
resetBlock();
|
resetBlock();
|
||||||
|
|
||||||
pblocktemplate.reset(new CBlockTemplate());
|
pblocktemplate.reset(new CBlockTemplate());
|
||||||
|
|
||||||
if (!pblocktemplate.get()) {
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
CBlock* const pblock = &pblocktemplate->block; // pointer for convenience
|
CBlock* const pblock = &pblocktemplate->block; // pointer for convenience
|
||||||
|
|
||||||
// Add dummy coinbase tx as first transaction
|
// Add dummy coinbase tx as first transaction
|
||||||
|
|
Loading…
Add table
Reference in a new issue