pocketnetteam / pocketnet.core

Decentralized social network based on the blockchain
https://pocketnet.app
Apache License 2.0
109 stars 28 forks source link

Possible new/old social consensus bug? SocialConsensus validating failed with result 47 for block #616

Closed the-real-vortex-v closed 7 months ago

the-real-vortex-v commented 9 months ago

Describe the bug A clear and concise description of what the bug is.

Staking has stopped for multiple nodes and netstake weight is down to around 900000.

Possible social consensus bug?

To Reproduce Steps to reproduce the behavior:

run node. get error.

Expected behavior stakeing should be automatic. I was getting around 8 to 10 a day and netstakeweight was around 3 or 4 million. Now it's 900 thousand and there have been no staking since yesterday. It's rather unusual. At this difficulty etc it should be at least 10 or so stakes for half a day.

Screenshots No screen shots but there's some logs:

Pocketnet Core version 0.21.3 (release build)

2023-10-21T17:25:17Z +++ Block connected to chain: 2458645 BH: ace0d7fb48ccda6e832fc6b0d8ac8f04cf7a392501139c97f9d7adcc1c835ac0 2023-10-21T17:37:22Z Potential stale tip detected, will try using extra outbound peer (last tip update: 725 seconds ago) 2023-10-21T17:37:53Z New outbound peer connected: version: 70016, blocks=2458645, peer=618, peeraddr=88.216.164.30:37070 (full-relay) 2023-10-21T17:47:25Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1328 seconds ago) 2023-10-21T17:47:26Z New outbound peer connected: version: 70016, blocks=2458645, peer=619, peeraddr=185.9.187.123:37070 (full-relay) 2023-10-21T17:57:30Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1933 seconds ago) 2023-10-21T17:57:40Z New outbound peer connected: version: 70016, blocks=2458645, peer=620, peeraddr=176.97.77.55:37070 (full-relay) 2023-10-21T18:07:42Z Potential stale tip detected, will try using extra outbound peer (last tip update: 2545 seconds ago) 2023-10-21T18:07:42Z New outbound peer connected: version: 70016, blocks=2458645, peer=621, peeraddr=31.202.41.59:37070 (full-relay) 2023-10-21T18:17:51Z Potential stale tip detected, will try using extra outbound peer (last tip update: 3154 seconds ago) 2023-10-21T18:18:04Z New outbound peer connected: version: 70016, blocks=2458645, peer=622, peeraddr=31.202.41.59:37070 (full-relay) 2023-10-21T18:24:59Z GUI: Check updates result: error: QNetworkReply::NetworkError(ProtocolUnknownError) 2023-10-21T18:28:03Z Potential stale tip detected, will try using extra outbound peer (last tip update: 3766 seconds ago) 2023-10-21T18:28:15Z New outbound peer connected: version: 70016, blocks=2458645, peer=623, peeraddr=75.155.203.131:37070 (full-relay) 2023-10-21T18:38:10Z Potential stale tip detected, will try using extra outbound peer (last tip update: 4373 seconds ago) 2023-10-21T18:39:12Z New outbound peer connected: version: 70016, blocks=2458449, peer=624, peeraddr=202.61.253.55:37070 (full-relay) 2023-10-21T18:41:28Z New outbound peer connected: version: 70016, blocks=2458645, peer=626, peeraddr=65.109.20.234:37070 (full-relay) 2023-10-21T18:48:21Z Potential stale tip detected, will try using extra outbound peer (last tip update: 4984 seconds ago) 2023-10-21T18:48:32Z New outbound peer connected: version: 70016, blocks=2458645, peer=627, peeraddr=88.216.164.30:37070 (full-relay) 2023-10-21T18:58:29Z Potential stale tip detected, will try using extra outbound peer (last tip update: 5592 seconds ago) 2023-10-21T18:59:15Z New outbound peer connected: version: 70016, blocks=2458645, peer=628, peeraddr=128.69.178.18:37070 (full-relay) 2023-10-21T19:08:38Z Potential stale tip detected, will try using extra outbound peer (last tip update: 6201 seconds ago) 2023-10-21T19:09:02Z New outbound peer connected: version: 70016, blocks=2458645, peer=630, peeraddr=65.109.20.234:37070 (full-relay) 2023-10-21T19:18:53Z Potential stale tip detected, will try using extra outbound peer (last tip update: 6816 seconds ago) 2023-10-21T19:19:09Z New outbound peer connected: version: 70016, blocks=2458645, peer=631, peeraddr=47.215.70.22:37070 (full-relay) 2023-10-21T19:19:49Z socket receive timeout: 1201s 2023-10-21T19:20:47Z New outbound peer connected: version: 70016, blocks=2458645, peer=632, peeraddr=31.202.41.59:37070 (block-relay) 2023-10-21T19:24:59Z GUI: Check updates result: error: QNetworkReply::NetworkError(ProtocolUnknownError) 2023-10-21T19:29:01Z Potential stale tip detected, will try using extra outbound peer (last tip update: 7424 seconds ago) 2023-10-21T19:30:26Z New outbound peer connected: version: 70016, blocks=2458645, peer=634, peeraddr=75.155.203.131:37070 (full-relay) 2023-10-21T19:39:16Z Potential stale tip detected, will try using extra outbound peer (last tip update: 8039 seconds ago) 2023-10-21T19:39:40Z New outbound peer connected: version: 70016, blocks=2458645, peer=635, peeraddr=65.21.56.203:37070 (full-relay) 2023-10-21T19:39:47Z === Staking : new PoS block found hash: 2458646 - 8ac48b853106eca6c8037b94323bd738987fae9379fa7cd5682f51fed770f390 2023-10-21T19:39:48Z WARNING: SocialConsensus validating failed with result 47 for block 8ac48b853106eca6c8037b94323bd738987fae9379fa7cd5682f51fed770f390 2023-10-21T19:39:48Z ERROR: ConnectTip: ConnectBlock 8ac48b853106eca6c8037b94323bd738987fae9379fa7cd5682f51fed770f390 failed, failed-validate-social-consensus 2023-10-21T19:39:50Z === Staking : new PoS block found hash: 2458646 - c318582e6bbb8d2624ff35a42dd8c4cd35b5b5c8e82e491c42b2404920b4a900 2023-10-21T19:39:50Z WARNING: SocialConsensus validating failed with result 47 for block c318582e6bbb8d2624ff35a42dd8c4cd35b5b5c8e82e491c42b2404920b4a900 2023-10-21T19:39:50Z ERROR: ConnectTip: ConnectBlock c318582e6bbb8d2624ff35a42dd8c4cd35b5b5c8e82e491c42b2404920b4a900 failed, failed-validate-social-consensus 2023-10-21T19:39:52Z === Staking : new PoS block found hash: 2458646 - c318582e6bbb8d2624ff35a42dd8c4cd35b5b5c8e82e491c42b2404920b4a900 2023-10-21T19:39:52Z WARNING: SocialConsensus validating failed with result 47 for block c318582e6bbb8d2624ff35a42dd8c4cd35b5b5c8e82e491c42b2404920b4a900 2023-10-21T19:39:52Z ERROR: ConnectTip: ConnectBlock c318582e6bbb8d2624ff35a42dd8c4cd35b5b5c8e82e491c42b2404920b4a900 failed, failed-validate-social-consensus 2023-10-21T19:39:54Z === Staking : new PoS block found hash: 2458646 - 85966dbdbfccb02b91c8f7d594d2ff18e1f0ec994ab6f511a2b599b88337df15 2023-10-21T19:39:57Z WARNING: SocialConsensus validating failed with result 47 for block 85966dbdbfccb02b91c8f7d594d2ff18e1f0ec994ab6f511a2b599b88337df15 2023-10-21T19:39:57Z ERROR: ConnectTip: ConnectBlock 85966dbdbfccb02b91c8f7d594d2ff18e1f0ec994ab6f511a2b599b88337df15 failed, failed-validate-social-consensus 2023-10-21T19:39:59Z === Staking : new PoS block found hash: 2458646 - 388c8ffc8ea0c8cb9921d75afc465c49a400949bf893b1018c2fde969e9b1bfb 2023-10-21T19:39:59Z WARNING: SocialConsensus validating failed with result 47 for block 388c8ffc8ea0c8cb9921d75afc465c49a400949bf893b1018c2fde969e9b1bfb 2023-10-21T19:39:59Z ERROR: ConnectTip: ConnectBlock 388c8ffc8ea0c8cb9921d75afc465c49a400949bf893b1018c2fde969e9b1bfb failed, failed-validate-social-consensus 2023-10-21T19:40:01Z === Staking : new PoS block found hash: 2458646 - 9f1981c8bf713ed70660e9135c57dbaedfcb8d3bdceb4b2da5b3d213af369c60 2023-10-21T19:40:01Z WARNING: SocialConsensus validating failed with result 47 for block 9f1981c8bf713ed70660e9135c57dbaedfcb8d3bdceb4b2da5b3d213af369c60 2023-10-21T19:40:01Z ERROR: ConnectTip: ConnectBlock 9f1981c8bf713ed70660e9135c57dbaedfcb8d3bdceb4b2da5b3d213af369c60 failed, failed-validate-social-consensus 2023-10-21T19:49:29Z Potential stale tip detected, will try using extra outbound peer (last tip update: 8652 seconds ago) 2023-10-21T19:49:39Z New outbound peer connected: version: 70016, blocks=2458645, peer=636, peeraddr=75.155.203.131:37070 (full-relay) 2023-10-21T19:51:29Z New outbound peer connected: version: 70016, blocks=2458645, peer=637, peeraddr=88.216.164.30:37070 (full-relay) 2023-10-21T19:59:35Z Potential stale tip detected, will try using extra outbound peer (last tip update: 9258 seconds ago) 2023-10-21T20:00:27Z New outbound peer connected: version: 70016, blocks=2458645, peer=638, peeraddr=65.21.252.135:37070 (full-relay) 2023-10-21T20:09:47Z Potential stale tip detected, will try using extra outbound peer (last tip update: 9870 seconds ago) 2023-10-21T20:10:28Z New outbound peer connected: version: 70016, blocks=2458645, peer=639, peeraddr=202.61.253.55:37070 (full-relay) 2023-10-21T20:20:07Z Potential stale tip detected, will try using extra outbound peer (last tip update: 10490 seconds ago) 2023-10-21T20:20:19Z New outbound peer connected: version: 70016, blocks=2458645, peer=640, peeraddr=65.109.20.234:37070 (full-relay) 2023-10-21T20:24:57Z GUI: Check updates result: error: QNetworkReply::NetworkError(ProtocolUnknownError) 2023-10-21T20:29:50Z Block indexed: 2458646 BH: 102b95ebd73c5f8192741235bb183d6dfdf79478d1141701dd3753ff0fbfcfd9 2023-10-21T20:29:50Z +++ Block connected to chain: 2458646 BH: 102b95ebd73c5f8192741235bb183d6dfdf79478d1141701dd3753ff0fbfcfd9 2023-10-21T20:31:41Z Block indexed: 2458647 BH: 011251a59a75f13ec73724ddb74dd9d4549deab6d58d6557d3ef6d02cec92199 2023-10-21T20:31:41Z +++ Block connected to chain: 2458647 BH: 011251a59a75f13ec73724ddb74dd9d4549deab6d58d6557d3ef6d02cec92199

