Prepare the skeleton of WalletService.
MODIFY
MagicalCryptoWallet.Backend/Global.cs
MagicalCryptoWallet.Backend/Global.cs
@@ -68,7 +68,7 @@ namespace MagicalCryptoWallet.Backend
var indexFilePath = Path.Combine(indexBuilderServiceDir, $"Index{RpcClient.Network}.dat");
var utxoSetFilePath = Path.Combine(indexBuilderServiceDir, $"UtxoSet{RpcClient.Network}.dat");
IndexBuilderService = new IndexBuilderService(RpcClient, indexFilePath, utxoSetFilePath);
- IndexBuilderService.Syncronize();
+ IndexBuilderService.Synchronize();
}
public static async Task InitializeConfigAsync()

MODIFY
MagicalCryptoWallet.Tests/P2pTests.cs
MagicalCryptoWallet.Tests/P2pTests.cs
@@ -88,7 +88,7 @@ namespace MagicalCryptoWallet.Tests
});
downloader = new BlockDownloader(nodes, blocksFolderPath);
Assert.True(Directory.Exists(blocksFolderPath));
- downloader.Start();
+ downloader.Synchronize();
foreach (var hash in blocksToDownload)
{
downloader.QueToDownload(hash);
@@ -208,7 +208,7 @@ namespace MagicalCryptoWallet.Tests
var indexBuilderService = new IndexBuilderService(rpc, indexFilePath, utxoSetFilePath);
try
{
- indexBuilderService.Syncronize();
+ indexBuilderService.Synchronize();
// Test initial syncronization.
var times = 0;

MODIFY
MagicalCryptoWallet/Services/BlockDownloader.cs
MagicalCryptoWallet/Services/BlockDownloader.cs
@@ -78,7 +78,7 @@ namespace MagicalCryptoWallet.Services
}
}
- public void Start()
+ public void Synchronize()
{
Interlocked.Exchange(ref _running, 1);

MODIFY
MagicalCryptoWallet/Services/IndexBuilderService.cs
MagicalCryptoWallet/Services/IndexBuilderService.cs
@@ -177,7 +177,7 @@ namespace MagicalCryptoWallet.Services
}
}
- public void Syncronize()
+ public void Synchronize()
{
Interlocked.Exchange(ref _running, 1);

MODIFY
MagicalCryptoWallet/Services/IndexDownloader.cs
MagicalCryptoWallet/Services/IndexDownloader.cs
@@ -97,7 +97,7 @@ namespace MagicalCryptoWallet.Services
}
}
- public void Syncronize(TimeSpan requestInterval)
+ public void Synchronize(TimeSpan requestInterval)
{
Guard.NotNull(nameof(requestInterval), requestInterval);
Interlocked.Exchange(ref _running, 1);

Prepare the skeleton of WalletService.