diff --git a/web-wallet/CHANGELOG.md b/web-wallet/CHANGELOG.md index 1280c4f08a..a7ff233899 100644 --- a/web-wallet/CHANGELOG.md +++ b/web-wallet/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Add option to sync from a custom block height on Wallet Restoration [#1568] - Show current block height on Wallet Creation [#1561] - Added gas settings validation on Unstake / Widthdraw Rewards flows [#2000] @@ -228,6 +229,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#1552]: https://github.com/dusk-network/rusk/issues/1552 [#1561]: https://github.com/dusk-network/rusk/issues/1561 [#1565]: https://github.com/dusk-network/rusk/issues/1565 +[#1568]: https://github.com/dusk-network/rusk/issues/1568 [#1567]: https://github.com/dusk-network/rusk/issues/1567 [#1576]: https://github.com/dusk-network/rusk/issues/1576 [#1591]: https://github.com/dusk-network/rusk/issues/1591 diff --git a/web-wallet/src/lib/dusk/components/CopyField/CopyField.svelte b/web-wallet/src/lib/dusk/components/CopyField/CopyField.svelte index f4ad126254..e44a3754f3 100644 --- a/web-wallet/src/lib/dusk/components/CopyField/CopyField.svelte +++ b/web-wallet/src/lib/dusk/components/CopyField/CopyField.svelte @@ -38,7 +38,7 @@ .copy-field { display: flex; align-items: center; - gap: 1em; + gap: var(--default-gap); } :global { .copy-field__content { diff --git a/web-wallet/src/routes/(welcome)/setup/create/NetworkSync.svelte b/web-wallet/src/routes/(welcome)/setup/create/NetworkSync.svelte index 478f4814dd..6f2a40fccc 100644 --- a/web-wallet/src/routes/(welcome)/setup/create/NetworkSync.svelte +++ b/web-wallet/src/routes/(welcome)/setup/create/NetworkSync.svelte @@ -17,14 +17,14 @@

Store the current block height in case you want to resync from it next time - you reset your wallet. This can significantly reduce the sync time. + you reset your wallet. This can significantly reduce the initial sync time.

+ /> This can later be retrieved from Settings. Find out more in our {:else} - + +

+ Network
+ Syncing +

+ +
+ { - await initializeWallet(mnemonicPhrase, 0); + await initializeWallet(mnemonicPhrase, blockHeight); mnemonicPhrase = []; await goto("/dashboard"); }, diff --git a/web-wallet/src/routes/(welcome)/setup/restore/NetworkSync.svelte b/web-wallet/src/routes/(welcome)/setup/restore/NetworkSync.svelte new file mode 100644 index 0000000000..fa08078413 --- /dev/null +++ b/web-wallet/src/routes/(welcome)/setup/restore/NetworkSync.svelte @@ -0,0 +1,46 @@ + + + + + + +
+ +

+ Syncing from a custom block height is optional. Doing so can significantly + reduce sync times. However, setting a wrong block can lead to wrong balance + or missing transactions. Find out more in our documentation. +

+