async wallet creation
MODIFY
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWalletPageViewModel.cs
@@ -9,6 +9,7 @@ using WalletWasabi.Stores;
using NBitcoin;
using WalletWasabi.Fluent.ViewModels.Dialogs;
using WalletWasabi.Fluent.ViewModels.AddWallet;
+using System.Threading.Tasks;
namespace WalletWasabi.Fluent.ViewModels
{
@@ -33,12 +34,17 @@ namespace WalletWasabi.Fluent.ViewModels
var result = await PasswordInteraction.Handle("").ToTask();
if (result is { } password)
+ {
+ var (km, mnemonic) = await Task.Run(
+ () =>
{
var walletGenerator = new WalletGenerator(walletManager.WalletDirectories.WalletsDir,network)
{
TipHeight = store.SmartHeaderChain.TipHeight
};
- var (km, mnemonic) = walletGenerator.GenerateWallet(WalletName, password);
+ return walletGenerator.GenerateWallet(WalletName, password);
+ });
+
await screen.Router.Navigate.Execute(
new RecoveryWordsViewModel(screen, km, mnemonic, walletManager));
}

async wallet creation