further logs a few mins later:

2023-10-21T20:55:15Z Block indexed: 2458664 BH: 440f38787375897ea0227f3f2a11b3e6f44444e72685de2b4b4ad19005cfb81a 2023-10-21T20:55:15Z +++ Block connected to chain: 2458664 BH: 440f38787375897ea0227f3f2a11b3e6f44444e72685de2b4b4ad19005cfb81a 2023-10-21T20:55:17Z === Staking : new PoS block found hash: 2458665 - 4a143f689b3a0b0061572ee35ab4e57f22776f4a6843eca664d19d45939f6cc6 2023-10-21T20:55:17Z WARNING: SocialConsensus validating failed with result 47 for block 4a143f689b3a0b0061572ee35ab4e57f22776f4a6843eca664d19d45939f6cc6 2023-10-21T20:55:17Z ERROR: ConnectTip: ConnectBlock 4a143f689b3a0b0061572ee35ab4e57f22776f4a6843eca664d19d45939f6cc6 failed, failed-validate-social-consensus 2023-10-21T20:55:18Z === Staking : new PoS block found hash: 2458665 - 675152380fb4bd85dce454a0899302ec648e45d96f0b9b882d3f6db5e4771e5f 2023-10-21T20:55:19Z WARNING: SocialConsensus validating failed with result 47 for block 675152380fb4bd85dce454a0899302ec648e45d96f0b9b882d3f6db5e4771e5f 2023-10-21T20:55:19Z ERROR: ConnectTip: ConnectBlock 675152380fb4bd85dce454a0899302ec648e45d96f0b9b882d3f6db5e4771e5f failed, failed-validate-social-consensus 2023-10-21T20:55:20Z === Staking : new PoS block found hash: 2458665 - 675152380fb4bd85dce454a0899302ec648e45d96f0b9b882d3f6db5e4771e5f 2023-10-21T20:55:21Z WARNING: SocialConsensus validating failed with result 47 for block 675152380fb4bd85dce454a0899302ec648e45d96f0b9b882d3f6db5e4771e5f 2023-10-21T20:55:21Z ERROR: ConnectTip: ConnectBlock 675152380fb4bd85dce454a0899302ec648e45d96f0b9b882d3f6db5e4771e5f failed, failed-validate-social-consensus

