Skip to content

Commit

Permalink
add comment about why 'optimization' actually doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina committed Dec 23, 2024
1 parent f6d8c1c commit 55cc676
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pos_blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,9 @@ func (bc *Blockchain) GetUtxoViewAndUtxoOpsAtBlockHash(blockHash BlockHash, bloc
var utxoOps [][]*UtxoOperation
var fullBlock *MsgDeSoBlock
for ii := len(uncommittedAncestors) - 1; ii >= 0; ii-- {
// TODO: this optimization is disabled for now. Although this speeds up the fetching of
// a utxo view for a given block hash, it actually ends up building up a lot of data in the
// view of already committed data.
// Check the cache to see if we already have a view for this block.
//cachedView, cachedAncestorExists := bc.getCachedBlockViewAndUtxoOps(*uncommittedAncestors[ii].Hash)
//if cachedAncestorExists {
Expand Down

0 comments on commit 55cc676

Please sign in to comment.