Skip to content

Commit

Permalink
.net8 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
IxiAngel committed Jun 13, 2024
1 parent ffda9f6 commit c043b3f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
27 changes: 27 additions & 0 deletions SpixiBot/Meta/Node.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using IXICore;
using IXICore.Meta;
using IXICore.Network;
using IXICore.RegNames;
using IXICore.SpixiBot;
using IXICore.Utils;
using SpixiBot.Network;
Expand Down Expand Up @@ -643,5 +644,31 @@ public override IxiNumber getMinSignerPowDifficulty(ulong blockNum)
// TODO TODO implement this properly
return ConsensusConfig.minBlockSignerPowDifficulty;
}

public override byte[] getBlockHash(ulong blockNum)
{
Block b = getBlockHeader(blockNum);
if (b == null)
{
return null;
}

return b.blockChecksum;
}

public override byte[] calculateRegNameChecksumFromUpdatedDataRecords(byte[] name, List<RegisteredNameDataRecord> dataRecords, ulong sequence, Address nextPkHash)
{
throw new NotImplementedException();
}

public override byte[] calculateRegNameChecksumForRecovery(byte[] name, Address recoveryHash, ulong sequence, Address nextPkHash)
{
throw new NotImplementedException();
}

public override RegisteredNameRecord getRegName(byte[] name, bool useAbsoluteId)
{
throw new NotImplementedException();
}
}
}
8 changes: 3 additions & 5 deletions SpixiBot/SpixiBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
<ApplicationIcon>SpixiBot.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>

<Content Include="html\css\bot\settings.css" />
<Content Include="html\js\bot\settings.js" />
<Content Include="html\js\custom.js" />
Expand All @@ -30,7 +29,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentCommandLineParser" Version="1.4.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="Open.Nat" Version="2.1.0" />
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
<PackageReference Include="sqlite-net-pcl" Version="1.6.292" />
Expand All @@ -40,7 +38,8 @@
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.osx" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.v110_xp" Version="1.1.14" />
<PackageReference Include="SQLitePCLRaw.provider.e_sqlite3.netstandard11" Version="1.1.14" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.0" />
</ItemGroup>
<Import Project="..\..\Ixian-Core\IXICore.projitems" Label="Shared" />
<Target Name="CopyHTMLToOutput" AfterTargets="CoreCompile">
Expand All @@ -53,5 +52,4 @@
<Copy SourceFiles="@(IXIPB1)" DestinationFiles="@(IXIPB1->'$(OutputPath)\html\%(RecursiveDir)%(Filename)%(Extension)')" ContinueOnError="true" />
<Copy SourceFiles="@(IXIPB2)" DestinationFiles="@(IXIPB2->'$(OutputPath)\html\%(RecursiveDir)%(Filename)%(Extension)')" ContinueOnError="true" />
</Target>

</Project>

0 comments on commit c043b3f

Please sign in to comment.