Page MenuHomePhabricator

add symlink option
AbandonedPublic

Authored by jasonbcox on May 3 2018, 14:39.

Details

Reviewers
deadalnix
jonald_fyookball
Group Reviewers
Restricted Project
Summary

port changes from https://github.com/bitcoin/bitcoin/pull/11343

This allows user to set the -walletallowsymboliclink option when
running the wallet. If set, then the wallet file is allowed to
be a symbolic link. If false, the wallet file is prohibited
from being a symbolic link, which is the default behavior.

Test Plan
  1. cd into ~/.bitcoin folder
  2. move existing wallet.dat to temporary location
  3. create symlink called wallet.dat that points to actual wallet file.
  4. run bitcoin-qt.
  5. message should appear that wallet file is invalid.
  6. run bitcoin-qt -walletallowsymboliclink=1
  7. message shouldnt appear. wallet should load normally.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
jonald-branch
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2493
Build 3114: Bitcoin ABC Buildbot (legacy)
Build 3113: arc lint + arc unit

Event Timeline

deadalnix requested changes to this revision.May 3 2018, 16:34
deadalnix added a subscriber: deadalnix.

I don't know if this is a good idea. We don't allow wallets to be symlinks or outside the datadir for good reason (they're not self-sufficient files).

If the wallet.dat is on another filesystem from the database/ directory this will result in corruption in the event of unclean shutoffs.

This as well: https://github.com/bitcoin/bitcoin/pull/11343#issuecomment-329861765

There are a ton fo comments in there as to why this is a bad idea.

This revision now requires changes to proceed.May 3 2018, 16:34
jasonbcox abandoned this revision.
jasonbcox added a reviewer: jonald_fyookball.