mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
tidy: modernize-use-emplace
This commit is contained in:
@@ -1581,10 +1581,10 @@ static RPCHelpMan createpsbt()
|
||||
PartiallySignedTransaction psbtx;
|
||||
psbtx.tx = rawTx;
|
||||
for (unsigned int i = 0; i < rawTx.vin.size(); ++i) {
|
||||
psbtx.inputs.push_back(PSBTInput());
|
||||
psbtx.inputs.emplace_back();
|
||||
}
|
||||
for (unsigned int i = 0; i < rawTx.vout.size(); ++i) {
|
||||
psbtx.outputs.push_back(PSBTOutput());
|
||||
psbtx.outputs.emplace_back();
|
||||
}
|
||||
|
||||
// Serialize the PSBT
|
||||
@@ -1648,10 +1648,10 @@ static RPCHelpMan converttopsbt()
|
||||
PartiallySignedTransaction psbtx;
|
||||
psbtx.tx = tx;
|
||||
for (unsigned int i = 0; i < tx.vin.size(); ++i) {
|
||||
psbtx.inputs.push_back(PSBTInput());
|
||||
psbtx.inputs.emplace_back();
|
||||
}
|
||||
for (unsigned int i = 0; i < tx.vout.size(); ++i) {
|
||||
psbtx.outputs.push_back(PSBTOutput());
|
||||
psbtx.outputs.emplace_back();
|
||||
}
|
||||
|
||||
// Serialize the PSBT
|
||||
|
||||
Reference in New Issue
Block a user