Fix generate bitcoin rpc (#164)

This commit is contained in:
Andrei
2022-10-07 14:21:26 +01:00
committed by GitHub
parent f63a114ce2
commit 472482964e

View File

@@ -49,7 +49,7 @@ func rpcAction(ctx *cli.Context) error {
rpcArgs = []string{"exec", "liquid", "elements-cli", "-datadir=config", "-rpcwallet=" + rpcWallet}
}
if generate > 0 {
rpcArgs = append(rpcArgs, "-generate="+fmt.Sprint(generate))
rpcArgs = append(rpcArgs, "-generate", fmt.Sprint(generate))
}
if named {
rpcArgs = append(rpcArgs, "-named")