Skip to content

Commit b533068

Browse files
AlexRamRamHalosGhost
authored andcommitted
Invoke transaction::calculate_uhs_id() without creating compact_output
Signed-off-by: Alexander Jung <[email protected]>
1 parent 06fd322 commit b533068

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/uhs/transaction/wallet.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ namespace cbdc {
189189
in_spend_data);
190190

191191
inp.m_prevout_data.m_auxiliary = serialize_commitment(m_secp.get(), aux.front());
192-
inp.m_prevout_data.m_id = transaction::calculate_uhs_id(
193-
transaction::compact_output(inp.m_prevout_data, inp.m_prevout));
192+
inp.m_prevout_data.m_id
193+
= transaction::calculate_uhs_id(inp.m_prevout,
194+
inp.m_prevout_data,
195+
inp.m_prevout_data.m_auxiliary);
194196

195197
inp.m_spend_data = in_spend_data.front();
196198
tx.m_inputs[0] = inp;

0 commit comments

Comments
 (0)