expose command to set chainstore head

This commit is contained in:
whyrusleeping
2019-10-10 12:50:50 +09:00
parent 0c6fcde9c4
commit acec79cf3f
5 changed files with 93 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)
}