diff --git a/pkg/core/fee/calculate.go b/pkg/core/fee/calculate.go index 7a64caa2a..c15874932 100644 --- a/pkg/core/fee/calculate.go +++ b/pkg/core/fee/calculate.go @@ -25,9 +25,9 @@ func Calculate(base int64, script []byte) (int64, int) { size += io.GetVarSize(sizeInv) + sizeInv + io.GetVarSize(script) netFee += calculateMultisig(base, m) + calculateMultisig(base, n) netFee += base * ECDSAVerifyPrice * int64(n) - } else { + } /*else { // We can support more contract types in the future. - } + }*/ return netFee, size } diff --git a/pkg/rpc/client/client.go b/pkg/rpc/client/client.go index d112ef33c..4623a9070 100644 --- a/pkg/rpc/client/client.go +++ b/pkg/rpc/client/client.go @@ -91,8 +91,8 @@ func New(ctx context.Context, endpoint string, opts Options) (*Client, error) { } // TODO(@antdm): Enable SSL. - if opts.Cert != "" && opts.Key != "" { - } + // if opts.Cert != "" && opts.Key != "" { + // } cl := &Client{ ctx: ctx,