Merge pull request #5059 from filecoin-project/feat/mpool-replace-opt-limit

Make --gas-limit optional in mpool replace cli
This commit is contained in:
Łukasz Magiera 2020-11-30 20:07:09 +01:00 committed by GitHub
commit 0386cc5d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,7 +448,9 @@ var mpoolReplaceCmd = &cli.Command{
messagepool.CapGasFee(mff, &msg, mss.Get().MaxFee)
} else {
if cctx.IsSet("gas-limit") {
msg.GasLimit = cctx.Int64("gas-limit")
}
msg.GasPremium, err = types.BigFromString(cctx.String("gas-premium"))
if err != nil {
return fmt.Errorf("parsing gas-premium: %w", err)