Concordium / concordium-misc-tools

A collection of small tools with a well-defined purpose
Apache License 2.0
4 stars 6 forks source link

State-Compare Tool reports different order of scheduled transfer hashes as error #124

Closed mh-concordium closed 9 months ago

mh-concordium commented 9 months ago

Bug Description Comparing the state in the last block of P4 and the first block of P5, the tool reports differences. Looking closer at the differences, it looks like a list of scheduled transfers has a different order of hashes.

Steps to Reproduce ./concordium-state-compare --block1 34e1074da9be14e16b3dd538985732a350ebc1283b5cb060b0cae85021a34e86 --block2 568589c9f5b3a3989c24d4c916bc2417a64c6dff6ec987595349c551a829d332

Expected Result No errors reported for the difference in order of the hashes of scheduled transfers.

Actual Result

Account 3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE differs. It does have stake in both 34e1074da9be14e16b3dd538985732a350ebc1283b5cb060b0cae85021a34e86 and 568589c9f5b3a3989c24d4c916bc2417a64c6dff6ec987595349c551a829d332.
Account 3oTmYTDG683bJvhMBCZd29SPcwpPsKmF8wc7XDL9zrsqpXC7mq differs. It does not have stake either in 34e1074da9be14e16b3dd538985732a350ebc1283b5cb060b0cae85021a34e86 or 568589c9f5b3a3989c24d4c916bc2417a64c6dff6ec987595349c551a829d332.
Account 4VYm2qx7dViwhqobzznLBM4oeixZxDmWZ6pYCckczXePJ4ZvdZ differs. It does have stake in both 34e1074da9be14e16b3dd538985732a350ebc1283b5cb060b0cae85021a34e86 and 568589c9f5b3a3989c24d4c916bc2417a64c6dff6ec987595349c551a829d332.
Account 4qL7HmpqdKpYufCV7EvL1WnHVowy1CrTQS7jfYgef5stzpftwS differs. It does have stake in both 34e1074da9be14e16b3dd538985732a350ebc1283b5cb060b0cae85021a34e86 and 568589c9f5b3a3989c24d4c916bc2417a64c6dff6ec987595349c551a829d332.

Looking at the account 3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE:

PS C:\test> cc account show 3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE --block 34e1074da9be14e16b3dd538985732a350ebc1283b5cb060b0cae85021a34e86
Local names:
Address:                3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE
Balance:                691410186.520074 CCD
Release schedule:       total 344657518.153854 CCD
   Thu,  5 Jan 2023 21:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
   Sun,  5 Feb 2023 21:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
   Sun,  5 Mar 2023 21:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
   Wed,  5 Apr 2023 20:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
   Fri,  5 May 2023 20:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
   Mon,  5 Jun 2023 20:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
   Wed,  5 Jul 2023 20:00:00 UTC:               49236788.307708 CCD scheduled by the transactions: bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254, 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560.
PS C:\test> cc account show 3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE --block 568589c9f5b3a3989c24d4c916bc2417a64c6dff6ec987595349c551a829d332
Local names:
Address:                3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE
Balance:                691410186.520074 CCD
Release schedule:       total 344657518.153854 CCD
   Thu,  5 Jan 2023 21:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.
   Sun,  5 Feb 2023 21:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.
   Sun,  5 Mar 2023 21:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.
   Wed,  5 Apr 2023 20:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.
   Fri,  5 May 2023 20:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.
   Mon,  5 Jun 2023 20:00:00 UTC:               49236788.307691 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.
   Wed,  5 Jul 2023 20:00:00 UTC:               49236788.307708 CCD scheduled by the transactions: 65f7d29f7096c1adc2cc2b9d8acb97809a0d90456e59919c8d1385389a8df560, bef0b4a60e4556b7f2e34c2863b96fa977db9229523709c401c1f02b6ec93254.

Versions