From 254b166574787f2146ef766b495df6e41779c458 Mon Sep 17 00:00:00 2001 From: Akio Nakamura Date: Fri, 5 Jul 2019 19:07:26 +0900 Subject: [PATCH] [rpc]blindrawtransaction accepts more commitments --- src/wallet/rpcwallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 2f665bd286..6f9f554a1a 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5759,8 +5759,8 @@ UniValue blindrawtransaction(const JSONRPCRequest& request) std::vector > auxiliary_generators; if (request.params.size() > 2) { UniValue assetCommitments = request.params[2].get_array(); - if (assetCommitments.size() != 0 && assetCommitments.size() != tx.vin.size()) { - throw JSONRPCError(RPC_INVALID_PARAMETER, "Asset commitment array must have exactly as many entries as transaction inputs."); + if (assetCommitments.size() != 0 && assetCommitments.size() < tx.vin.size()) { + throw JSONRPCError(RPC_INVALID_PARAMETER, "Asset commitment array must have at least as many entries as transaction inputs."); } for (size_t nIn = 0; nIn < assetCommitments.size(); nIn++) { if (assetCommitments[nIn].isStr()) {