Can't process block 5450030 of T5 testnet #1482

Closed
opened 2025-12-28 17:16:35 +00:00 by sami · 1 comment
Owner

Originally created by @roman-khimov on GitHub (Feb 12, 2025).

Originally assigned to: @AliceInHunterland on GitHub.

Current Behavior

"error": "too many nesting levels" on block receival from peers.

Expected Behavior

Block processed ok.

Possible Solution

Check it against C#, fix.

Steps to Reproduce

Sync testnet with 0.108.0 (or earlier).

Context

The block itself:

{
   "result" : {
      "version" : 0,
      "nonce" : "0B7257941A08AE3E",
      "tx" : [
         {
            "sysfee" : "19857375",
            "script" : "A/BDcahXAAAAEcAfDAFvDBT791FF/5nqzHZJGDryYFyeGVYEUEFifVtS",
            "attributes" : [],
            "signers" : [
               {
                  "account" : "0x16691e04ea102abd0a5221007c9f6a46a1f53ceb",
                  "scopes" : "Global"
               }
            ],
            "witnesses" : [
               {
                  "invocation" : "DEARzXVLrfwcYzwfP8FVx7CkRyp6UMfr0CTSitwIRzqmErrk8wOUaUzBIOFD1HzVrvSmMhzyXhTEgGs0psA+56oS",
                  "verification" : "DCEClXTb8fuPj8pVRzIH8zqe0qW3mtpLzyftsTD/RY6/gMdBVuezJw=="
               }
            ],
            "version" : 0,
            "nonce" : 2,
            "netfee" : "120000",
            "sender" : "NhMo1NkfQJipiaamJAZsKHaSRvVHTwo4Fg",
            "hash" : "0xd95e6cf46153baadd00d031fa7b44a82cc8dcbd2097f09ac14d6783736163c53",
            "size" : 200,
            "validuntilblock" : 5450031
         },
         {
            "hash" : "0xd3c77d36df720ec9c9c12f5497d0e236a11c80664a8847898ca512e4e5c2394f",
            "sender" : "NhMo1NkfQJipiaamJAZsKHaSRvVHTwo4Fg",
            "size" : 208,
            "validuntilblock" : 5450031,
            "version" : 0,
            "nonce" : 10,
            "netfee" : "120000",
            "script" : "BACsmj8sSuiT8D0NAAAAAAARwB8MAW8MFPv3UUX/merMdkkYOvJgXJ4ZVgRQQWJ9W1I=",
            "sysfee" : "19105357",
            "attributes" : [],
            "signers" : [
               {
                  "scopes" : "Global",
                  "account" : "0x16691e04ea102abd0a5221007c9f6a46a1f53ceb"
               }
            ],
            "witnesses" : [
               {
                  "invocation" : "DECzTZ1cCDf+mKqP7hJTBH4bwiV679veDnFQ3/NIMoRR7rQe3Pq4s7vRQX5m81rfaJ2mOErPbkNEJO1GTbm/c6TH",
                  "verification" : "DCEClXTb8fuPj8pVRzIH8zqe0qW3mtpLzyftsTD/RY6/gMdBVuezJw=="
               }
            ]
         },
         {
            "validuntilblock" : 5455789,
            "hash" : "0x550f309ca5d4f120b4cf943d44bfbcdae510d5a74685d12cc5b4a604bfda89a0",
            "sender" : "NNiHoCbPSCp3Siwyhfq5pkNBhedpuJvdmH",
            "size" : 292,
            "attributes" : [],
            "witnesses" : [
               {
                  "verification" : "DCECBSCHPP2UcGkrQYf6c1V07EgOkURFzLjkh/reDy+bjR5BVuezJw==",
                  "invocation" : "DEBepT67tEJ7bBuXqQTB8L3Zb295rcaCbW4fm4FiBoquLeHU0W8T0Dii0kMg+E4ha0J6Zqn8QpLA2BcB6JyLC55P"
               },
               {
                  "verification" : "",
                  "invocation" : ""
               }
            ],
            "signers" : [
               {
                  "account" : "0x355cf54f166d598ddcf0e49dcf90f725edebb21e",
                  "scopes" : "None"
               },
               {
                  "rules" : [
                     {
                        "condition" : {
                           "type" : "And",
                           "expressions" : [
                              {
                                 "hash" : "0x2ba94444d43c9a084a5660982a9f95f43f07422e",
                                 "type" : "CalledByContract"
                              },
                              {
                                 "type" : "Or",
                                 "expressions" : [
                                    {
                                       "type" : "ScriptHash",
                                       "hash" : "0xd2a4cff31913016155e38e474a2c06d08be276cf"
                                    },
                                    {
                                       "hash" : "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5",
                                       "type" : "ScriptHash"
                                    }
                                 ]
                              }
                           ]
                        },
                        "action" : "Allow"
                     }
                  ],
                  "scopes" : "CalledByEntry, WitnessRules",
                  "account" : "0xfc31706cb9918b5f728c72d879699a62f8f036d9"
               }
            ],
            "script" : "AfoAEcAfDAdleGVjdXRlDBRFRpZCD41Sj1G8QoeSR6xSd9aWf0FifVtS",
            "sysfee" : "3788997",
            "netfee" : "38659",
            "version" : 0,
            "nonce" : 1629237194
         }
      ],
      "primary" : 5,
      "time" : 1739370441946,
      "witnesses" : [
         {
            "verification" : "FQwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5+HoOeol/YvtbNgua7bmglAYkGX0T/AQwhAj6bMuqJuU0GbmSbEk/VDjlu6RNp6OKmrhsRwXDQIiVtDCEDQI3NQWOW9keDrFh+oeFZPFfZ/qiAyKahkg6SollHeAYMIQKng0vpsy4pgdFXy1u9OstCz9EepcOxAiTXpE6YxZEPGwwhAroscPWZbzV6QxmHBYWfriz+oT4RcpYoAHcrPViKnUq9F0Ge0Nw6",
            "invocation" : "DEDt58Fpy+LC0MsDuRcE2ndPzM7uxjZaGAnbt/anRsKCjk44YW7rfMwtGkP78wK7GkWlpFQ4VyoboOxODx84E+1EDEAuR2oiz3gwGVAAa7D7WEBOmah2WNEpFkL6au0r6+vvpADsFNbmo5K0rEqhr1SZ/ne56uBHtCBAFAoMT1ygigUQDEAoUCrGxQGSZufGmecjuftSZdYgAGO12A2wePF4SSCeVwmtY3XWy8c1PSO4s2tmTg03WGF555JhjU9v4FMv3X62DEAxbzid5EC/l4k3LrSd5SMucrurXesZmCtUgg/7F1haC8rh/DJw+ZDl3TeHQFQqJGTnxQ3dacOLzigxkgASfmBJDEDJHvTWe79a0qeKgLY6qu5bToQwEWBs/E7LMt40E8B9XeP9u9NkR6Hwi4goeIhph43Z8ipkwz6pc3fs3+3YvQid"
         }
      ],
      "nextconsensus" : "NZHf1NJvz1tvELGLWZjhpb3NqZJFFUYpxT",
      "hash" : "0xc763f41fee95abe4cd2abedc21db63698d33b5beec2d805622d5b12f4e4d4deb",
      "confirmations" : 1321,
      "size" : 1397,
      "index" : 5450030,
      "merkleroot" : "0xf260ef4de41adae18b286cb169312b255e45f5d67887ca462014d4a3756fa8e4",
      "previousblockhash" : "0x2a6ce460dbeae1420571204658c122a0ea08088e00937cef1ab08a1dd5e7c08b",
      "nextblockhash" : "0xbc532bbcf0222a1d19d82dd43c2603b43631d2812461e05713cf3b2e945c99d4"
   },
   "jsonrpc" : "2.0",
   "id" : 5
}

