Merge #1234: fix wrong datadir in app cache using remote backend

8610afeea635c0ffe91db76fb10ed46e72478d82 fix wrong datadir in app cache using remote backend (edouardparis)

Pull request description:

  Detected after Manuel failed to have in cache the correct the refresh token. It was not correctly stored after 1h in the settings file because of the wrong datadir.

ACKs for top commit:
  edouardparis:
    Self-ACK 8610afeea635c0ffe91db76fb10ed46e72478d82

Tree-SHA512: 7bb6f1281d4642927dbb4a10183e5551a93137ca5e6cea09b906e23a3789684070fd00395aabe4711205db74ffad715ee8ba5bf7e728bf8c2b8327e3b9c5c329
This commit is contained in:
edouardparis 2024-08-23 17:08:36 +02:00
commit 2253edd70d
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

View File

@ -480,7 +480,7 @@ pub fn create_app_with_remote_backend(
network: bitcoin::Network::Signet,
coins: Vec::new(),
rescan_progress: None,
datadir_path: default_datadir().unwrap(),
datadir_path: datadir.clone(),
blockheight: wallet.tip_height.unwrap_or(0),
},
Arc::new(