From 5920537bc54e9f49156b688f79b1357986dd90c1 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Mon, 19 Aug 2019 11:06:39 -0700 Subject: [PATCH] fix gas limit in create storage miner call --- cmd/lotus-storage-miner/init.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/lotus-storage-miner/init.go b/cmd/lotus-storage-miner/init.go index 736abb3e0..1f2235cbf 100644 --- a/cmd/lotus-storage-miner/init.go +++ b/cmd/lotus-storage-miner/init.go @@ -216,15 +216,16 @@ func createStorageMiner(ctx context.Context, api api.FullNode, peerid peer.ID) ( } createStorageMinerMsg := types.Message{ - To: actors.StorageMarketAddress, - From: defOwner, - + To: actors.StorageMarketAddress, + From: defOwner, Nonce: nonce, - Value: collateral, Method: actors.SMAMethods.CreateStorageMiner, Params: params, + + GasLimit: types.NewInt(10000), + GasPrice: types.NewInt(0), } unsigned, err := createStorageMinerMsg.Serialize()