firstbatchxyz / dkn-compute-node

Compute Node of Dria Knowledge Network.
Apache License 2.0
88 stars 34 forks source link

bug: peer count may be wrongfully reported #145

Open erhant opened 5 days ago

erhant commented 5 days ago

The log looks as follows:

[2024-11-18T15:21:06.194Z WARN  dkn_p2p::client] Identify: Peer 16Uiu2HAmFS74MSXkLC1HbyNWkSiYVn3X3bERVKnd7xEQLaYukqX7 has different Identify protocol: (them dria/0.2, you dria-sdk/0.2)
[2024-11-18T15:21:08.038Z WARN  dkn_p2p::client] Identify: Peer 16Uiu2HAkxeQniREaJ6XHGH8whFCWVRKCAaHHXLyir54i5W8xnxyV has different Identify protocol: (them dria/0.2, you dria-sdk/0.2)
[2024-11-18T15:21:08.751Z WARN  dkn_p2p::client] Identify: Peer 16Uiu2HAm517TMnKXAT1ktLiXaumAvd7Bcm673fF4YRpb8aUUgqFF has different Identify protocol: (them dria/0.2, you dria-sdk/0.2)
[2024-11-18T15:21:10.109Z WARN  dkn_p2p::client] Identify: Peer 16Uiu2HAm1wEFfiyHcj3UBFC8cJvP78UzVsPqZD7KqWirqD61CgKN has different Identify protocol: (them dria/0.2, you dria-sdk/0.2)
[2024-11-18T15:21:10.610Z WARN  dkn_p2p::client] Identify: Peer 16Uiu2HAmGnHJbN5Wq1fAEdZs3dY5fi5AFMoTS1Ggt65JAqAiiigv has different Identify protocol: (them dria/0.2, you dria-sdk/0.2)
[2024-11-18T15:21:14.813Z INFO  dkn_p2p::client] Kademlia: Query finished with 6 closest peers.
[2024-11-18T15:21:15.117Z INFO  dkn_compute::node] Refreshing available nodes.
[2024-11-18T15:21:16.396Z DEBUG dkn_compute::node] ConnectionCounters { pending_incoming: 0, pending_outgoing: 0, established_incoming: 0, established_outgoing: 67 }
[2024-11-18T15:21:16.397Z INFO  dkn_p2p::client] Peer Count (mesh/all): 7 / 67
[2024-11-18T15:21:16.398Z DEBUG dkn_p2p::client] All Peers:
      0: 16Uiu2HAm517TMnKXAT1ktLiXaumAvd7Bcm673fF4YRpb8aUUgqFF
      1: 16Uiu2HAmE4zvuHP2GiY6zUnMcjv3MDeWepSTjotJSLMUEA82RGMd
      2: 16Uiu2HAmCsZ17hsDiEsmAL5PWMFXeWJ9aP7d3xDtP6E6sGkdCj8N
      3: 16Uiu2HAm7BuPEpja1Gfdow6U2Wu4pLB9M9D297eAk53iPZ5j7Cf3
      4: 16Uiu2HAkzaU3Vt7WVoVRc9ueM1sgWUqFyDc4vWqMe8ekEebTvD8m
      5: 16Uiu2HAmHKC9rZbbU1b2tWQ34NR8ByrPqtZ7FtJ74U94sa1vjRDe
      6: 16Uiu2HAmPazdHyYVaqRtF36Ldcziy6XErkDPxRsGL1VNqaSgMdWC
      7: 16Uiu2HAm2xA2LE9FNpgRDg3MCaed5griy61VXo2VeMoWWT1t6seN
      8: 16Uiu2HAmAAwixbbCoDbvm846D9mGoWPMW68oFdt2g3gdyexSkWTy
      9: 16Uiu2HAmBAaYhwP9zrwJNAu5zbeNTikdhcbZKEeuezZ9UuXfnt5n
     10: 16Uiu2HAmCmCjUBevoTnNoUUinoW8iawHZ8FnQPjd2gbdsbxW8XPs
     11: 16Uiu2HAkyJsLxj8ZdCKiTsoBZsgyZe9HRmRfikT3wC5kMqki4d4o
     12: 16Uiu2HAm9uAWLMYKQGx2ye9fw385fNqjrhZdehQLRHZcY9x23Rqa
     13: 16Uiu2HAmUdYauSnvFG9Cos7xRLrmKMjtzYj95jGYW6bvj3cSvmm5
     14: 16Uiu2HAkyfexkTDRcXXQedNq8BQURJfQoRa3QXXch6riJrjfk4Vj
     15: 16Uiu2HAm8AbhXUbeztwkoTFeyKSCRXEpr8CznRBdm8w7Tgj9NYWw
     16: 16Uiu2HAmC2jpkpUKEiPkm4jbP5B8hPBHKTSzTait3tuKaSZYNcDK
     17: 16Uiu2HAmAxZVygo3nkWhPw2REEwXVDrb6ntgzLWZLeYRaqY8xBpR
     18: 16Uiu2HAmAHrMDGN439x49jwtNYGHghwW9Qhug1xHNpkD7zoMuTzL
     19: 16Uiu2HAm1wEFfiyHcj3UBFC8cJvP78UzVsPqZD7KqWirqD61CgKN
     20: 16Uiu2HAmMeUFsrtFScruDzhQvmmPBVQw8ovNbSAEWeCmTnRcdRfj
     21: 16Uiu2HAmDDj6hNwCySHxUuiSCxqCtnDbiMwZf183MSxpaZPJbNPh
     22: 16Uiu2HAmV2m4K1UEPbMhULqusULQhY9iM3kC7vbxt5rhy4w3TWUZ
     23: 16Uiu2HAkyayxV46LZtDdKTWGQRa3mjqMzfec3229caFjeU2SFHDc
     24: 16Uiu2HAmEH5TFmoWk444gTUPNHnFZwH52K4JBRzu4FSaFRK2Jh78
     25: 16Uiu2HAmFrDmGTWezAyUDAc8qXmUV7pBpccogiW2wNHF53yqFeC2
     26: 16Uiu2HAmT1uZZo8A5nzS6BHXPa2mWStnLdeyas4a8S6JLhAfkSVH
     27: 16Uiu2HAm3zCcWfALqVPn9sRgAFnXUDjfeKi2mY7tWVP9NP1PufeK
     28: 16Uiu2HAmQRFvvfi2Wua7CtfqqATg7BWBhFBvGHSbAsFzdwXj2NCK
     29: 16Uiu2HAkuqEzE5aL449CYTeKto9fqxFVFPxC9vbpRsKiNBMXRany
     30: 16Uiu2HAmALLZdriTBpYUxWqttrC9wCWSZ89ZhoLs9YjHp1FPf8E8
     31: 16Uiu2HAm8dndUCgjdDowQwWSdGAwFfdTHTYpL4qc9KtLiFbCGveL
     32: 16Uiu2HAm9ScXSX3nHSbpg4jqfhAL9SPQD1PhNpPa8CuRo78dpVPY
     33: 16Uiu2HAm8Si211LQ2hjepqSqCp91fRFuzQRGZNcaeAabYCUhZu59
     34: 16Uiu2HAmGodcgzxxgoCHYiTCfKUp967LvLnJpd6quRDL37D1p6sL
     35: 16Uiu2HAmNT5WAnXTeE3SrmASAfN47GtFYvSS1KDTY7DBdfvTj8p6
     36: 16Uiu2HAmQUgL8qTRUeZ4Rp4Q6gXjDASquLodHfwrLFo79oWfGBxW
     37: 16Uiu2HAm9qDVT3DS9axth5JBNBovxyGuHMUb2WUG4NJDJG3gXXNk
     38: 16Uiu2HAmPZ1ENCJnMNoia6g87212ECgL2bFaqzN1CKzwzGoJDT5V
     39: 16Uiu2HAmNRKq6NMPmypyPxZvVRm1TX7kSaEzXG8PPt2T758qTj2S
     40: 16Uiu2HAmEeUsGmdkAb3GTmZ4ai1gP5L4dviw8rs6c2vkPer1c6NM
     41: 16Uiu2HAmAjaVqHTunz3pqCUTNjKkUbwrvmfuYLSFJN9m2ZuYF3HN
     42: 16Uiu2HAmFTDeWFsdxXfyQ8YnSPK3FdaxYTNBXcyRyhzm4FmAgaPs
     43: 16Uiu2HAm9LJoFM4VHaSaQFUEDNgCjvEmf4c5u3rpSmeNe515g22V
     44: 16Uiu2HAmP6c3yy7phqYbfXi4ykT9vmHScmk1cWGT8ZVM5gSeZdex
     45: 16Uiu2HAmV7fswJMwsoBZhZZMzCBNtVoY9rS3gJeKmVkkKpvz6oyh
     46: 16Uiu2HAkwLASFUPeSH6uHUQJLb94TZpNtigvgJth1VL6EtnUqai5
     47: 16Uiu2HAm5hJHhuQD4pkxCqvuYgy69PapjhPBw1vUbzuiA6i2oxaq
     48: 16Uiu2HAmDV8A3c3pP22ddRexgkhLPEzTYepqy8qcwBv4tsk6FSvj
     49: 16Uiu2HAkvLJAh7yxJkVLRxNEociq5CdfR5MVBanno9uERT1BUhBZ
     50: 16Uiu2HAmGnHJbN5Wq1fAEdZs3dY5fi5AFMoTS1Ggt65JAqAiiigv
     51: 16Uiu2HAkyHtTurQUvTWsYnZpLAy12pT7B3GTmaMx5iQeXoLLP685
     52: 16Uiu2HAm6E1VAJU46TScCkWKuTiej58fRpq43Mek1rMF5ekPW1em
     53: 16Uiu2HAkxPFkKApSFoq1X5jrbFPrfb194zBLbbHGbHqxTyE1TXzB
     54: 16Uiu2HAmKRwesVLY7DSB4thMwCfzSkLaPS7nCfnur1gaynHnFdfW
     55: 16Uiu2HAmPHXz2Cb6RzMRrqgREC442x7V6QGh7mmvLkWvbVAe3Eaz
     56: 16Uiu2HAm6j99kYb5Y3uRz6zQmC9WYBjToUA7LZKy14sYSbmZdKsb
     57: 16Uiu2HAmCT2k6ZuqR18AziFNmJt2AMgtgda3rvQNb2bJ7S8X1Fck
     58: 16Uiu2HAm9GWxWf5SFrZ4qMZxAwZ3KZF3XgRsFRf8iJ71Pv9bYCtT
     59: 16Uiu2HAmHuzcUZW3vAEPqx47UjiC8hcy2xf6KZSqBgRx35bLHrAU
     60: 16Uiu2HAkxeQniREaJ6XHGH8whFCWVRKCAaHHXLyir54i5W8xnxyV
     61: 16Uiu2HAmCNXYvGr4sy2dChKitQCVdGfzWpwZchKYXcYsdxdbv2gg
     62: 16Uiu2HAm4WTtq1c7jfFy28dfKb2RTaNxRxHvTxF9o3F8wNavokRP
     63: 16Uiu2HAmBDZfn21v2RtesopDNSKXWDfU1tbXBSzLQAFYXwkZZeNF
     64: 16Uiu2HAmFS74MSXkLC1HbyNWkSiYVn3X3bERVKnd7xEQLaYukqX7
     65: 16Uiu2HAm6Kzhy3HCGNxQ4uzKrzpDTrfCTQKrzXmEyzyMhX7ktqwK
     66: 16Uiu2HAmEn9GeJaJtsMFfunZbXm2Wb1aDSTjehJ7nBYHJmdPNm6m
[2024-11-18T15:21:16.398Z DEBUG dkn_p2p::client] Mesh Peers:
      0: 16Uiu2HAkxeQniREaJ6XHGH8whFCWVRKCAaHHXLyir54i5W8xnxyV
      1: 16Uiu2HAm1wEFfiyHcj3UBFC8cJvP78UzVsPqZD7KqWirqD61CgKN
      2: 16Uiu2HAm517TMnKXAT1ktLiXaumAvd7Bcm673fF4YRpb8aUUgqFF
      3: 16Uiu2HAmFS74MSXkLC1HbyNWkSiYVn3X3bERVKnd7xEQLaYukqX7
      4: 16Uiu2HAmGnHJbN5Wq1fAEdZs3dY5fi5AFMoTS1Ggt65JAqAiiigv
      5: 16Uiu2HAmNT5WAnXTeE3SrmASAfN47GtFYvSS1KDTY7DBdfvTj8p6
      6: 16Uiu2HAmPZ1ENCJnMNoia6g87212ECgL2bFaqzN1CKzwzGoJDT5V

Here, the following peers are not matching to our protocol but they are included as peers in all and mesh:

Perhaps they were included at first, but updated their network afterwards?