Drop unneeded nullptr check from CreateNewBlock()
This commit is contained in:
1 file changed
-4
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user