Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State difference with C# node at mainnet's block 2087865 #740

Closed
roman-khimov opened this issue Mar 10, 2020 · 0 comments · Fixed by #742
Closed

State difference with C# node at mainnet's block 2087865 #740

roman-khimov opened this issue Mar 10, 2020 · 0 comments · Fixed by #742
Assignees
Labels
bug Something isn't working
Milestone

Comments

@roman-khimov
Copy link
Member

Ours:

 {
  "block": 2087865,
  "size": 12,
  "storage": [
   {
    "state": "Added",
    "key": "aa67d0447c61bdddc4d1690d2269d772f9c37795dee3c08adb608174c565aa131fe9bea30062975e030000000000000000000000000c",
    "value": "000500fe7c6c0400"
   },
   {
    "state": "Added",
    "key": "aa67d0447c61bdddc4d1690d2269d772f9c37795065d996f6de8d8c78576e9672a77765e00bb5606a70000000000000000000000000c",
    "value": "000500fe7c6c0400"
   },
   {
    "state": "Added",
    "key": "aa67d0447c61bdddc4d1690d2269d772f9c37795e0c232374cb418787e52e053b8e7873300383ba5860000000000000000000000000c",
    "value": "000500fe7c6c0400"
   },
   {
    "state": "Changed",
    "key": "fb1c540417067c270dee32f21023aa8b9b71abce235a717ed7ed18a43de47499c3d05b8d004a4bcf3a0000000000000000000000000c",
    "value": "0007627c84ea31370100"
   },
   {
    "state": "Added",
    "key": "aa67d0447c61bdddc4d1690d2269d772f9c37795577dc01c1fc7f9879c81713ed49e109d006389cddd0000000000000000000000000c",
    "value": "000500fe7c6c0400"
   },
   {
    "state": "Added",
    "key": "fb1c540417067c270dee32f21023aa8b9b71abce4f2300f85df21f49d84ef3ab8edc7730000847a54a0000000000000000000000000c",
    "value": "0004002d310100"
   },
   {
    "state": "Changed",
    "key": "aa67d0447c61bdddc4d1690d2269d772f9c3779545fc40a091bd0de5e5408e3dbf6b02390019a6f7d90000000000000000000000000c",
    "value": "0007ce62aea0d0520100"
   },
   {
    "state": "Changed",
    "key": "fb1c540417067c270dee32f21023aa8b9b71abce65a8c305dd77da27b92ee2588e59459400534d16be0000000000000000000000000c",
    "value": "000480f0fa0200"
   },
   {
    "state": "Changed",
    "key": "fb1c540417067c270dee32f21023aa8b9b71abcec08633ada9affcfc1b1027876b85a69c00a65b7a1d0000000000000000000000000c",
    "value": "000500721dde2d00"
   },
   {
    "state": "Added",
    "key": "aa67d0447c61bdddc4d1690d2269d772f9c37795702e07e2d999664b862c033df8d459d3004e7b08d90000000000000000000000000c",
    "value": "000500fe7c6c0400"
   },
   {
    "state": "Changed",
    "key": "fb1c540417067c270dee32f21023aa8b9b71abce8cc42dbd40485ab95cca291f122cdd3a00658707970000000000000000000000000c",
    "value": "000500ac42060100"
   },
   {
    "state": "Deleted",
    "key": "fb1c540417067c270dee32f21023aa8b9b71abceb0943fee8aef4093a640d6b76a64d99100d9dc7f700000000000000000000000000c"
   }
  ]
 },

