Skip to content

Commit

Permalink
Merge pull request #2089 from kcalvinalvin/2024-01-03-add-last-flush-…
Browse files Browse the repository at this point in the history
…time-on-initconsistentstate

blockchain: set the lastflushtime when setting the lastflushhash
  • Loading branch information
Roasbeef authored Jan 24, 2024
2 parents 8e53942 + e307ad1 commit 13152b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blockchain/utxocache.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,10 @@ func (b *BlockChain) InitConsistentState(tip *blockNode, interrupt <-chan struct
// it to the tip since we checked it's consistent.
s.lastFlushHash = tip.hash

// Set the last flush time as now since we know the state is consistent
// at this time.
s.lastFlushTime = time.Now()

return nil
}

Expand Down

0 comments on commit 13152b3

Please sign in to comment.