@@ -37,10 +37,10 @@ class BC_API prevout final
37
37
{
38
38
// / The confirmed chain height of the prevout (zero if not found).
39
39
// / Unused if the input owning this prevout is null (coinbase).
40
- size_t height;
40
+ size_t height{ zero } ;
41
41
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;
44
44
};
45
45
46
46
// /************************************************************************
@@ -51,13 +51,10 @@ class BC_API prevout final
51
51
{
52
52
// / The median time past at height (max_uint32 if not found/confirmed).
53
53
// / Unused if the input owning this prevout is null (coinbase).
54
- // / node: unused as validation precedes prevout block association.
55
54
uint32_t median_time_past{ max_uint32 };
56
55
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;
61
58
};
62
59
63
60
// /************************************************************************
@@ -77,6 +74,11 @@ class BC_API prevout final
77
74
bool inside;
78
75
};
79
76
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
+
80
82
// / The previous output is of a coinbase transaction.
81
83
// / node: populated, does not require prevout block association.
82
84
bool coinbase{ true };
0 commit comments