Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitcoin client 0.17.0 ignores wallet's name (file) #14523

Closed
nikitasius opened this issue Oct 19, 2018 · 7 comments
Closed

bitcoin client 0.17.0 ignores wallet's name (file) #14523

nikitasius opened this issue Oct 19, 2018 · 7 comments

Comments

@nikitasius
Copy link

nikitasius commented Oct 19, 2018

Old config (version 0.15 and 0.16.0/0.16.3):

prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
walletdir=/path/to/wallet/
wallet=mywallet.dat

It worked pretty nice.

UPD: it does not worked in version 0.17.0 ! BTC client made a new wallet.dat file

On version 0.17.0 i read what i can use full pathes to wallet files.

prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
wallet=/path/to/wallet/mywallet.dat

FAILS. It created wallet.dat in /path/to/wallet/ folder


prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
walletdir=/path/to/wallet/
wallet=/path/to/wallet/mywallet.dat

FAILS. It created wallet.dat in ~/.bitcoin/wallets folder.


Current config:

prune=8192
rpcuser=rpc
rpcpassword=rpc
onlynet=ipv4
testnet=1
rpcbind=127.0.0.1:18332
walletdir=/path/to/wallet/

AND i renamed mywallet.dat into wallet.dat to let client work.

I run bitcoin core client 0.17.0 on Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux.

@ryanofsky
Copy link
Contributor

walletdir=/path/to/wallet/
wallet=mywallet.dat
It worked pretty nice.
UPD: it does not worked in version 0.17.0 ! BTC client made a new wallet.dat file

I think I'm able to reproduce this. It looks like #11862 might be causing your wallet config argument to be ignored. Do you see this warning?

Warning: Config setting for -wallet only applied on test network when in [test] section.

On version 0.17.0 i read what i can use full pathes to wallet files.

We might need to clarify release notes, but this isn't true. You can only specify full paths to wallet directories not wallet files. (Originally this was possible, but it was deemed too dangerous because it might mislead people into creating incomplete backups of wallets).

@nikitasius
Copy link
Author

@ryanofsky , hi
yes:

grep applied debug.log
2018-10-19T21:04:04Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.
2018-10-19T21:04:04Z Warning: Config setting for -wallet only applied on test network when in [test] section.
2018-10-19T21:16:02Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.
2018-10-19T21:16:02Z Warning: Config setting for -wallet only applied on test network when in [test] section.
2018-10-19T21:21:35Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.
2018-10-19T21:21:35Z Warning: Config setting for -wallet only applied on test network when in [test] section.
2018-10-19T21:23:35Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.
2018-10-19T21:23:35Z Warning: Config setting for -wallet only applied on test network when in [test] section.
2018-10-19T21:30:02Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.
2018-10-19T21:37:18Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.
2018-10-19T21:37:18Z Warning: Config setting for -wallet only applied on test network when in [test] section.
2018-10-19T21:41:20Z Warning: Config setting for -rpcbind only applied on test network when in [test] section.

it's same debug.log i keep, records inside are from 14 october. 0.17.0 was installed yesterday.

@nikitasius
Copy link
Author

nikitasius commented Oct 20, 2018

but why i need (or not) to specity test section inside a config? i.e. i already specified a testnet.

@ryanofsky
Copy link
Contributor

ryanofsky commented Oct 20, 2018

but why i need (or not) to specity test section inside a config? i.e. i already specified a testnet.

Before #11862 and 0.17.0, you didn't need to have -wallet and other "network-only" options under a network section. Now it looks you need to or they get ignored.

I think this is a mistake, and we should backport a fix that will restore the old behavior. It don't think it is ok to just start ignoring settings that used to work. We should probably keep the log message to encourage people to use network-specific sections and be more explicit about settings that are sensitive to which network is used, but we should not just be dropping the settings on the floor.

It also seems like a mistake to me that -wallet is a "network-only" option but -walletdir is not. This is another thing that should probably be addressed.

@maflcko maflcko added this to the 0.17.1 milestone Oct 21, 2018
@maflcko maflcko modified the milestones: 0.17.1, 0.17.2 Dec 3, 2018
@maflcko
Copy link
Member

maflcko commented Dec 3, 2018

Moving to 0.17.2

@maflcko
Copy link
Member

maflcko commented Mar 20, 2019

Made it an error instead of warning in #15629, so at least Bitcoin Core wouldn't start with such a config file.

maflcko pushed a commit to maflcko/bitcoin-core that referenced this issue Apr 10, 2019
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
@maflcko
Copy link
Member

maflcko commented Apr 10, 2019

Should be "fixed" in master

@maflcko maflcko closed this as completed Apr 10, 2019
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 15, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 16, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 16, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 16, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 16, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 16, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
vijaydasmp pushed a commit to vijaydasmp/dash that referenced this issue Oct 16, 2021
…s ignored

fae38c3 doc: Fix all typos reported by codespell (MarcoFalke)
fa9058f doc: Add release notes for 15629 (MarcoFalke)
fa4a922 qa: Add test for missing testnet section in conf file (MarcoFalke)
dddd6f0 init: Throw error when network specific config is ignored (MarcoFalke)

Pull request description:

  This should have no effect on mainnet users, but simplifies testing, where config settings are currently ignored with only a warning. Fix this by making it an error.

  Issues:
  *  bitcoin client 0.17.0 ignores wallet's name (file) bitcoin#14523
  *  Can't set custom rpcport on testnet bitcoin#13777
  * ...

ACKs for commit fae38c:

Tree-SHA512: 2e209526898eea6e444c803ec2666989cee4ca137492d32984998733c50a70056cb54657df8dc3027a6a0612738a8afce0bc35824b868c5f22281e00e0188530
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants