refactor to use 'randomness' as input to new vm creation

This commit is contained in:
whyrusleeping
2019-09-19 20:08:44 -07:00
parent 5fd98b7d27
commit 394edc6317
13 changed files with 62 additions and 32 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (a *ChainAPI) ChainHead(context.Context) (*types.TipSet, error) {
}
func (a *ChainAPI) ChainGetRandomness(ctx context.Context, pts *types.TipSet, tickets []*types.Ticket, lb int) ([]byte, error) {
return a.Chain.GetRandomness(ctx, pts, tickets, lb)
return a.Chain.GetRandomness(ctx, pts, tickets, int64(lb))
}
func (a *ChainAPI) ChainWaitMsg(ctx context.Context, msg cid.Cid) (*api.MsgWait, error) {