Skip to content

Commit bcdb602

Browse files
committed
Fix table namespace conflicts.
1 parent a7c6ccf commit bcdb602

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

include/bitcoin/database/tables/archives/input.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct input
105105
static constexpr auto sequence_point_size = sizeof(uint32_t) +
106106
chain::point::serialized_size();
107107

108-
const auto& ins = *tx.inputs_ptr();
108+
const auto& ins = *tx_.inputs_ptr();
109109
const auto other = ins.size() * sequence_point_size;
110110
const auto inputs = std::accumulate(ins.begin(), ins.end(), zero,
111111
[](size_t total, const auto& in) NOEXCEPT
@@ -120,7 +120,7 @@ struct input
120120

121121
inline bool to_data(flipper& sink) const NOEXCEPT
122122
{
123-
const auto& ins = *tx.inputs_ptr();
123+
const auto& ins = *tx_.inputs_ptr();
124124
std::for_each(ins.begin(), ins.end(), [&](const auto& in) NOEXCEPT
125125
{
126126
in->script().to_data(sink, true);
@@ -131,7 +131,7 @@ struct input
131131
return sink;
132132
}
133133

134-
const system::chain::transaction& tx{};
134+
const system::chain::transaction& tx_{};
135135
};
136136
};
137137

include/bitcoin/database/tables/archives/ins.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct ins
103103
{
104104
link count() const NOEXCEPT
105105
{
106-
return system::possible_narrow_cast<link::integer>(tx.inputs());
106+
return system::possible_narrow_cast<link::integer>(tx_.inputs());
107107
}
108108

109109
inline bool to_data(flipper& sink) const NOEXCEPT
@@ -113,7 +113,7 @@ struct ins
113113
chain::point::serialized_size();
114114

115115
auto in_fk = input_fk;
116-
const auto& ins = *tx.inputs_ptr();
116+
const auto& ins = *tx_.inputs_ptr();
117117
std::for_each(ins.begin(), ins.end(), [&](const auto& in) NOEXCEPT
118118
{
119119
sink.write_little_endian<uint32_t>(in->sequence());
@@ -131,7 +131,7 @@ struct ins
131131

132132
const in::integer input_fk{};
133133
const tx::integer parent_fk{};
134-
const system::chain::transaction& tx{};
134+
const system::chain::transaction& tx_{};
135135
};
136136
};
137137

include/bitcoin/database/tables/archives/output.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct output
155155
static constexpr auto value_parent_difference = sizeof(uint64_t) -
156156
tx::size;
157157

158-
const auto& outs = *tx.outputs_ptr();
158+
const auto& outs = *tx_.outputs_ptr();
159159
const auto other = outs.size() * value_parent_difference;
160160
const auto outputs = std::accumulate(outs.begin(), outs.end(), zero,
161161
[](size_t total, const auto& out) NOEXCEPT
@@ -172,7 +172,7 @@ struct output
172172

173173
inline bool to_data(flipper& sink) const NOEXCEPT
174174
{
175-
const auto& outs = *tx.outputs_ptr();
175+
const auto& outs = *tx_.outputs_ptr();
176176
std::for_each(outs.begin(), outs.end(), [&](const auto& out) NOEXCEPT
177177
{
178178
sink.write_little_endian<tx::integer, tx::size>(parent_fk);
@@ -185,7 +185,7 @@ struct output
185185
}
186186

187187
const tx::integer parent_fk{};
188-
const system::chain::transaction& tx{};
188+
const system::chain::transaction& tx_{};
189189
};
190190
};
191191

include/bitcoin/database/tables/archives/outs.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct outs
9999
{
100100
link count() const NOEXCEPT
101101
{
102-
return system::possible_narrow_cast<link::integer>(tx.outputs());
102+
return system::possible_narrow_cast<link::integer>(tx_.outputs());
103103
}
104104

105105
inline bool to_data(flipper& sink) const NOEXCEPT
@@ -110,7 +110,7 @@ struct outs
110110
tx::size;
111111

112112
auto out_fk = output_fk;
113-
const auto& outs = *tx.outputs_ptr();
113+
const auto& outs = *tx_.outputs_ptr();
114114
std::for_each(outs.begin(), outs.end(), [&](const auto& out) NOEXCEPT
115115
{
116116
sink.write_little_endian<out::integer, out::size>(out_fk);
@@ -126,7 +126,7 @@ struct outs
126126
}
127127

128128
const out::integer output_fk{};
129-
const system::chain::transaction& tx{};
129+
const system::chain::transaction& tx_{};
130130
};
131131
};
132132

0 commit comments

Comments
 (0)