I restarted the node and later got these errors:

2023-10-22T08:00:43Z +++ Block connected to chain: 2459337 BH: 010836045c1586fda128bacdfa06dc5eec2c1ed3dab0dbe560dbe5ac0dbb83c9 2023-10-22T08:02:10Z === Staking : new PoS block found hash: 2459338 - 445c0be6955a0a2204a99f04eaff93ed401acfc6982302746646520a62de64f1 2023-10-22T08:02:10Z WARNING: SocialConsensus validating failed with result 47 for block 445c0be6955a0a2204a99f04eaff93ed401acfc6982302746646520a62de64f1 2023-10-22T08:02:10Z ERROR: ConnectTip: ConnectBlock 445c0be6955a0a2204a99f04eaff93ed401acfc6982302746646520a62de64f1 failed, failed-validate-social-consensus 2023-10-22T08:02:12Z === Staking : new PoS block found hash: 2459338 - fdc0606a6a3197210a22d97b6501ea4dae32c03595e27d50369435ff76b1bc3f 2023-10-22T08:02:12Z WARNING: SocialConsensus validating failed with result 47 for block fdc0606a6a3197210a22d97b6501ea4dae32c03595e27d50369435ff76b1bc3f 2023-10-22T08:02:12Z ERROR: ConnectTip: ConnectBlock fdc0606a6a3197210a22d97b6501ea4dae32c03595e27d50369435ff76b1bc3f failed, failed-validate-social-consensus 2023-10-22T08:02:14Z === Staking : new PoS block found hash: 2459338 - fdc0606a6a3197210a22d97b6501ea4dae32c03595e27d50369435ff76b1bc3f 2023-10-22T08:02:14Z WARNING: SocialConsensus validating failed with result 47 for block fdc0606a6a3197210a22d97b6501ea4dae32c03595e27d50369435ff76b1bc3f 2023-10-22T08:02:14Z ERROR: ConnectTip: ConnectBlock fdc0606a6a3197210a22d97b6501ea4dae32c03595e27d50369435ff76b1bc3f failed, failed-validate-social-consensus 2023-10-22T08:02:16Z === Staking : new PoS block found hash: 2459338 - e2f3b7ba655ab0cc7e36586b390cbf802734f1e9b2d586285508e96aaa341131 2023-10-22T08:02:16Z WARNING: SocialConsensus validating failed with result 47 for block e2f3b7ba655ab0cc7e36586b390cbf802734f1e9b2d586285508e96aaa341131 2023-10-22T08:02:16Z ERROR: ConnectTip: ConnectBlock e2f3b7ba655ab0cc7e36586b390cbf802734f1e9b2d586285508e96aaa341131 failed, failed-validate-social-consensus 2023-10-22T08:02:18Z === Staking : new PoS block found hash: 2459338 - e2f3b7ba655ab0cc7e36586b390cbf802734f1e9b2d586285508e96aaa341131 2023-10-22T08:02:18Z WARNING: SocialConsensus validating failed with result 47 for block e2f3b7ba655ab0cc7e36586b390cbf802734f1e9b2d586285508e96aaa341131 2023-10-22T08:02:18Z ERROR: ConnectTip: ConnectBlock e2f3b7ba655ab0cc7e36586b390cbf802734f1e9b2d586285508e96aaa341131 failed, failed-validate-social-consensus 2023-10-22T08:02:20Z === Staking : new PoS block found hash: 2459338 - dcd8b74b6442525096fa169caa511ab5f9ab0f702b27576db2184fea31378f09 2023-10-22T08:02:21Z WARNING: SocialConsensus validating failed with result 47 for block dcd8b74b6442525096fa169caa511ab5f9ab0f702b27576db2184fea31378f09 2023-10-22T08:02:21Z ERROR: ConnectTip: ConnectBlock dcd8b74b6442525096fa169caa511ab5f9ab0f702b27576db2184fea31378f09 failed, failed-validate-social-consensus 2023-10-22T08:02:22Z === Staking : new PoS block found hash: 2459338 - b19aab1f131be5c7779263be70888327faea5dcbc3c311ff6b59dc1af81716d5 2023-10-22T08:02:22Z WARNING: SocialConsensus validating failed with result 47 for block b19aab1f131be5c7779263be70888327faea5dcbc3c311ff6b59dc1af81716d5 2023-10-22T08:02:22Z ERROR: ConnectTip: ConnectBlock b19aab1f131be5c7779263be70888327faea5dcbc3c311ff6b59dc1af81716d5 failed, failed-validate-social-consensus 2023-10-22T08:02:24Z === Staking : new PoS block found hash: 2459338 - b19aab1f131be5c7779263be70888327faea5dcbc3c311ff6b59dc1af81716d5 2023-10-22T08:02:24Z WARNING: SocialConsensus validating failed with result 47 for block b19aab1f131be5c7779263be70888327faea5dcbc3c311ff6b59dc1af81716d5 2023-10-22T08:02:24Z ERROR: ConnectTip: ConnectBlock b19aab1f131be5c7779263be70888327faea5dcbc3c311ff6b59dc1af81716d5 failed, failed-validate-social-consensus

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

