@@ -34,7 +34,7 @@ TEST_F(TwoPhaseTest, test_one_shard) {
34
34
auto tx = cbdc::locking_shard::tx ();
35
35
auto uhs_id = cbdc::hash_t ();
36
36
std::memcpy (uhs_id.data (), &i, sizeof (i));
37
- tx.m_creating .push_back ({uhs_id, {}, {}, {}});
37
+ tx.m_tx . m_outputs .push_back ({uhs_id, {}, {}, {}});
38
38
txs.push_back (tx);
39
39
}
40
40
@@ -115,8 +115,8 @@ TEST_F(TwoPhaseTest, test_one_shard_random) {
115
115
const auto val = rnd (e);
116
116
std::memcpy (&output1[j * 8 ], &val, sizeof (val));
117
117
}
118
- tx.m_creating .push_back ({output0, {}, {}, {}});
119
- tx.m_creating .push_back ({output1, {}, {}, {}});
118
+ tx.m_tx . m_outputs .push_back ({output0, {}, {}, {}});
119
+ tx.m_tx . m_outputs .push_back ({output1, {}, {}, {}});
120
120
outputs.push (output0);
121
121
outputs.push (output1);
122
122
txs.push_back (tx);
@@ -144,9 +144,9 @@ TEST_F(TwoPhaseTest, test_one_shard_random) {
144
144
const auto val = rnd (e);
145
145
std::memcpy (&output1[j * 8 ], &val, sizeof (val));
146
146
}
147
- tx.m_creating .push_back ({output0, {}, {}, {}});
148
- tx.m_creating .push_back ({output1, {}, {}, {}});
149
- tx.m_spending .push_back (outputs.front ());
147
+ tx.m_tx . m_outputs .push_back ({output0, {}, {}, {}});
148
+ tx.m_tx . m_outputs .push_back ({output1, {}, {}, {}});
149
+ tx.m_tx . m_inputs .push_back (outputs.front ());
150
150
outputs.pop ();
151
151
tx.m_tx .m_inputs .push_back (outputs.front ());
152
152
outputs.pop ();
0 commit comments