Fix wrong comment in policy_node_thresh_t
What changed, and why it matters
This commit only changes a code comment to accurately describe how child scripts are stored. It does not alter any actual program logic, data structures, or behavior, so it has no security impact.
No security action needed; this is a documentation-only comment fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch updates a single C comment in src/common/wallet.h for the policy_node_thresh_t structure. The old comment incorrectly stated that scriptlist points to an array of pointers to child scripts; the new comment states it points to a linked list of child scripts. No struct fields, types, or executable code were modified.
Changed components
src/common/wallet.hInspect captured patch +1 / −1
diff --git a/src/common/wallet.h b/src/common/wallet.h
index e2321ef..abfb4b6 100644
--- a/src/common/wallet.h
+++ b/src/common/wallet.h
@@ -398,7 +398,7 @@ typedef struct {
uint16_t k; // threshold
uint16_t n; // number of child scripts
rptr_policy_node_scriptlist_t
- scriptlist; // pointer to array of exactly n pointers to child scripts
+ scriptlist; // pointer to a linked list of exactly n child scripts
} policy_node_thresh_t;
typedef struct {
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.