Notice the "Rules" condition.

Regression

Not likely.

Your Environment

  • Version of the product used: 0.108.0
  • Server setup and configuration files used: T5 testnet RPC
  • Operating System and version (uname -a): Debian stable
Originally created by @roman-khimov on GitHub (Feb 12, 2025). Originally assigned to: @AliceInHunterland on GitHub. ## Current Behavior `"error": "too many nesting levels"` on block receival from peers. ## Expected Behavior Block processed ok. ## Possible Solution Check it against C#, fix. ## Steps to Reproduce Sync testnet with 0.108.0 (or earlier). ## Context The block itself: ``` { "result" : { "version" : 0, "nonce" : "0B7257941A08AE3E", "tx" : [ { "sysfee" : "19857375", "script" : "A/BDcahXAAAAEcAfDAFvDBT791FF/5nqzHZJGDryYFyeGVYEUEFifVtS", "attributes" : [], "signers" : [ { "account" : "0x16691e04ea102abd0a5221007c9f6a46a1f53ceb", "scopes" : "Global" } ], "witnesses" : [ { "invocation" : "DEARzXVLrfwcYzwfP8FVx7CkRyp6UMfr0CTSitwIRzqmErrk8wOUaUzBIOFD1HzVrvSmMhzyXhTEgGs0psA+56oS", "verification" : "DCEClXTb8fuPj8pVRzIH8zqe0qW3mtpLzyftsTD/RY6/gMdBVuezJw==" } ], "version" : 0, "nonce" : 2, "netfee" : "120000", "sender" : "NhMo1NkfQJipiaamJAZsKHaSRvVHTwo4Fg", "hash" : "0xd95e6cf46153baadd00d031fa7b44a82cc8dcbd2097f09ac14d6783736163c53", "size" : 200, "validuntilblock" : 5450031 }, { "hash" : "0xd3c77d36df720ec9c9c12f5497d0e236a11c80664a8847898ca512e4e5c2394f", "sender" : "NhMo1NkfQJipiaamJAZsKHaSRvVHTwo4Fg", "size" : 208, "validuntilblock" : 5450031, "version" : 0, "nonce" : 10, "netfee" : "120000", "script" : "BACsmj8sSuiT8D0NAAAAAAARwB8MAW8MFPv3UUX/merMdkkYOvJgXJ4ZVgRQQWJ9W1I=", "sysfee" : "19105357", "attributes" : [], "signers" : [ { "scopes" : "Global", "account" : "0x16691e04ea102abd0a5221007c9f6a46a1f53ceb" } ], "witnesses" : [ { "invocation" : "DECzTZ1cCDf+mKqP7hJTBH4bwiV679veDnFQ3/NIMoRR7rQe3Pq4s7vRQX5m81rfaJ2mOErPbkNEJO1GTbm/c6TH", "verification" : "DCEClXTb8fuPj8pVRzIH8zqe0qW3mtpLzyftsTD/RY6/gMdBVuezJw==" } ] }, { "validuntilblock" : 5455789, "hash" : "0x550f309ca5d4f120b4cf943d44bfbcdae510d5a74685d12cc5b4a604bfda89a0", "sender" : "NNiHoCbPSCp3Siwyhfq5pkNBhedpuJvdmH", "size" : 292, "attributes" : [], "witnesses" : [ { "verification" : "DCECBSCHPP2UcGkrQYf6c1V07EgOkURFzLjkh/reDy+bjR5BVuezJw==", "invocation" : "DEBepT67tEJ7bBuXqQTB8L3Zb295rcaCbW4fm4FiBoquLeHU0W8T0Dii0kMg+E4ha0J6Zqn8QpLA2BcB6JyLC55P" }, { "verification" : "", "invocation" : "" } ], "signers" : [ { "account" : "0x355cf54f166d598ddcf0e49dcf90f725edebb21e", "scopes" : "None" }, { "rules" : [ { "condition" : { "type" : "And", "expressions" : [ { "hash" : "0x2ba94444d43c9a084a5660982a9f95f43f07422e", "type" : "CalledByContract" }, { "type" : "Or", "expressions" : [ { "type" : "ScriptHash", "hash" : "0xd2a4cff31913016155e38e474a2c06d08be276cf" }, { "hash" : "0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", "type" : "ScriptHash" } ] } ] }, "action" : "Allow" } ], "scopes" : "CalledByEntry, WitnessRules", "account" : "0xfc31706cb9918b5f728c72d879699a62f8f036d9" } ], "script" : "AfoAEcAfDAdleGVjdXRlDBRFRpZCD41Sj1G8QoeSR6xSd9aWf0FifVtS", "sysfee" : "3788997", "netfee" : "38659", "version" : 0, "nonce" : 1629237194 } ], "primary" : 5, "time" : 1739370441946, "witnesses" : [ { "verification" : "FQwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5+HoOeol/YvtbNgua7bmglAYkGX0T/AQwhAj6bMuqJuU0GbmSbEk/VDjlu6RNp6OKmrhsRwXDQIiVtDCEDQI3NQWOW9keDrFh+oeFZPFfZ/qiAyKahkg6SollHeAYMIQKng0vpsy4pgdFXy1u9OstCz9EepcOxAiTXpE6YxZEPGwwhAroscPWZbzV6QxmHBYWfriz+oT4RcpYoAHcrPViKnUq9F0Ge0Nw6", "invocation" : "DEDt58Fpy+LC0MsDuRcE2ndPzM7uxjZaGAnbt/anRsKCjk44YW7rfMwtGkP78wK7GkWlpFQ4VyoboOxODx84E+1EDEAuR2oiz3gwGVAAa7D7WEBOmah2WNEpFkL6au0r6+vvpADsFNbmo5K0rEqhr1SZ/ne56uBHtCBAFAoMT1ygigUQDEAoUCrGxQGSZufGmecjuftSZdYgAGO12A2wePF4SSCeVwmtY3XWy8c1PSO4s2tmTg03WGF555JhjU9v4FMv3X62DEAxbzid5EC/l4k3LrSd5SMucrurXesZmCtUgg/7F1haC8rh/DJw+ZDl3TeHQFQqJGTnxQ3dacOLzigxkgASfmBJDEDJHvTWe79a0qeKgLY6qu5bToQwEWBs/E7LMt40E8B9XeP9u9NkR6Hwi4goeIhph43Z8ipkwz6pc3fs3+3YvQid" } ], "nextconsensus" : "NZHf1NJvz1tvELGLWZjhpb3NqZJFFUYpxT", "hash" : "0xc763f41fee95abe4cd2abedc21db63698d33b5beec2d805622d5b12f4e4d4deb", "confirmations" : 1321, "size" : 1397, "index" : 5450030, "merkleroot" : "0xf260ef4de41adae18b286cb169312b255e45f5d67887ca462014d4a3756fa8e4", "previousblockhash" : "0x2a6ce460dbeae1420571204658c122a0ea08088e00937cef1ab08a1dd5e7c08b", "nextblockhash" : "0xbc532bbcf0222a1d19d82dd43c2603b43631d2812461e05713cf3b2e945c99d4" }, "jsonrpc" : "2.0", "id" : 5 } ``` Notice the "Rules" condition. ## Regression Not likely. ## Your Environment * Version of the product used: 0.108.0 * Server setup and configuration files used: T5 testnet RPC * Operating System and version (`uname -a`): Debian stable
sami 2025-12-28 17:16:35 +00:00
  • closed this issue
  • added the
    bug
    S4
    I4
    U0
    labels
Author
Owner

@mialbu commented on GitHub (Feb 13, 2025):

This issue is blocking us twofold:

  • the update process of the bridge to Neo X is halted and blocked until this issue is fixed. We cannot continue with our update plan due to this.
  • because the bridge update process is blocked and the bridge is paused, this further blocks our development/testing of GrantShares expansion (RequestForFunds proposals) to Neo X.

fyi @roman-khimov @AliceInHunterland

@mialbu commented on GitHub (Feb 13, 2025): This issue is blocking us twofold: - the update process of the bridge to Neo X is halted and blocked until this issue is fixed. We cannot continue with our update plan due to this. - because the bridge update process is blocked and the bridge is paused, this further blocks our development/testing of GrantShares expansion (RequestForFunds proposals) to Neo X. fyi @roman-khimov @AliceInHunterland
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1482
No description provided.