HomePhabricator

[backport] Reject invalid wallets

Description

[backport] Reject invalid wallets

Summary:
Backport of Bitcoin Core PR#10885: Reject invalid wallets

d84e78e [wallet] Specify wallet name in wallet loading errors (John Newbery)
a6da027 Reject invalid wallet files (João Barbosa)
3ef77a0 Reject duplicate wallet filenames (João Barbosa)

Pull request description:

This PR prevents loading the same wallet more than once in a multi wallet scenario. It also prevents loading with invalid files: non regular files or symlinks.

Depends on D987
Closes T190

Test Plan: make check && ./test/functional/test_runner.py

Reviewers: deadalnix, jasonbcox, matiu, #bitcoin_abc

Reviewed By: deadalnix, #bitcoin_abc

Subscribers: teamcity

Maniphest Tasks: T190, T172

Differential Revision: https://reviews.bitcoinabc.org/D988

Details

Provenance
João Barbosa <joao.paulo.barbosa@gmail.com>Authored on Jul 26 2017, 23:56
schancelCommitted on Jan 23 2018, 00:38
deadalnixPushed on Jan 23 2018, 12:58
Reviewer
Restricted Project
Differential Revision
D988: [backport] Reject invalid wallets
Parents
rSTAGINGf44fd9e38031: Avoid dereference-of-casted-pointer
Branches
Unknown
Tags
Unknown
Tasks
T190: Backport Core PR10885: Reject invalid wallets