Skip to content

getclaimsintrie: insufficent info for sorting subclaims #196

@BrannonKing

Description

@BrannonKing

In working on the mass-import-to-regtest (#188), I discovered that nEffectiveAmount is not actually serialized with the claims. The number is set right for/when new claims come into the buffer, but when you start up a fresh launch and load everything off disk, the values are trash. We do return that value in rpc/getclaimsforname, but it is recalculated there before the return. rpc/getclaimsintrie returns all the claims for each claim name, but it lacks the details of the rpc/getclaimsforname method. Without the support info (or at least the effective amount), you can't make any judgment on the ordering of the claims returned from getclaimsintrie aside from "active is first". It's tempting to make getclaimsintrie call getclaimsforname on each name in the system, or make getclaimsforname take a wildcard and ditch the other method.

Metadata

Metadata

Assignees

Labels

needs: explorationSolution unclear, needs researchtype: discussionA conversation. No specific changes requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions