mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
[rpc]blindrawtransaction accepts more commitments
This commit is contained in:
parent
b9727ae60c
commit
254b166574
1 changed files with 2 additions and 2 deletions
|
|
@ -5759,8 +5759,8 @@ UniValue blindrawtransaction(const JSONRPCRequest& request)
|
||||||
std::vector<std::vector<unsigned char> > auxiliary_generators;
|
std::vector<std::vector<unsigned char> > auxiliary_generators;
|
||||||
if (request.params.size() > 2) {
|
if (request.params.size() > 2) {
|
||||||
UniValue assetCommitments = request.params[2].get_array();
|
UniValue assetCommitments = request.params[2].get_array();
|
||||||
if (assetCommitments.size() != 0 && assetCommitments.size() != tx.vin.size()) {
|
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.");
|
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++) {
|
for (size_t nIn = 0; nIn < assetCommitments.size(); nIn++) {
|
||||||
if (assetCommitments[nIn].isStr()) {
|
if (assetCommitments[nIn].isStr()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue