WIP: fixing the tests by waiting for chain activity

This commit is contained in:
whyrusleeping
2019-11-06 23:57:10 -08:00
parent 90faa63f17
commit 54722a0d38
8 changed files with 85 additions and 1 deletions
+6 -1
View File
@@ -3,9 +3,10 @@ package full
import (
"bytes"
"context"
"github.com/filecoin-project/go-amt-ipld"
"strconv"
"github.com/filecoin-project/go-amt-ipld"
cid "github.com/ipfs/go-cid"
"github.com/ipfs/go-hamt-ipld"
"github.com/libp2p/go-libp2p-core/peer"
@@ -279,3 +280,7 @@ func (a *StateAPI) StateMarketDeals(ctx context.Context, ts *types.TipSet) (map[
}
return out, nil
}
func (a *StateAPI) StateMarketStorageDeal(ctx context.Context, dealId uint64, ts *types.TipSet) (*actors.OnChainDeal, error) {
return stmgr.GetStorageDeal(ctx, s.StateManager, dealId, ts)
}