Skip to content

Commit

Permalink
temporary txid sorting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IxiAngel committed Aug 6, 2022
1 parent 6ecbd5c commit 7e14edc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IxianDLT/Block/BlockProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,7 @@ private void generateNewBlockTransactions(ulong block_num, int block_version)
IxiNumber total_amount = 0;

List<Transaction> unapplied_transactions = TransactionPool.getUnappliedTransactions().ToList<Transaction>();
unapplied_transactions.Sort((x, y) => x.blockHeight.CompareTo(y.blockHeight)); // TODO add fee/weight
unapplied_transactions = unapplied_transactions.OrderBy(x => x.id, new ByteArrayComparer()).ToList(); // TODO add fee/weight

// TODO TODO optimize this
List<Transaction> pool_transactions = new List<Transaction>();
Expand Down
2 changes: 1 addition & 1 deletion IxianDLT/Meta/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static string dataFolderBlocks
public static ulong forceSyncToBlock = 0;

// Read-only values
public static readonly string version = "xdc-0.9.0d"; // DLT Node version
public static readonly string version = "xdc-0.9.0e"; // DLT Node version

public static readonly string checkVersionUrl = "https://www.ixian.io/update.txt";
public static readonly int checkVersionSeconds = 6 * 60 * 60; // 6 hours
Expand Down

0 comments on commit 7e14edc

Please sign in to comment.