Fixes #2519. When sending from a zaddr, minconf cannot be zero.

This commit is contained in:
Simon
2017-07-11 11:29:43 -07:00
parent 5df11e9d8e
commit b639bb1eef
3 changed files with 18 additions and 1 deletions

View File

@@ -93,6 +93,10 @@ AsyncRPCOperation_sendmany::AsyncRPCOperation_sendmany(
}
}
if (isfromzaddr_ && minDepth==0) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Minconf cannot be zero when sending from zaddr");
}
// Log the context info i.e. the call parameters to z_sendmany
if (LogAcceptCategory("zrpcunsafe")) {
LogPrint("zrpcunsafe", "%s: z_sendmany initialized (params=%s)\n", getId(), contextInfo.write());