Skip to content

nCurrentHeight in ClaimTrie and ClaimTrieCache needs to be renamed #138

@kaykurokawa

Description

@kaykurokawa

nCurrentHeight, a member variable in ClaimTrie and ClaimTrieCache, is not the actual current height.
It is the current height + 1 (i.e, if there is a total of two blocks including the genesis, nCurrentHeight is 2 where as the standard definition of current height would be 1) , or perhaps it can be called as the current height "to be worked on".

nNextHeight might be a better name.

Metadata

Metadata

Assignees

Labels

type: refactorMinimal user-visible changes, but significant internal work

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions