add fullnodeApi to StorageProvider

This commit is contained in:
Anton Evangelatov 2022-02-02 10:51:53 +01:00
parent ad348c8e2f
commit db5e4da268

View File

@ -590,6 +590,7 @@ func StorageProvider(minerAddress dtypes.MinerAddress,
spn storagemarket.StorageProviderNode, spn storagemarket.StorageProviderNode,
df dtypes.StorageDealFilter, df dtypes.StorageDealFilter,
dsw *dagstore.Wrapper, dsw *dagstore.Wrapper,
fullnodeApi v1api.FullNode,
) (storagemarket.StorageProvider, error) { ) (storagemarket.StorageProvider, error) {
net := smnet.NewFromLibp2pHost(h) net := smnet.NewFromLibp2pHost(h)
@ -620,6 +621,7 @@ func StorageProvider(minerAddress dtypes.MinerAddress,
spn, spn,
address.Address(minerAddress), address.Address(minerAddress),
storedAsk, storedAsk,
fullnodeApi,
opt, opt,
) )
} }