-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ Removed updated addresses from IRichStore
#3562
♻️ Removed updated addresses from IRichStore
#3562
Conversation
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we use IRichSthore
rn... 🤔 Might we need to re-write Libplanet.Explorer.
UpdatedAddresses
has pretty much lost its meaning, and is no longer used. There really isn't any reason to index this property anymore. 😗Unless there is a plan to use
IRichStore
, we should removeIRichStore
entirely if we get a chance.TxId
toBlockHash
mapping is already being handled byIStore
(although,IStore
's version has its own problems).IStore
directly isAddress
(signer) toTxId
mapping.My personal thought on this matter is that there should be a clear distinction between what should be the "core" functionalities of
IStore
(necessary forBlockChain
's operation) and "auxiliary" functionalities.For instance,
TxId
->BlockHash
indexing,Address
->TxId
indexing, andTxResult
all could be considered non-essential. That is, Libplanet'sBlockChain
would have no problem running without these. 😐If we had a clearly defined separate interface for these functionalities, then we could safely assume that these indexing services are purely auxiliary and may not be complete.