Theirs:

   {
      "size" : 15,
      "storage" : [
         {
            "state" : "Changed",
            "value" : "0007ce62aea0d0520100",
            "key" : "aa67d0447c61bdddc4d1690d2269d772f9c3779545fc40a091bd0de5e5408e3dbf6b02390019a6f7d90000000000000000000000000c"
         },
         {
            "state" : "Added",
            "value" : "000500fe7c6c0400",
            "key" : "aa67d0447c61bdddc4d1690d2269d772f9c37795e0c232374cb418787e52e053b8e7873300383ba5860000000000000000000000000c"
         },
         {
            "state" : "Deleted",
            "key" : "fb1c540417067c270dee32f21023aa8b9b71abceb0943fee8aef4093a640d6b76a64d99100d9dc7f700000000000000000000000000c"
         },
         {
            "state" : "Added",
            "value" : "0004002d310100",
            "key" : "fb1c540417067c270dee32f21023aa8b9b71abce4f2300f85df21f49d84ef3ab8edc7730000847a54a0000000000000000000000000c"
         },
         {
            "value" : "000500fe7c6c0400",
            "key" : "aa67d0447c61bdddc4d1690d2269d772f9c37795577dc01c1fc7f9879c81713ed49e109d006389cddd0000000000000000000000000c",
            "state" : "Added"
         },
         {
            "key" : "aa67d0447c61bdddc4d1690d2269d772f9c37795702e07e2d999664b862c033df8d459d3004e7b08d90000000000000000000000000c",
            "value" : "000500fe7c6c0400",
            "state" : "Added"
         },
         {
            "key" : "aa67d0447c61bdddc4d1690d2269d772f9c37795dee3c08adb608174c565aa131fe9bea30062975e030000000000000000000000000c",
            "value" : "000500fe7c6c0400",
            "state" : "Added"
         },
         {
            "state" : "Changed",
            "key" : "fb1c540417067c270dee32f21023aa8b9b71abce235a717ed7ed18a43de47499c3d05b8d004a4bcf3a0000000000000000000000000c",
            "value" : "0007627c84ea31370100"
         },
         {
            "state" : "Changed",
            "key" : "fb1c540417067c270dee32f21023aa8b9b71abce8cc42dbd40485ab95cca291f122cdd3a00658707970000000000000000000000000c",
            "value" : "000500ac42060100"
         },
         {
            "value" : "000480f0fa0200",
            "key" : "fb1c540417067c270dee32f21023aa8b9b71abce65a8c305dd77da27b92ee2588e59459400534d16be0000000000000000000000000c",
            "state" : "Changed"
         },
         {
            "state" : "Changed",
            "value" : "000500721dde2d00",
            "key" : "fb1c540417067c270dee32f21023aa8b9b71abcec08633ada9affcfc1b1027876b85a69c00a65b7a1d0000000000000000000000000c"
         },
         {
            "key" : "dd2b538e2a0c1db1ae5061c15be14f916bd1e678945b1dc6c2afb758b05c0e192c3bf2ca0060e94fc40000000000000000000000000c",
            "value" : "000620ccfe39e60800",
            "state" : "Changed"
         },
         {
            "key" : "dd2b538e2a0c1db1ae5061c15be14f916bd1e6781f559d5eea8ca22910a3feb0e4637c0f002e71c50e0000000000000000000000000c",
            "value" : "000400e1f50500",
            "state" : "Added"
         },
         {
            "value" : "000400e1f50500",
            "key" : "1f559d5eea8ca22910a3feb0e4637c0f2e71c50e945b1dc6c2afb758b05c0e192c3bf2ca0060e94fc4dd2b538e2a0c1db1ae5061c1005be14f916bd1e678000000000000000008",
            "state" : "Added"
         },
         {
            "key" : "aa67d0447c61bdddc4d1690d2269d772f9c37795065d996f6de8d8c78576e9672a77765e00bb5606a70000000000000000000000000c",
            "value" : "000500fe7c6c0400",
            "state" : "Added"
         }
      ],
      "block" : 2087865
   },

Failing TX:

{
   "result" : {
      "txid" : "0x4fb852c96d2647354daf835f85314273b1313f15cb64a9cda16e9ae4ca6efa3b",
      "executions" : [
         {
            "stack" : [
               {
                  "type" : "Array",
                  "value" : [
                     {
                        "type" : "ByteArray",
                        "value" : "945b1dc6c2afb758b05c0e192c3bf2ca60e94fc4"
                     },
                     {
                        "type" : "ByteArray",
                        "value" : "1f559d5eea8ca22910a3feb0e4637c0f2e71c50e"
                     },
                     {
                        "value" : "00e1f505",
                        "type" : "ByteArray"
                     }
                  ]
               },
               {
                  "type" : "ByteArray",
                  "value" : "7472616e73666572"
               },
               {
                  "value" : "dd2b538e2a0c1db1ae5061c15be14f916bd1e678",
                  "type" : "ByteArray"
               }
            ],
            "vmstate" : "FAULT",
            "contract" : "0xf7b3d29426b1d5f9a26c5024301ddde847520556",
            "trigger" : "Application",
            "gas_consumed" : "0.721",
            "notifications" : []
         }
      ]
   },
   "jsonrpc" : "2.0",
   "id" : 1
}

Proper log:

{
   "id" : 1,
   "result" : {
      "executions" : [
         {
            "contract" : "0x56055247e8dd1d3024506ca2f9d5b12694d2b3f7",
            "notifications" : [
               {
                  "contract" : "0x78e6d16b914fe15bc16150aeb11d0c2a8e532bdd",
                  "state" : {
                     "type" : "Array",
                     "value" : [
                        {
                           "value" : "7472616e73666572",
                           "type" : "ByteArray"
                        },
                        {
                           "type" : "ByteArray",
                           "value" : "945b1dc6c2afb758b05c0e192c3bf2ca60e94fc4"
                        },
                        {
                           "value" : "1f559d5eea8ca22910a3feb0e4637c0f2e71c50e",
                           "type" : "ByteArray"
                        },
                        {
                           "type" : "ByteArray",
                           "value" : "00e1f505"
                        }
                     ]
                  }
               }
            ],
            "vmstate" : "HALT",
            "trigger" : "Application",
            "gas_consumed" : "4.897",
            "stack" : [
               {
                  "value" : "1",
                  "type" : "Integer"
               }
            ]
         }
      ],
      "txid" : "0x4fb852c96d2647354daf835f85314273b1313f15cb64a9cda16e9ae4ca6efa3b"
   },
   "jsonrpc" : "2.0"
}
@roman-khimov roman-khimov added the bug Something isn't working label Mar 10, 2020
@roman-khimov roman-khimov added this to the v0.74.0 milestone Mar 10, 2020
@roman-khimov roman-khimov self-assigned this Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant