Currently, one can specify multiple -usewallet
arguments in bitcoin-cli (Including bitcoin.conf
) where the last passed-in -usewallet
will be used. This can result in executing critical actions on the wrong wallet.
This PR halts bitcoin-cli if multiple -usewallet
-arguments where passed-in.
Tagged for 0.15 (in case we consider this a bug-fix).
Reported by @morcos (https://github.com/bitcoin/bitcoin/pull/10849#issuecomment-316065717)