Skip to content

Commit

Permalink
Backend,Tests: update NOnion version
Browse files Browse the repository at this point in the history
We have to use new for instanciating TorServiceHost since in the new
version of NOnion this type is IDisposable.

Fixes #181
Fixes #184
Fixes #186
  • Loading branch information
parhamsaremi committed Nov 15, 2022
1 parent 5e0d4ba commit b3d1a72
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion GWallet.Backend.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependency id="NBitcoin.Altcoins" version="3.0.8" />
<dependency id="Nethereum" version="0.95.0--date20210125-0551.git-05a29e9" />
<dependency id="Newtonsoft.Json" version="12.0.2" />
<dependency id="NOnion" version="0.12.0--date20221007-1209.git-b58d305" />
<dependency id="NOnion" version="0.12.0--date20221114-1053.git-d750cfe" />
<dependency id="Portable.BouncyCastle" version="1.8.10" />
<dependency id="SharpRaven" version="2.4.0" />
<dependency id="StreamJsonRpc" version="2.8.21" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="Chaos.NaCl-Portable">
<HintPath>..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\Chaos.NaCl-Portable.dll</HintPath>
<HintPath>..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\Chaos.NaCl-Portable.dll</HintPath>
</Reference>
<Reference Include="FSharpx.Collections">
<HintPath>..\..\packages\FSharpx.Collections.3.0.1\lib\netstandard2.0\FSharpx.Collections.dll</HintPath>
Expand All @@ -94,7 +94,7 @@
</Reference>
<Reference Include="mscorlib" />
<Reference Include="NOnion">
<HintPath>..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\NOnion.dll</HintPath>
<HintPath>..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\NOnion.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion src/GWallet.Backend.Tests.Unit/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<package id="NBitcoin" version="6.0.19" targetFramework="net472" />
<package id="NBitcoin.Altcoins" version="3.0.8" targetFramework="net452" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net472" />
<package id="NOnion" version="0.12.0--date20221007-1209.git-b58d305" targetFramework="net472" />
<package id="NOnion" version="0.12.0--date20221114-1053.git-d750cfe" targetFramework="net472" />
<package id="NUnit" version="2.6.4" targetFramework="net46" />
<package id="NUnitTestAdapter" version="2.1.1" targetFramework="net46" />
<package id="Portable.BouncyCastle" version="1.8.10" targetFramework="net472" />
Expand Down
4 changes: 2 additions & 2 deletions src/GWallet.Backend/GWallet.Backend.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="Chaos.NaCl-Portable">
<HintPath>..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\Chaos.NaCl-Portable.dll</HintPath>
<HintPath>..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\Chaos.NaCl-Portable.dll</HintPath>
</Reference>
<Reference Include="FSharp.Data">
<HintPath>..\..\packages\FSharp.Data.3.0.0\lib\net45\FSharp.Data.dll</HintPath>
Expand Down Expand Up @@ -145,7 +145,7 @@
<HintPath>..\..\packages\Nerdbank.Streams.2.6.81\lib\netstandard2.0\Nerdbank.Streams.dll</HintPath>
</Reference>
<Reference Include="NOnion">
<HintPath>..\..\packages\NOnion.0.12.0--date20221007-1209.git-b58d305\lib\netstandard2.0\NOnion.dll</HintPath>
<HintPath>..\..\packages\NOnion.0.12.0--date20221114-1053.git-d750cfe\lib\netstandard2.0\NOnion.dll</HintPath>
</Reference>
<Reference Include="StreamJsonRpc">
<HintPath>..\..\packages\StreamJsonRpc.2.8.21\lib\netstandard2.0\StreamJsonRpc.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion src/GWallet.Backend/UtxoCoin/TorOperations.fs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module internal TorOperations =
async {
return! FSharpUtil.Retry<TorServiceHost, NOnionException>
(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
})
Expand Down
2 changes: 1 addition & 1 deletion src/GWallet.Backend/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<package id="Nethereum" version="0.95.0--date20210125-0551.git-05a29e9" targetFramework="net461" />
<package id="NETStandard.Library" version="2.0.3" targetFramework="net471" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net472" />
<package id="NOnion" version="0.12.0--date20221007-1209.git-b58d305" targetFramework="net472" />
<package id="NOnion" version="0.12.0--date20221114-1053.git-d750cfe" targetFramework="net472" />
<package id="Portable.BouncyCastle" version="1.8.10" targetFramework="net472" />
<package id="SharpRaven" version="2.4.0" targetFramework="net46" />
<package id="StreamJsonRpc" version="2.8.21" targetFramework="net472" />
Expand Down

0 comments on commit b3d1a72

Please sign in to comment.