Files
bitcoin/src
MarcoFalke a30642926a Merge bitcoin/bitcoin#23721: wallet, refactor: Move restorewallet() logic to the wallet section
62fa61fa4a refactor: remove the wallet folder if the restore fails (w0xlt)
abbb7eccef refactor: Move restorewallet() RPC logic to the wallet section (w0xlt)
4807f73f48 refactor: Implement restorewallet() logic in the wallet section (w0xlt)

Pull request description:

  Currently `restorewallet()` logic is written in the RPC layer and it can´t be reused by GUI. So it moves this to the wallet section and then, GUI can access it.

  This is necessary to implement the "Restore Wallet" menu item in the GUI (which is already implemented  in https://github.com/bitcoin-core/gui/pull/471 ).

  This commit also simplifies error handling and adds a new behavior: if the restore fails, the invalid wallet folder is removed.

ACKs for top commit:
  achow101:
    ACK 62fa61fa4a
  shaavan:
    crACK 62fa61fa4a

Tree-SHA512: 7ccfbad5943f38616ba0c2dd443c97a4b5bc1f6612dbf5a9e7a0263100aba36671fae929a2e7688442667be394645f44484af137a4802f204a33c4689eb27c39
2021-12-16 08:42:44 +01:00
..
2021-09-10 11:18:58 +08:00
2021-09-29 14:10:29 +02:00
2021-11-12 11:46:34 +01:00
2021-07-30 11:21:51 +02:00
2020-12-31 09:45:41 +01:00
2021-11-26 11:17:43 +01:00
2021-11-15 12:08:49 -05:00
2021-11-16 09:56:45 +01:00
2021-12-07 14:48:49 -05:00
2021-10-12 12:03:14 +13:00
2021-10-11 21:45:49 +10:00
2021-01-07 18:07:09 +02:00
2021-01-04 12:31:31 +08:00
2021-10-05 11:11:18 +02:00
2021-12-02 13:16:18 +07:00
2021-11-29 17:59:44 -05:00
2021-04-06 14:50:17 +08:00
2020-12-31 09:45:41 +01:00
2020-12-31 09:45:41 +01:00
2021-12-11 18:32:17 +01:00
2021-12-11 18:32:17 +01:00
2021-12-10 08:29:24 -05:00
2021-11-29 17:59:44 -05:00
2021-09-29 18:46:30 +02:00
2021-11-18 18:13:21 +01:00
2021-08-20 16:59:41 +02:00
2021-12-02 14:49:19 +00:00
2021-12-02 14:49:19 +00:00