Skip to content

Commit a93c171

Browse files
committed
Drop unneeded nullptr check from CreateNewBlock()
1 parent dd87b6d commit a93c171

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/node/miner.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
113113
resetBlock();
114114

115115
pblocktemplate.reset(new CBlockTemplate());
116-
117-
if (!pblocktemplate.get()) {
118-
return nullptr;
119-
}
120116
CBlock* const pblock = &pblocktemplate->block; // pointer for convenience
121117

122118
// Add dummy coinbase tx as first transaction

0 commit comments

Comments
 (0)