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

Stateroot mismatch at testnet's 180464 #2021

Closed
roman-khimov opened this issue Jun 23, 2021 · 2 comments · Fixed by #2026
Closed

Stateroot mismatch at testnet's 180464 #2021

roman-khimov opened this issue Jun 23, 2021 · 2 comments · Fixed by #2026
Assignees
Labels
bug Something isn't working
Milestone

Comments

@roman-khimov
Copy link
Member

There is one transaction (0xc88cc78efb1854978d24ddbbfe8dea731141c39e9c735b484cf101ece26203fe) there that works without any issues, but:

2021-06-20T17:26:02.356Z        ERROR   can't add SV-signed state root  {"error": "stateroot mismatch at block 180464: abf6b8a1589bda54423a241925df83a157c437a9293d706327c356fca25680b6 vs 96a878d57b98b8eae785d0db987f12727ae1860f402fbeb30237e53551d7988f"}
@roman-khimov roman-khimov added the bug Something isn't working label Jun 23, 2021
@roman-khimov roman-khimov added this to the v0.96.0 milestone Jun 23, 2021
@fyrchik
Copy link
Contributor

fyrchik commented Jun 28, 2021

This is a deploy transaction with Extra field in the manifest. We save it unchanged (using json.RawMessage), while C# node unmarshals it to object and marshals again without indentation https://github.com/neo-project/neo/blob/master/src/neo/SmartContract/Manifest/ContractManifest.cs#L90 .
The problem occurs because Extra field of this manifest contains spaces:

{
        "Author": "77696c6c",
        "Email": "[email protected]",
        "Description": "Lyrebird USD Token"
    }

I will check if this is indeed the case. If so, it is better to fix on C# side in future, but for current release we can try some ad-hoc marshaling scheme, maybe reuse orderded maps from oracle filters.

@roman-khimov
Copy link
Member Author

Hi, neo-project/neo#2345.

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.

2 participants