Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show First 20 Lines • Show All 2,134 Lines • ▼ Show 20 Lines | for (const auto &input : psbta.inputs) { | ||||
if (!missing.getKeys().empty()) { | if (!missing.getKeys().empty()) { | ||||
input_univ.pushKV("missing", missing); | input_univ.pushKV("missing", missing); | ||||
} | } | ||||
inputs_result.push_back(input_univ); | inputs_result.push_back(input_univ); | ||||
} | } | ||||
if (!inputs_result.empty()) { | if (!inputs_result.empty()) { | ||||
result.pushKV("inputs", inputs_result); | result.pushKV("inputs", inputs_result); | ||||
} | } | ||||
if (psbta.estimated_vsize != nullopt) { | if (psbta.estimated_vsize != std::nullopt) { | ||||
result.pushKV("estimated_vsize", (int)*psbta.estimated_vsize); | result.pushKV("estimated_vsize", (int)*psbta.estimated_vsize); | ||||
} | } | ||||
if (psbta.estimated_feerate != nullopt) { | if (psbta.estimated_feerate != std::nullopt) { | ||||
result.pushKV("estimated_feerate", | result.pushKV("estimated_feerate", | ||||
ValueFromAmount(psbta.estimated_feerate->GetFeePerK())); | ValueFromAmount(psbta.estimated_feerate->GetFeePerK())); | ||||
} | } | ||||
if (psbta.fee != nullopt) { | if (psbta.fee != std::nullopt) { | ||||
result.pushKV("fee", ValueFromAmount(*psbta.fee)); | result.pushKV("fee", ValueFromAmount(*psbta.fee)); | ||||
} | } | ||||
result.pushKV("next", PSBTRoleName(psbta.next)); | result.pushKV("next", PSBTRoleName(psbta.next)); | ||||
if (!psbta.error.empty()) { | if (!psbta.error.empty()) { | ||||
result.pushKV("error", psbta.error); | result.pushKV("error", psbta.error); | ||||
} | } | ||||
return result; | return result; | ||||
Show All 32 Lines |