pass a ticket quality to mpool.SelectMessages -- temporary

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
vyzo 2020-08-11 12:35:14 +03:00 committed by Jakub Sztandera
parent ca803d99fe
commit 28fe602a9b
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -46,7 +46,8 @@ func (a *MpoolAPI) MpoolSelect(ctx context.Context, tsk types.TipSetKey) ([]*typ
return nil, xerrors.Errorf("loading tipset %s: %w", tsk, err)
}
return a.Mpool.SelectMessages(ts)
// TODO FIXME compute (or pass in) the actual ticket quality!
return a.Mpool.SelectMessages(ts, 1.0)
}
func (a *MpoolAPI) MpoolPending(ctx context.Context, tsk types.TipSetKey) ([]*types.SignedMessage, error) {