Skip to content

Commit

Permalink
blockchain: Remove unused min memory nodes field.
Browse files Browse the repository at this point in the history
This removes the minMemoryNodes field from the BlockChain struct since
it is no longer used anywhere.
  • Loading branch information
davecgh committed Aug 30, 2017
1 parent 02a06a2 commit 42b969a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions blockchain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,9 @@ type BlockChain struct {
// parameters. They are also set when the instance is created and
// can't be changed afterwards, so there is no need to protect them with
// a separate mutex.
//
// minMemoryNodes is the minimum number of consecutive nodes needed
// in memory in order to perform all necessary validation. It is used
// to determine when it's safe to prune nodes from memory without
// causing constant dynamic reloading. This is typically the same value
// as blocksPerRetarget, but it is separated here for tweakability and
// testability.
minRetargetTimespan int64 // target timespan / adjustment factor
maxRetargetTimespan int64 // target timespan * adjustment factor
blocksPerRetarget int32 // target timespan / target time per block
minMemoryNodes int32

// chainLock protects concurrent access to the vast majority of the
// fields in this struct below this point.
Expand Down

0 comments on commit 42b969a

Please sign in to comment.