File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -2608,7 +2608,6 @@ static CBlockIndex* AddToBlockIndex(const CBlockHeader& block)
2608
2608
2609
2609
// Construct new block index object
2610
2610
CBlockIndex* pindexNew = new CBlockIndex (block);
2611
- assert (pindexNew);
2612
2611
// We assign the sequence id to blocks only when the full data is available,
2613
2612
// to avoid miners withholding blocks but broadcasting headers, to get a
2614
2613
// competitive advantage.
@@ -3434,8 +3433,6 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
3434
3433
3435
3434
// Create new
3436
3435
CBlockIndex* pindexNew = new CBlockIndex ();
3437
- if (!pindexNew)
3438
- throw std::runtime_error (std::string (__func__) + " : new CBlockIndex failed" );
3439
3436
mi = mapBlockIndex.insert (std::make_pair (hash, pindexNew)).first ;
3440
3437
pindexNew->phashBlock = &((*mi).first );
3441
3438
You can’t perform that action at this time.
0 commit comments