Skip to content

Commit 8161038

Browse files
committed
Merge #707: [0.18 backport] sendtomainchain_pak: Fix minimum send amount message
9add5a8 Fix feature_pak.py in light of #706 (Gregory Sanders) 817ebcd sendtomainchain_pak: Fix minimum send amount message (Gregory Sanders) Pull request description: backport of #706 Tree-SHA512: a1f16636210eb28c221a442c113a609da906079b3688dc1dc53e33d0409096638a48036032ba7349257a4d599342272df40dd9335bbc9ac1008c439602a94f8a
2 parents eed409a + 9add5a8 commit 8161038

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wallet/rpcwallet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5207,7 +5207,7 @@ UniValue sendtomainchain_pak(const JSONRPCRequest& request)
52075207
//amount
52085208
CAmount nAmount = AmountFromValue(request.params[1]);
52095209
if (nAmount < 100000)
5210-
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid amount for send, must send more than 0.0001 BTC");
5210+
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid amount for send, must send more than 0.00100000 BTC");
52115211

52125212
bool subtract_fee = false;
52135213
if (request.params.size() > 2) {

test/functional/feature_pak.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def run_test(self):
145145
self.log.info("Test various RPC arguments")
146146

147147
# Fail to peg-out too-small value
148-
assert_raises_rpc_error(-8, "Invalid amount for send, must send more than 0.0001 BTC", self.nodes[1].sendtomainchain, "", Decimal('0.0009'))
148+
assert_raises_rpc_error(-8, "Invalid amount for send, must send more than 0.00100000 BTC", self.nodes[1].sendtomainchain, "", Decimal('0.0009'))
149149

150150
# Use wrong network's extended pubkey
151151
mainnetxpub = "xpub6AATBi58516uxLogbuaG3jkom7x1qyDoZzMN2AePBuQnMFKUV9xC2BW9vXsFJ9rELsvbeGQcFWhtbyM4qDeijM22u3AaSiSYEvuMZkJqtLn"

0 commit comments

Comments
 (0)