Wallet symlinks are not rejected as expected #31842

issue hebasto opened this issue on February 11, 2025
  1. hebasto commented at 3:03 PM on February 11, 2025: member

    Since #10885, bitcoind is expected to reject symlinks to wallets. This behaviour is also intended to be tested in the following test:https://github.com/bitcoin/bitcoin/blob/86528937e5c4da2e12c46085fc41e87ed759258e/test/functional/wallet_multiwallet.py#L168-L170

    However, this is not the case:

    $ ls -l ~/.bitcoin/regtest/wallets/
    total 3
    drwx------ 2 hebasto hebasto  3 Feb 11 14:49 w8
    lrwxrwxrwx 1 hebasto hebasto 41 Feb 11 14:11 w8_symlink_abs -> /home/hebasto/.bitcoin/regtest/wallets/w8
    lrwxrwxrwx 1 hebasto hebasto  2 Feb 11 14:31 w8_symlink_rel -> w8
    $ ./build/src/bitcoind -regtest -wallet=w8_symlink_abs
    $ ./build/src/bitcoin-cli -regtest listwallets
    [
      "w8_symlink_abs"
    ]
    $ ./build/src/bitcoind -regtest -wallet=w8_symlink_rel
    $ ./build/src/bitcoin-cli -regtest listwallets
    [
      "w8_symlink_rel"
    ]
    
  2. hebasto added the label Wallet on Feb 11, 2025
  3. achow101 commented at 6:56 PM on February 11, 2025: member

    Symlink to a wallet directory is allowed, but a symlink to a wallet file is not. What you've tested manually is a symlink to a wallet directory, so it works.

  4. hebasto closed this on Feb 11, 2025

  5. bitcoin locked this on Feb 11, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me