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:
parent
02a06a2cd8
commit
42b969a827
1 changed files with 0 additions and 8 deletions
|
@ -105,17 +105,9 @@ type BlockChain struct {
|
||||||
// parameters. They are also set when the instance is created and
|
// 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
|
// can't be changed afterwards, so there is no need to protect them with
|
||||||
// a separate mutex.
|
// 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
|
minRetargetTimespan int64 // target timespan / adjustment factor
|
||||||
maxRetargetTimespan int64 // target timespan * adjustment factor
|
maxRetargetTimespan int64 // target timespan * adjustment factor
|
||||||
blocksPerRetarget int32 // target timespan / target time per block
|
blocksPerRetarget int32 // target timespan / target time per block
|
||||||
minMemoryNodes int32
|
|
||||||
|
|
||||||
// chainLock protects concurrent access to the vast majority of the
|
// chainLock protects concurrent access to the vast majority of the
|
||||||
// fields in this struct below this point.
|
// fields in this struct below this point.
|
||||||
|
|
Loading…
Add table
Reference in a new issue