add MpoolClear api

This commit is contained in:
vyzo
2020-08-21 23:32:41 +03:00
parent 161cb32078
commit 3027283756
4 changed files with 23 additions and 1 deletions
+5
View File
@@ -105,6 +105,11 @@ func (a *MpoolAPI) MpoolPending(ctx context.Context, tsk types.TipSetKey) ([]*ty
}
}
func (a *MpoolAPI) MpoolClear(ctx context.Context) error {
a.Mpool.Clear()
return nil
}
func (a *MpoolAPI) MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error) {
return a.Mpool.Push(smsg)
}