Skip to content

Commit 72aa513

Browse files
authored
Using the improved Uint256 form mithrilshards (#86)
* initil commit * Optimize constructors and little endian * Fix tests * Style fixes * Fix mempool comment * Reverse little endian on target not source * benchmark uint256
1 parent ae37d6d commit 72aa513

20 files changed

Lines changed: 1525 additions & 1005 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,4 @@ src/.idea/.idea.Stratis.Bitcoin.FullNode/.idea/
263263
.DS_Store
264264

265265
*.iml
266+
/src/Blockcore.Benchmark/BenchmarkDotNet.Artifacts/results

src/Blockcore.Benchmark/Blockcore.Benchmark.csproj

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp2.2</TargetFramework>
6-
<RuntimeFrameworkVersion>2.2.7</RuntimeFrameworkVersion>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
<RuntimeFrameworkVersion>3.1.0</RuntimeFrameworkVersion>
77
</PropertyGroup>
88

99
<ItemGroup>
@@ -13,35 +13,10 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="BenchmarkDotNet" Version="0.11.4" />
17-
<PackageReference Include="FASTER" Version="2019.3.16.1" />
18-
<PackageReference Include="LiteDB" Version="4.1.4" />
16+
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
1917
</ItemGroup>
2018

2119
<ItemGroup>
2220
<ProjectReference Include="..\NBitcoin\NBitcoin.csproj" />
23-
<ProjectReference Include="..\Blockcore.Features.Api\Blockcore.Features.Api.csproj" />
24-
<ProjectReference Include="..\Blockcore.Features.BlockStore\Blockcore.Features.BlockStore.csproj" />
25-
<ProjectReference Include="..\Blockcore.Features.ColdStaking\Blockcore.Features.ColdStaking.csproj" />
26-
<ProjectReference Include="..\Blockcore.Features.Consensus\Blockcore.Features.Consensus.csproj" />
27-
<ProjectReference Include="..\Blockcore.Features.Dns\Blockcore.Features.Dns.csproj" />
28-
<ProjectReference Include="..\Blockcore.Features.LightWallet\Blockcore.Features.LightWallet.csproj" />
29-
<ProjectReference Include="..\Blockcore.Features.MemoryPool\Blockcore.Features.MemoryPool.csproj" />
30-
<ProjectReference Include="..\Blockcore.Features.Miner\Blockcore.Features.Miner.csproj" />
31-
<ProjectReference Include="..\Blockcore.Features.Notifications\Blockcore.Features.Notifications.csproj" />
32-
<ProjectReference Include="..\Blockcore.Features.PoA\Blockcore.Features.PoA.csproj" />
33-
<ProjectReference Include="..\Blockcore.Features.RPC\Blockcore.Features.RPC.csproj" />
34-
<ProjectReference Include="..\Blockcore.Features.SmartContracts\Blockcore.Features.SmartContracts.csproj" />
35-
<ProjectReference Include="..\Blockcore.Features.Wallet\Blockcore.Features.Wallet.csproj" />
36-
<ProjectReference Include="..\Blockcore.Networks\Blockcore.Networks.csproj" />
37-
<ProjectReference Include="..\Blockcore\Blockcore.csproj" />
38-
<ProjectReference Include="..\Stratis.Features.FederatedPeg\Stratis.Features.FederatedPeg.csproj" />
39-
<ProjectReference Include="..\Stratis.Sidechains.Networks\Stratis.Sidechains.Networks.csproj" />
40-
<ProjectReference Include="..\Stratis.SmartContracts.CLR.Validation\Stratis.SmartContracts.CLR.Validation.csproj" />
41-
<ProjectReference Include="..\Stratis.SmartContracts.CLR\Stratis.SmartContracts.CLR.csproj" />
42-
<ProjectReference Include="..\Stratis.SmartContracts.Core\Stratis.SmartContracts.Core.csproj" />
43-
<ProjectReference Include="..\Stratis.SmartContracts.Networks\Stratis.SmartContracts.Networks.csproj" />
44-
<ProjectReference Include="..\Stratis.SmartContracts.RuntimeObserver\Stratis.SmartContracts.RuntimeObserver.csproj" />
4521
</ItemGroup>
46-
47-
</Project>
22+
</Project>

src/Blockcore.Benchmark/Infrastructure/Faster/FasterStorageTypes.cs

Lines changed: 0 additions & 162 deletions
This file was deleted.

src/Blockcore.Benchmark/Infrastructure/LiteDb/LiteDbStorageTypes.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/Blockcore.Benchmark/NetworkBenchmarkBase.cs

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)