Merge #996: gui: hint at rescan when importing wallet

492baeaabaf181523d0aac3ac1da8ce2ca837ece gui: hint at rescan when importing wallet (jp1ac4)

Pull request description:

  This is to resolve #866.

  I've added the message to the first step where the user enters the descriptor:

  ![image](https://github.com/wizardsardine/liana/assets/121959000/122c0476-79b5-4b0d-a711-73312a94dc01)

ACKs for top commit:
  edouardparis:
    ACK 492baeaabaf181523d0aac3ac1da8ce2ca837ece

Tree-SHA512: 7899ca979b2988d18e6d7be35bad4029db0f1c45f332739f779b532059a710be70463bb85167ffc04491dae35d9300e051788da92bd63ca67a301576b449ad8b
This commit is contained in:
Antoine Poinsot 2024-03-13 19:23:23 +01:00
commit b11dbfd6f5
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -414,7 +414,19 @@ pub fn import_descriptor<'a>(
} else {
None
})
.push(col_descriptor),
.push(col_descriptor)
.push_maybe(if change_network {
// only show message when importing a descriptor
Some(text(
"After creating the wallet, \
you will need to perform a rescan of \
the blockchain in order to see your \
coins and past transactions. This can \
be done in Settings > Bitcoin Core.",
))
} else {
None
}),
)
.push(
if imported_descriptor.value.is_empty() || !imported_descriptor.valid {