Skip to content

Commit 4724ac8

Browse files
authored
Merge pull request #1608 from evoskuil/master
Style, comments.
2 parents 54d135f + 5f8f077 commit 4724ac8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

include/bitcoin/system/chain/input.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ class BC_API input
160160
sizes size_;
161161

162162
public:
163-
/// TODO: prevout destruct requires input destruct.
164163
/// Public mutable metadata access, copied but not compared for equality.
165164
/// Defaults are set so non-population issues usually imply invalidity.
166165
mutable chain::output::cptr prevout{};

include/bitcoin/system/chain/prevout.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ class BC_API prevout final
3737
{
3838
/// The confirmed chain height of the prevout (zero if not found).
3939
/// Unused if the input owning this prevout is null (coinbase).
40-
size_t height{ zero };
40+
size_t height;
4141

42-
/// node: populated with database identifier for prevout's parent tx.
43-
uint32_t parent;
42+
/// node: populated with a database identifier for the parent tx.
43+
uint32_t parent{ zero };
4444
};
4545

4646
///************************************************************************
@@ -53,8 +53,8 @@ class BC_API prevout final
5353
/// Unused if the input owning this prevout is null (coinbase).
5454
uint32_t median_time_past{ max_uint32 };
5555

56-
/// node: populated with database identifier for spender's parent tx.
57-
uint32_t spender;
56+
/// node: set to the database record of the input association.
57+
uint32_t link;
5858
};
5959

6060
///************************************************************************

0 commit comments

Comments
 (0)