Merge pull request #321 from filecoin-project/feat/chain-set-head

expose command to set chainstore head
This commit is contained in:
Łukasz Magiera
2019-10-10 06:00:54 +02:00
committed by GitHub
5 changed files with 94 additions and 21 deletions
+4
View File
@@ -157,3 +157,7 @@ func (a *ChainAPI) ChainReadObj(ctx context.Context, obj cid.Cid) ([]byte, error
return blk.RawData(), nil
}
func (a *ChainAPI) ChainSetHead(ctx context.Context, ts *types.TipSet) error {
return a.Chain.SetHead(ts)
}