AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

Merge bitcoin/bitcoin#36972: doc: clarify that `backupwallet` requires a filename

Public commit record

What the developer wrote

Authored by merge-script

81/100 · Strong
Merge bitcoin/bitcoin#36972: doc: clarify that `backupwallet` requires a filename

476caddd0e6dc6602d3026fc9b8a7680e899511d wallet rpc: document the filename required by backupwallet (Lőrinc)

Pull request description:

**Problem:** `help backupwallet` lists a directory as a valid destination. Passing an existing directory returns RPC error `-4`.

**Fix:** Clarify in the RPC description and the help for `destination` that the path must include a filename.

<details><summary>Reproducer</summary>

```bash
cmake -B build && cmake --build build --target bitcoind bitcoin-cli
args=(-regtest -datadir="$(mktemp -d)" -rpcport=19456)
(cd build/bin && ./bitcoind "${args[@]}" -listen=0 -daemonwait && ./bitcoin-cli "${args[@]}" createwallet demo && ./bitcoin-cli "${args[@]}" backupwallet "$PWD"; killall bitcoind)
```

Expected output from `backupwallet`:

```text
error code: -4
error message:
Error: Wallet backup failed!
```
</details>

ACKs for top commit:
maflcko:
lgtm ACK 476caddd0e6dc6602d3026fc9b8a7680e899511d
rkrux:
lgtm ACK 476caddd0e6dc6602d3026fc9b8a7680e899511d
sedited:
ACK 476caddd0e6dc6602d3026fc9b8a7680e899511d

Tree-SHA512: c382aaf7bdf72b5fd123fa68035ced5c7a579337e0c464a1364bc54a01e1232f261af2e436dd9e159b674f6ed4edcee75d61de7ce190db0ebdacd81ea465119e
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit only changes the user-facing help text for the backupwallet command. It makes the documentation clearer that you must provide a filename, not just a directory. No code behavior changed, and there is no security issue here.

Recommended action

No action needed; this is a documentation-only clarification.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.