Open AliceInHunterland opened 1 week ago
I run the node locally on fresh master (ff15e39363ea44cbe337f493c434304de38b2382), got no diff:
anna@kiwi:~/Documents/GitProjects/nspcc-dev/neo-go$ go run ./scripts/compare-states/compare-states.go --ignore-height http://localhost:20332 http://seed1t5.neo.org:20332
at 0: 62fd8ff9b0543aea352257db5b00bbb01d1bc0d2cc665e1f24cf5de0d16ebc7b vs 62fd8ff9b0543aea352257db5b00bbb01d1bc0d2cc665e1f24cf5de0d16ebc7b
at 58273: 30de25edabe594dbf6d8790724cc7e5d37b1341043a4ff65b62e2085764005c2 vs 30de25edabe594dbf6d8790724cc7e5d37b1341043a4ff65b62e2085764005c2
Are you sure your DB is not malformed? Save the node's DB to a different directory and rerun node from clear DB, check if this problem is reproduced.
Also attach application logs for block 1 and block 1 itself got from both C# seed and your node.
My DB could be malformed as I was testing Blockfetcher with several interruptions. And yes, I am rerunning it now (second time)- still no error.
I was testing Blockfetcher with several interruptions.
Blockfetcher must not break the DB in any way but TBH, I don't see how it's possible, because Blockfetcher is just an alternative source of blocks for the node. But let's keep this issue open, just in case.
(base) ekaterinapavlova@MacBook-Air-4 neo-go % curl -X POST http://localhost:20332 -H 'Content-Type: application/json' -d '{
"jsonrpc": "2.0",
"method": "getblock",
"params": ["0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac", 1],
"id": 1
}'| json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1528 100 1372 100 156 110k 12913 --:--:-- --:--:-- --:--:-- 135k
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : {
"confirmations" : 5024811,
"hash" : "0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac",
"index" : 1,
"merkleroot" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nextblockhash" : "0xc77f88ea63c593a045e74ad041d7d343ec91eacc1a5ed2cc7447b60ed4bde1ed",
"nextconsensus" : "NZHf1NJvz1tvELGLWZjhpb3NqZJFFUYpxT",
"nonce" : "220F1C0AE004D552",
"previousblockhash" : "0x9d3276785e7306daf59a3f3b9e31912c095598bbfb8a4476b821b0e59be4c57a",
"primary" : 0,
"size" : 697,
"time" : 1650637687704,
"tx" : [],
"version" : 0,
"witnesses" : [
{
"invocation" : "DECKcAUgm3Wr/U4aw52mVqheobvslZNtdyi8vac2zPVfCyvXLVZzkxe4ZqLF6qT01xX3efMU8eP5a8X7Ee8ilhXpDED+/dpsuuck9zkp7EF3vvADzXX6UQisEKPDpFFTsDrBfTpFN+O7+PKZEstHzFkTDnhggPiXAs6RNpTCRlpX+bGFDEDI4wMpE94KTKEuozDVOxbp7izVB2bpHJoPp30J3ednoXooVQTLRdYa7jMakNdG5lgAcEAUYjQnvosCFsTQHXBwDEDp6V6z1aLR45CteSCyTF0/hT4rrzqKw52FBGXIz6OtFH9bDdpfd2+sSYCRiBTI9roze0EZbZOsjyDD8IQTA+jbDECRQHx7dVyHA8nXXaZjJocSNVSPVDRNAdZHEXy+zftVSdNL50ogbybxqEXg2SNjqOsreCnyS5B+xCNIDofcrCJd",
"verification" : "FQwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5+HoOeol/YvtbNgua7bmglAYkGX0T/AQwhAj6bMuqJuU0GbmSbEk/VDjlu6RNp6OKmrhsRwXDQIiVtDCEDQI3NQWOW9keDrFh+oeFZPFfZ/qiAyKahkg6SollHeAYMIQKng0vpsy4pgdFXy1u9OstCz9EepcOxAiTXpE6YxZEPGwwhAroscPWZbzV6QxmHBYWfriz+oT4RcpYoAHcrPViKnUq9F0Ge0Nw6"
}
]
}
}
(base) ekaterinapavlova@MacBook-Air-4 neo-go % curl -X POST http://seed1t5.neo.org:20332 -H 'Content-Type: application/json' -d '{
"jsonrpc": "2.0",
"method": "getblock",
"params": ["0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac", 1],
"id": 1
}'| json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1582 0 1426 100 156 1561 170 --:--:-- --:--:-- --:--:-- 1732
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : {
"confirmations" : 5024819,
"hash" : "0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac",
"index" : 1,
"merkleroot" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nextblockhash" : "0xc77f88ea63c593a045e74ad041d7d343ec91eacc1a5ed2cc7447b60ed4bde1ed",
"nextconsensus" : "NZHf1NJvz1tvELGLWZjhpb3NqZJFFUYpxT",
"nonce" : "220F1C0AE004D552",
"previousblockhash" : "0x9d3276785e7306daf59a3f3b9e31912c095598bbfb8a4476b821b0e59be4c57a",
"primary" : 0,
"size" : 697,
"time" : 1650637687704,
"tx" : [],
"version" : 0,
"witnesses" : [
{
"invocation" : "DECKcAUgm3Wr/U4aw52mVqheobvslZNtdyi8vac2zPVfCyvXLVZzkxe4ZqLF6qT01xX3efMU8eP5a8X7Ee8ilhXpDED+/dpsuuck9zkp7EF3vvADzXX6UQisEKPDpFFTsDrBfTpFN+O7+PKZEstHzFkTDnhggPiXAs6RNpTCRlpX+bGFDEDI4wMpE94KTKEuozDVOxbp7izVB2bpHJoPp30J3ednoXooVQTLRdYa7jMakNdG5lgAcEAUYjQnvosCFsTQHXBwDEDp6V6z1aLR45CteSCyTF0/hT4rrzqKw52FBGXIz6OtFH9bDdpfd2+sSYCRiBTI9roze0EZbZOsjyDD8IQTA+jbDECRQHx7dVyHA8nXXaZjJocSNVSPVDRNAdZHEXy+zftVSdNL50ogbybxqEXg2SNjqOsreCnyS5B+xCNIDofcrCJd",
"verification" : "FQwhAwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKiDCEDAgXpzvrqWh38WAryDI1aokaLsBSPGl5GBfxiLIDmBLoMIQIUuvDO6jpm8X5+HoOeol/YvtbNgua7bmglAYkGX0T/AQwhAj6bMuqJuU0GbmSbEk/VDjlu6RNp6OKmrhsRwXDQIiVtDCEDQI3NQWOW9keDrFh+oeFZPFfZ/qiAyKahkg6SollHeAYMIQKng0vpsy4pgdFXy1u9OstCz9EepcOxAiTXpE6YxZEPGwwhAroscPWZbzV6QxmHBYWfriz+oT4RcpYoAHcrPViKnUq9F0Ge0Nw6"
}
]
}
}
(base) ekaterinapavlova@MacBook-Air-4 neo-go % curl -X POST http://localhost:20332 -H 'Content-Type: application/json' -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getapplicationlog",
"params": ["0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac"]
}' | json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 725 100 575 100 150 76340 19915 --:--:-- --:--:-- --:--:-- 101k
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : {
"blockhash" : "0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac",
"executions" : [
{
"exception" : null,
"gasconsumed" : "0",
"notifications" : [],
"stack" : [],
"trigger" : "OnPersist",
"vmstate" : "HALT"
},
{
"exception" : null,
"gasconsumed" : "0",
"notifications" : [
{
"contract" : "0xd2a4cff31913016155e38e474a2c06d08be276cf",
"eventname" : "Transfer",
"state" : {
"type" : "Array",
"value" : [
{
"type" : "Any"
},
{
"type" : "ByteString",
"value" : "gSvnpwgsmEL8Ks76QRi4vFpbkYs="
},
{
"type" : "Integer",
"value" : "50000000"
}
]
}
}
],
"stack" : [],
"trigger" : "PostPersist",
"vmstate" : "HALT"
}
]
}
}
(base) ekaterinapavlova@MacBook-Air-4 neo-go % curl -X POST http://seed1t5.neo.org:20332 -H 'Content-Type: application/json' -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getapplicationlog",
"params": ["0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac"]
}' | json_pp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 690 0 540 100 150 1436 398 --:--:-- --:--:-- --:--:-- 1835
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : {
"blockhash" : "0x577ee5cf7c589f608937287f11da965c0462a8fae77f29959c834cbce38cacac",
"executions" : [
{
"gasconsumed" : "0",
"notifications" : [],
"stack" : [],
"trigger" : "OnPersist",
"vmstate" : "HALT"
},
{
"gasconsumed" : "0",
"notifications" : [
{
"contract" : "0xd2a4cff31913016155e38e474a2c06d08be276cf",
"eventname" : "Transfer",
"state" : {
"type" : "Array",
"value" : [
{
"type" : "Any"
},
{
"type" : "ByteString",
"value" : "gSvnpwgsmEL8Ks76QRi4vFpbkYs="
},
{
"type" : "Integer",
"value" : "50000000"
}
]
}
}
],
"stack" : [],
"trigger" : "PostPersist",
"vmstate" : "HALT"
}
]
}
}
Don't see any difference in application log. How about the contract storage state changes for the same block?
Current Behavior
Different state found.
Expected Behavior
Possible Solution
Steps to Reproduce
Context
Regression
Your Environment
uname -a
):