@@ -62,7 +62,7 @@ namespace cbdc {
62
62
std::unique_lock<std::shared_mutex> ul (m_utxos_mut);
63
63
for (size_t i = 0 ; i < ret.m_outputs .size (); ++i) {
64
64
transaction::output put = ret.m_outputs [i];
65
- put.m_range .reset (); // remove range proofs for inputs
65
+ put.m_range .reset (); // remove range proofs for inputs
66
66
transaction::out_point point{id, i};
67
67
transaction::input inp{point,
68
68
put,
@@ -127,9 +127,11 @@ namespace cbdc {
127
127
return ret;
128
128
}
129
129
130
- auto transaction::wallet::create_seeded_transaction (size_t seed_idx,
131
- const commitment_t & comm,
132
- const rangeproof_t <>& range) -> std::optional<transaction::full_tx> {
130
+ auto
131
+ transaction::wallet::create_seeded_transaction (size_t seed_idx,
132
+ const commitment_t & comm,
133
+ const rangeproof_t <>& range)
134
+ -> std::optional<transaction::full_tx> {
133
135
if (m_seed_from == m_seed_to) {
134
136
return std::nullopt;
135
137
}
@@ -147,7 +149,8 @@ namespace cbdc {
147
149
inp.m_prevout_data .m_witness_program_commitment = {0 };
148
150
inp.m_prevout_data .m_auxiliary = comm;
149
151
inp.m_prevout_data .m_range .reset ();
150
- inp.m_prevout_data .m_id = calculate_uhs_id (inp.m_prevout , inp.m_prevout_data , comm);
152
+ inp.m_prevout_data .m_id
153
+ = calculate_uhs_id (inp.m_prevout , inp.m_prevout_data , comm);
151
154
inp.m_spend_data = {spend};
152
155
153
156
tx.m_inputs [0 ] = inp;
@@ -188,7 +191,8 @@ namespace cbdc {
188
191
{},
189
192
in_spend_data);
190
193
191
- inp.m_prevout_data .m_auxiliary = serialize_commitment (m_secp.get (), aux.front ());
194
+ inp.m_prevout_data .m_auxiliary
195
+ = serialize_commitment (m_secp.get (), aux.front ());
192
196
inp.m_prevout_data .m_id
193
197
= transaction::calculate_uhs_id (inp.m_prevout ,
194
198
inp.m_prevout_data ,
0 commit comments