Skip to content

Commit

Permalink
xs2c-0.5.2
Browse files Browse the repository at this point in the history
fixed compatibility with new core
  • Loading branch information
IxiAngel committed Apr 3, 2024
1 parent f2c235d commit 0525324
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion IxianS2/Meta/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Config
public static string externalIp = "";

// Read-only values
public static readonly string version = "xs2c-0.5.1"; // S2 Node version
public static readonly string version = "xs2c-0.5.2"; // S2 Node version

public static readonly string checkVersionUrl = "https://www.ixian.io/s2-update.txt";
public static readonly int checkVersionSeconds = 6 * 60 * 60; // 6 hours
Expand Down
27 changes: 27 additions & 0 deletions IxianS2/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.Utils;
using S2.Network;
using System;
Expand Down Expand Up @@ -593,5 +594,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();
}
}
}

0 comments on commit 0525324

Please sign in to comment.