blockchain: Remove unused min memory nodes field.

This removes the minMemoryNodes field from the BlockChain struct since
it is no longer used anywhere.
This commit is contained in:
Dave Collins 2017-08-30 14:36:56 -05:00
parent 02a06a2cd8
commit 42b969a827
No known key found for this signature in database
GPG key ID: B8904D9D9C93D1F2

View file

@ -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.