dominant-strategies / go-quai

Official Go Implementation of the Quai Network
GNU General Public License v3.0
2.36k stars 457 forks source link

[LibP2P] Error Reading the key from the peerdb #1800

Closed gameofpointers closed 1 month ago

gameofpointers commented 1 month ago

ERROR [05-29|16:52:10.892] Error reading the key from the peer db key="[ 47 49 50 68 51 75 111 111 87 78 77 81 97 65 82 72 87 80 105 55 100 118 80 99 122 90 71 70 118 57 68 98 98 56 54 121 66 78 110 69 112 105 85 82 116 86 110 69 111 70 50 69 104]"

I get this error, sometimes reading the peer from the database, previously it was not seen because the error was not being printed while reading the peer from the database

Djadih commented 1 month ago

This is occuring due to a race condition from recategorizePeer It deletes the peer ID from all databases, and then adds it back to the correct one. If recategorize is running while this function is querying you will see this.

The frequency seems to align with this as well.