DMDcoin / openethereum-3.x

DMD v4 testnet node software (honeybadger enhanced open ethereum)
GNU General Public License v3.0
2 stars 1 forks source link

Node software whitelisting #20

Open SurfingNerd opened 3 years ago

SurfingNerd commented 3 years ago

One of the problems we have encountered was due the fact that the P2P communication picks up all kind of node software and all kind of (Ethereum like ?!) networks. Since DMD is it's own ecosystem, it is not required to talk to ethereum, rinkeby, xDai, and so on. Therefore, we can just whitelist our software version and stop communication with other nodes. That would especially a big leap for the #15

SurfingNerd commented 3 years ago

Disabling peers Nodesoftware whitelisting does not block peers for the future. example filtered grep output. The same Peers get disabled over and over again.

2021-08-08 19:30:35  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 19:44:41  Worker devp2p0 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 19:58:39  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 20:12:57  Worker devp2p0 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 20:21:29  Worker devp2p0 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:49588 
2021-08-08 20:35:36  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 20:50:05  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 20:51:08  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:37126 
2021-08-08 21:05:48  Worker devp2p2 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 21:20:37  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 21:35:31  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 21:35:32  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 21:51:15  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 22:06:56  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 22:22:27  Worker devp2p2 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 22:38:01  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 22:43:00  Worker devp2p0 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:43684 
2021-08-08 22:58:37  Worker devp2p0 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 23:14:40  Worker devp2p0 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 23:30:44  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-08 23:46:52  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-09 00:03:29  Worker devp2p3 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
2021-08-09 00:20:18  Worker devp2p1 INFO sync  Disabling Peer (this Software Version not whitelisted) besu/v21.7.2/linux-x86_64/corretto-java-11 ip:54.237.10.10:30303 
SurfingNerd commented 2 years ago

Thesis: It is just the besu client software that keeps to be tenacious to try to reconnect, if there was a communication in the past.