Skip to content

Commit 2c1fb48

Browse files
committed
rpc: Consistently use UniValue.pushKV instead of push_back in consolidateunspent
1 parent e4ba897 commit 2c1fb48

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,19 +1195,19 @@ UniValue consolidatemsunspent(const UniValue& params, bool fHelp)
11951195
sMultisigtype.append("_of_");
11961196
sMultisigtype.append(ToString(vOpCodes[1]));
11971197

1198-
result.push_back(std::make_pair("multi_sig_type", sMultisigtype));
1199-
result.push_back(std::make_pair("block_start", nBlockStart));
1200-
result.push_back(std::make_pair("block_end", nBlockEnd));
1198+
result.pushKV("multi_sig_type", sMultisigtype);
1199+
result.pushKV("block_start", nBlockStart));
1200+
result.pushKV("block_end", nBlockEnd));
12011201
// Let rpc caller know this was the last block we were in especially if the target amount of inputs was met before end block
1202-
result.push_back(std::make_pair("last_block_checked", nBlockCurrent));
1203-
result.push_back(std::make_pair("number_of_inputs", nInputs));
1204-
result.push_back(std::make_pair("maximum_possible_inputs", nMaxInputs));
1205-
result.push_back(std::make_pair("total_grc_in", ValueFromAmount(nTotal)));
1206-
result.push_back(std::make_pair("fee", nTxFee));
1207-
result.push_back(std::make_pair("output_amount", ValueFromAmount(nOutput)));
1208-
result.push_back(std::make_pair("estimated_signed_hex_size", (nBytes * 2)));
1209-
result.push_back(std::make_pair("estimated_signed_binary_size", nBytes));
1210-
result.push_back(std::make_pair("rawtx", sHash));
1202+
result.pushKV("last_block_checked", nBlockCurrent));
1203+
result.pushKV("number_of_inputs", nInputs));
1204+
result.pushKV("maximum_possible_inputs", nMaxInputs));
1205+
result.pushKV("total_grc_in", ValueFromAmount(nTotal)));
1206+
result.pushKV("fee", nTxFee));
1207+
result.pushKV("output_amount", ValueFromAmount(nOutput)));
1208+
result.pushKV("estimated_signed_hex_size", (nBytes * 2)));
1209+
result.pushKV("estimated_signed_binary_size", nBytes));
1210+
result.pushKV("rawtx", sHash));
12111211

12121212
return result;
12131213
}

0 commit comments

Comments
 (0)