We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The TipIndex methods should be accessible via a ChainReader trait. Below demonstrates what that might look like.
TipIndex
ChainReader
// ChainReader reads the chain store. trait ChainReader { GetHead() -> TipSetKey GetTipSet(tsKey TipSetKey) -> TipSet GetTipSetStateRoot(tsKey TipSetKey) -> cid.Cid GetTipSetReceiptsRoot(tsKey TipSetKey) -> cid.Cid HasTipSetAndState(tsKey TipSetKey) -> bool HasTipSetAndStatesWithParentsAndEpoch(pTsKey TipSetKey, epoch ChainEpoch) -> bool GetTipSetAndStatesByParentsAndEpoch(pTsKey TipSetKey, epoch ChainEpoch) -> []TipSetMetadata PutTipSetMetadata(tsas TipSetMetadata) }
The above methods exist in tip_index.go.
tip_index.go
The text was updated successfully, but these errors were encountered:
dutterbutter
Successfully merging a pull request may close this issue.
The
TipIndex
methods should be accessible via aChainReader
trait. Below demonstrates what that might look like.ChainReader
traitThe above methods exist in
tip_index.go
.The text was updated successfully, but these errors were encountered: