{
 "number": 35882,
 "repo": "bitcoin/bitcoin",
 "url": "https://github.com/bitcoin/bitcoin/pull/35882",
 "title": "test: cover Taproot standardness rules in mempool_accept",
 "author": "jeanpablojp",
 "author_association": "CONTRIBUTOR",
 "created_at": "2026-08-04T14:06:52Z",
 "updated_at": "2026-08-26T20:22:49Z",
 "age_days": 44,
 "draft": false,
 "labels": [
  "Tests"
 ],
 "milestone": null,
 "base": "master",
 "head_sha": "734f5c7442cfab24f9baac6e829b4e030e4a6f9c",
 "head_ref": "test-taproot-standardness",
 "head_repo": "jeanpablojp/bitcoin",
 "head_history": [],
 "additions": 24,
 "deletions": 0,
 "changed_files": 1,
 "commit_count": 1,
 "size_bucket": "S",
 "mergeable_state": "blocked",
 "bot": {
  "drahtbot": {
   "present": true,
   "reviews": {},
   "conflicts": []
  }
 },
 "acks_parsed": {},
 "acks_tally": {
  "ack": 0,
  "stale_ack": 0,
  "concept_ack": 0,
  "approach_ack": 0,
  "nack": 0,
  "concept_nack": 0,
  "approach_nack": 0
 },
 "reviews": {
  "approved": 0,
  "changes_requested": 0,
  "distinct_reviewers": []
 },
 "signals": {
  "needs_rebase": false,
  "ci_failed": false,
  "mergeable_state": "blocked",
  "last_author_activity": "2026-08-04T14:01:35Z",
  "last_reviewer_activity": null,
  "last_reviewer": null,
  "author_silent_days": 44,
  "waiting_on_author_days": 0,
  "days_since_update": 21
 },
 "refs": {
  "mentioned": [],
  "depends_on": [],
  "fixes": [],
  "linked_issues": [],
  "references": [],
  "conflicts": []
 },
 "stack": {
  "shares_commits_with": [],
  "based_on": [],
  "base_for": []
 },
 "review_paths": [],
 "body": "`IsWitnessStandard` has three policy rules for Taproot spends: annexes are nonstandard, tapscript stack items are limited to 80 bytes, and an empty control block is rejected. No test ties `bad-witness-nonstandard` to any of them. Every existing assertion of that reject reason is for another output type. `feature_taproot.py` does exercise annexes and oversized stack items, but it checks standardness with `assert_raises_rpc_error(-26, None, ...)`, so it never asserts which rule rejected the spend.\n\nThis adds a case per rule to `mempool_accept.py`. The file already builds a P2TR script-path spend, so each case only mutates its witness stack; the oversized item is one byte over the limit.\n\nTo check that each case hits the rule it claims to cover, I disabled the three branches in `policy.cpp` one at a time: each case fails with its branch disabled and passes with it restored.",
 "commits": [
  {
   "sha": "734f5c7442cfab24f9baac6e829b4e030e4a6f9c",
   "date": "2026-08-04T14:01:35Z",
   "message": "test: cover Taproot standardness rules in mempool_accept"
  }
 ],
 "timeline": [],
 "labels_log": [
  {
   "t": "2026-08-04T14:06:56Z",
   "action": "labeled",
   "label": "Tests",
   "who": "DrahtBot"
  }
 ],
 "state_log": [],
 "text_chars": 996,
 "text_tokens_estimate": 249,
 "changed_paths": [
  "test/functional/mempool_accept.py"
 ],
 "files": [
  {
   "path": "test/functional/mempool_accept.py",
   "add": 24,
   "del": 0
  }
 ],
 "test_lines": 24,
 "git": {
  "head": "734f5c7442cfab24f9baac6e829b4e030e4a6f9c",
  "head_matches_backup": true,
  "base": "8a4bab8e975332bd04e721ba7ad5aa79d1a47413",
  "commits": [
   {
    "sha": "734f5c7442",
    "subject": "test: cover Taproot standardness rules in mempool_accept",
    "files": 1,
    "add": 24,
    "del": 0
   }
  ],
  "patch_truncated": false
 },
 "input_hash": "c29c93be353236d2",
 "extracted_at": "2026-09-17T16:15:31+00:00"
}