{
 "number": 35890,
 "repo": "bitcoin/bitcoin",
 "url": "https://github.com/bitcoin/bitcoin/pull/35890",
 "title": "doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md",
 "author": "GuTS805",
 "author_association": "NONE",
 "created_at": "2026-08-05T03:13:23Z",
 "updated_at": "2026-08-13T13:13:55Z",
 "age_days": 43,
 "draft": false,
 "labels": [
  "Docs",
  "Wallet"
 ],
 "milestone": null,
 "base": "master",
 "head_sha": "be30864ed1a63cad0e109ebc98fe17bd852bc8d0",
 "head_ref": "fix-offline-signing-tutorial-append",
 "head_repo": "GuTS805/bitcoin",
 "head_history": [],
 "additions": 2,
 "deletions": 2,
 "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": [
   "davidgumberg"
  ]
 },
 "signals": {
  "needs_rebase": false,
  "ci_failed": false,
  "mergeable_state": "blocked",
  "last_author_activity": "2026-08-12T00:38:29Z",
  "last_reviewer_activity": "2026-08-12T00:05:47Z",
  "last_reviewer": "davidgumberg",
  "author_silent_days": 36,
  "waiting_on_author_days": 0,
  "days_since_update": 35
 },
 "refs": {
  "mentioned": [
   35862
  ],
  "depends_on": [],
  "fixes": [
   35862
  ],
  "linked_issues": [
   {
    "number": 35862,
    "type": "issue",
    "state": "closed",
    "merged": false,
    "merged_at": null,
    "title": "doc: offline-signing-tutorial.md uses `>>` (append) instead of `>` (overwrite) for one-shot PSBT files"
   }
  ],
  "references": [
   {
    "number": 35862,
    "type": "issue",
    "state": "closed",
    "merged": false,
    "merged_at": null,
    "title": "doc: offline-signing-tutorial.md uses `>>` (append) instead of `>` (overwrite) for one-shot PSBT files"
   }
  ],
  "conflicts": []
 },
 "stack": {
  "shares_commits_with": [],
  "based_on": [],
  "base_for": []
 },
 "review_paths": [],
 "body": "`funded_psbt.txt` and `final_psbt.txt` should only ever have one line in them, since later steps just do `$(cat ...)` to read them back. but the tutorial uses `>>` (append) instead of `>` (overwrite), so if you run the `send` or `walletprocesspsbt` step twice without deleting the file, it adds a second line instead of replacing the first one. then `$(cat ...)` picks up both lines as separate args and the next command fails with too many arguments.\n\nFixes #35862.",
 "commits": [
  {
   "sha": "be30864ed1a63cad0e109ebc98fe17bd852bc8d0",
   "date": "2026-08-05T03:09:09Z",
   "message": "doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md\n\nfunded_psbt.txt and final_psbt.txt are each expected to hold exactly one\nPSBT/hex string, consumed via unquoted $(cat ...) in every later step. Using\nappend (>>) instead of overwrite (>) means re-running the send or\nwalletprocesspsbt step without deleting the output file first appends a\nsecond line, which $(cat ...) then word-splits into two arguments, causing\ndecodepsbt/analyzepsbt/walletprocesspsbt/sendrawtransaction to reject the\ncall with too many arguments.\n\nFixes #35862."
  }
 ],
 "timeline": [
  {
   "t": "2026-08-12T00:05:47Z",
   "kind": "comment",
   "who": "davidgumberg",
   "assoc": "CONTRIBUTOR",
   "text": "This PR description and the issue it's linked to were both clearly generated by an LLM. Even if the issue is real and the change here is correct, you need to write your own description.\n\nPlease read the [AI Policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md)"
  },
  {
   "t": "2026-08-12T00:22:49Z",
   "kind": "comment",
   "who": "GuTS805",
   "assoc": "NONE",
   "text": "oh sorry i did not intended to do it like this. I will edit the description in my own words."
  },
  {
   "t": "2026-08-12T00:38:29Z",
   "kind": "comment",
   "who": "GuTS805",
   "assoc": "NONE",
   "text": "@davidgumberg i have read ai policy. And rewrite the issue and description in my own words. Can you review it again."
  }
 ],
 "labels_log": [
  {
   "t": "2026-08-05T03:13:26Z",
   "action": "labeled",
   "label": "Docs",
   "who": "DrahtBot"
  },
  {
   "t": "2026-08-05T08:21:01Z",
   "action": "labeled",
   "label": "Wallet",
   "who": "maflcko"
  }
 ],
 "state_log": [],
 "text_chars": 1640,
 "text_tokens_estimate": 410,
 "changed_paths": [
  "doc/offline-signing-tutorial.md"
 ],
 "files": [
  {
   "path": "doc/offline-signing-tutorial.md",
   "add": 2,
   "del": 2
  }
 ],
 "test_lines": 0,
 "git": {
  "head": "be30864ed1a63cad0e109ebc98fe17bd852bc8d0",
  "head_matches_backup": true,
  "base": "d3cfd02bd7f8033a528dae163314f75dcae49f3d",
  "commits": [
   {
    "sha": "be30864ed1",
    "subject": "doc: use overwrite (>) instead of append (>>) for one-shot PSBT files in offline-signing-tutorial.md",
    "files": 1,
    "add": 2,
    "del": 2
   }
  ],
  "patch_truncated": false
 },
 "input_hash": "4b3cead064f56764",
 "extracted_at": "2026-09-17T16:15:31+00:00"
}