Drop unneeded nullptr check from CreateNewBlock()

This commit is contained in:
Sjors Provoost committed 2024-09-13 10:14:53 +02:00
1 parent dd87b6dff3
commit a93c171faa
1 file changed
-4
-4
View File
@@ -113,10 +113,6 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
resetBlock();
pblocktemplate.reset(new CBlockTemplate());
if (!pblocktemplate.get()) {
return nullptr;
}
CBlock* const pblock = &pblocktemplate->block; // pointer for convenience
// Add dummy coinbase tx as first transaction