This issue is happening to a few others. I'm going to try and see if I can play around with the forking cli commands and try and find a working chain.

the-real-vortex-v commented 9 months ago

I added persistmempool=0 to the config file and restarted the node. Staking has started again. I don't know if the consensus error is still there. I'm still seeing v0.21.2 nodes connecting to this node. I assumed that the older versions would be dropped?

andyoknen commented 9 months ago

Thank you for your logs. We are still trying to understand the source of the problem. So far it is known that this bug is present in versions 0.21.3 and 0.22.0-alpha.

I will write here when I have more information.

the-real-vortex-v commented 9 months ago

I have one extra thing that may or may not mean anything. I consolidated a few hundred coin inputs a day or two before the issue. I have no idea if that may cause an issue. Also I noticed that the memory pool stats where quite high. 3100 transactions and several mega bytes of memory.

andyoknen commented 9 months ago

Could you show the output of the getmempoolinfo command?

the-real-vortex-v commented 9 months ago

Sure. I didn't run that command at the time but now it's giving me the below:

{ "loaded": true, "size": { "memory": 42, "sqlite": 625 }, "bytes": 11505, "usage": 48864, "maxmempool": 10000000, "mempoolminfee": 0.00001000, "minrelaytxfee": 0.00001000, "unbroadcastcount": 0 }

I may consolidate some more inputs again soon. I'll update here if the error happens again.

andyoknen commented 7 months ago

This problem was fixed and resolved in #618