0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

Drop unneeded nullptr check from CreateNewBlock()

This commit is contained in:
Sjors Provoost 2024-07-22 11:50:50 +02:00
parent dd87b6dff3
commit a93c171faa
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009

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