@@ -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;
40+ size_t height{ zero } ;
4141
42- // / node: populated with a database identifier for the parent tx.
43- uint32_t parent{ zero } ;
42+ // / node: populated with database identifier for prevout's parent tx.
43+ uint32_t parent;
4444 };
4545
4646 // /************************************************************************
@@ -51,13 +51,10 @@ class BC_API prevout final
5151 {
5252 // / The median time past at height (max_uint32 if not found/confirmed).
5353 // / Unused if the input owning this prevout is null (coinbase).
54- // / node: unused as validation precedes prevout block association.
5554 uint32_t median_time_past{ max_uint32 };
5655
57- // / node: set via block.populate() as internal spends do not
58- // / require prevout block association for relative locktime checks.
59- // / So median_time_past is not required as locked is determined here.
60- bool locked;
56+ // / node: populated with database identifier for spender's parent tx.
57+ uint32_t spender;
6158 };
6259
6360 // /************************************************************************
@@ -77,6 +74,11 @@ class BC_API prevout final
7774 bool inside;
7875 };
7976
77+ // / node: set via block.populate() as internal spends do not
78+ // / require prevout block association for relative locktime checks.
79+ // / So median_time_past is not required as locked is determined here.
80+ bool locked{ true };
81+
8082 // / The previous output is of a coinbase transaction.
8183 // / node: populated, does not require prevout block association.
8284 bool coinbase{ true };
0 commit comments