nCurrentHeight in ClaimTrie and ClaimTrieCache needs to be renamed #138

Closed
opened 2018-05-14 19:08:46 +02:00 by kaykurokawa · 5 comments
kaykurokawa commented 2018-05-14 19:08:46 +02:00 (Migrated from github.com)

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.

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.
kauffj commented 2018-05-16 01:36:20 +02:00 (Migrated from github.com)

@kaykurokawa add comment until refactor happens?

@kaykurokawa add comment until refactor happens?
bvbfan commented 2018-06-06 19:14:11 +02:00 (Migrated from github.com)

I can take it on my refactor branch, it's sound good?

I can take it on my refactor branch, it's sound good?
bvbfan commented 2018-06-15 10:46:38 +02:00 (Migrated from github.com)

It is nNextHeight in my local branch i'll made pull request.

It is nNextHeight in my local branch i'll made pull request.
alyssaoc commented 2018-10-04 19:58:25 +02:00 (Migrated from github.com)

@bvbfan Can this issue be closed?

@bvbfan Can this issue be closed?
bvbfan commented 2018-10-04 21:33:14 +02:00 (Migrated from github.com)

Still not, i've plan to do RR, but i don't want to bother normalization work.

Still not, i've plan to do RR, but i don't want to bother normalization work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#138
No description provided.