From b3d1a7264c25ea424211ba2e39f3b18ed67f2c49 Mon Sep 17 00:00:00 2001 From: Parham Saremi Date: Mon, 14 Nov 2022 16:28:27 +0330 Subject: [PATCH] Backend,Tests: update NOnion version We have to use new for instanciating TorServiceHost since in the new version of NOnion this type is IDisposable. Fixes https://github.com/nblockchain/geewallet/issues/181 Fixes https://github.com/nblockchain/geewallet/issues/184 Fixes https://github.com/nblockchain/geewallet/issues/186 --- GWallet.Backend.nuspec | 2 +- .../GWallet.Backend.Tests.Unit.fsproj | 4 ++-- src/GWallet.Backend.Tests.Unit/packages.config | 2 +- src/GWallet.Backend/GWallet.Backend.fsproj | 4 ++-- src/GWallet.Backend/UtxoCoin/TorOperations.fs | 2 +- src/GWallet.Backend/packages.config | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/GWallet.Backend.nuspec b/GWallet.Backend.nuspec index e7e65dcc7..376f3425f 100644 --- a/GWallet.Backend.nuspec +++ b/GWallet.Backend.nuspec @@ -22,7 +22,7 @@ - + diff --git a/src/GWallet.Backend.Tests.Unit/GWallet.Backend.Tests.Unit.fsproj b/src/GWallet.Backend.Tests.Unit/GWallet.Backend.Tests.Unit.fsproj index cbe4a146b..1a798c8e8 100644 --- a/src/GWallet.Backend.Tests.Unit/GWallet.Backend.Tests.Unit.fsproj +++ b/src/GWallet.Backend.Tests.Unit/GWallet.Backend.Tests.Unit.fsproj @@ -84,7 +84,7 @@ - ..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\Chaos.NaCl-Portable.dll + ..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\Chaos.NaCl-Portable.dll ..\..\packages\FSharpx.Collections.3.0.1\lib\netstandard2.0\FSharpx.Collections.dll @@ -94,7 +94,7 @@ - ..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\NOnion.dll + ..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\NOnion.dll ..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll diff --git a/src/GWallet.Backend.Tests.Unit/packages.config b/src/GWallet.Backend.Tests.Unit/packages.config index 7aedebe5d..5fd4a066e 100644 --- a/src/GWallet.Backend.Tests.Unit/packages.config +++ b/src/GWallet.Backend.Tests.Unit/packages.config @@ -8,7 +8,7 @@ - + diff --git a/src/GWallet.Backend/GWallet.Backend.fsproj b/src/GWallet.Backend/GWallet.Backend.fsproj index 49368daa7..0dba7bf12 100644 --- a/src/GWallet.Backend/GWallet.Backend.fsproj +++ b/src/GWallet.Backend/GWallet.Backend.fsproj @@ -117,7 +117,7 @@ - ..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\Chaos.NaCl-Portable.dll + ..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\Chaos.NaCl-Portable.dll ..\..\packages\FSharp.Data.3.0.0\lib\net45\FSharp.Data.dll @@ -145,7 +145,7 @@ ..\..\packages\Nerdbank.Streams.2.6.81\lib\netstandard2.0\Nerdbank.Streams.dll - ..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\NOnion.dll + ..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\NOnion.dll ..\..\packages\StreamJsonRpc.2.8.21\lib\netstandard2.0\StreamJsonRpc.dll diff --git a/src/GWallet.Backend/UtxoCoin/TorOperations.fs b/src/GWallet.Backend/UtxoCoin/TorOperations.fs index d2407b424..7c31e8f65 100644 --- a/src/GWallet.Backend/UtxoCoin/TorOperations.fs +++ b/src/GWallet.Backend/UtxoCoin/TorOperations.fs @@ -104,7 +104,7 @@ module internal TorOperations = async { return! FSharpUtil.Retry (fun _ -> async { - let torHost = TorServiceHost(directory, Config.TOR_DESCRIPTOR_UPLOAD_RETRY_COUNT, Config.TOR_CONNECTION_RETRY_COUNT, GetTorServiceKey() |> Some) + let torHost = new TorServiceHost(directory, Config.TOR_DESCRIPTOR_UPLOAD_RETRY_COUNT, Config.TOR_CONNECTION_RETRY_COUNT, GetTorServiceKey() |> Some) do! torHost.Start() return torHost }) diff --git a/src/GWallet.Backend/packages.config b/src/GWallet.Backend/packages.config index 79b2e05fb..e73300dfe 100644 --- a/src/GWallet.Backend/packages.config +++ b/src/GWallet.Backend/packages.config @@ -24,7 +24,7 @@ - +