The CClaimTrie class, which implements the Claim Trie, has a tight integration between the trie data structure and the logic involved in claims.
It would be nice if we had a base template trie class which the CClaimTrie class either inherits from, or used as a member variable (CClaimTrie would either way use a trie class where the node are CClaimTrieNodes). This will improve code readability and allow us to write unit tests exclusively for the trie class to verify its correctness instead of relying on integration tests.
Also, it will allow easier implementation of #106, as we should just be able to switch out the trie class while keeping the logic for claims intact.
The CClaimTrie class, which implements the Claim Trie, has a tight integration between the trie data structure and the logic involved in claims.
It would be nice if we had a base template trie class which the CClaimTrie class either inherits from, or used as a member variable (CClaimTrie would either way use a trie class where the node are CClaimTrieNodes). This will improve code readability and allow us to write unit tests exclusively for the trie class to verify its correctness instead of relying on integration tests.
Also, it will allow easier implementation of #106, as we should just be able to switch out the trie class while keeping the logic for claims intact.