From 28fe602a9b8e0abb9f8e071c871652a59861408f Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 11 Aug 2020 12:35:14 +0300 Subject: [PATCH] pass a ticket quality to mpool.SelectMessages -- temporary Signed-off-by: Jakub Sztandera --- node/impl/full/mpool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/impl/full/mpool.go b/node/impl/full/mpool.go index caf4255f3..346f3e2c6 100644 --- a/node/impl/full/mpool.go +++ b/node/impl/full/mpool.go @@ -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) {