Blocking Nodes / Luke Coin for improved mempool sharing

5 replies 89 views
colddiamondHero Member
Posts: 623 · Reputation: 2467
#1Jan 21, 2018, 12:21 AM
I've been working on a script that runs every hour and checks peer info through the CLI. It looks for "Knots" in the subver and if it finds it, it disconnects that node and bans its IP. I think if they’re not sharing a proper mempool with me, there’s really no point in keeping that connection. It’s just a drain on resources. I know there are some bitnodes that list all the nodes running lukecoin, but I can't find one that allows me to grab all their IPs in one go. If anyone knows of one, let me know so I can just block them all at once and call it a day. Has anyone figured out a better approach? It’d be nice to have it work on both Windows and Linux, but if not, I can manage. Also, since the IP ban eventually expires, if those nodes stop running their censoring software, they could reconnect later.
6 Reply Quote Share
fox100Senior Member
Posts: 165 · Reputation: 1050
#2Jan 21, 2018, 03:21 AM
It would be just a 1 or 2 line patch to just have your node disconnect any connected to you to more cleanly achieve the same end.  I'd suggest doing it in the code that processes receiving the subver, .. as soon as it read it could flag the peer for disconnection. If you've never modified your nodes code it might be a fun exercise to figure out doing so. I wouldn't recommend many people run such a change but if it's just you it doesn't matter to anyone else.  If it were many people it should only act on outbound connections to mitigate the risk of accidentally creating a partition.
1 Reply Quote Share
colddiamondHero Member
Posts: 623 · Reputation: 2467
#3Jan 21, 2018, 08:14 AM
@gmaxwell The external script I threw together was quick and dirty. Will have to figure out how to do it the way you suggested. But.... https://bitcointalk.org/index.php?topic=5382906.msg66205884#msg66205884 ..... So I was doing it the way that used the fewest brain-cells since a lot of mine are offline at the moment. Perhaps its the pain talking, but I really don't care about anyone running knots anymore. They have been warned and warned and warned again that it's going to end poorly for them. No different then for the people who followed the cult of BSV and all the others off their cliff. Let them crash and leave us alone. -Dave
3 Reply Quote Share
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#4Jan 21, 2018, 02:33 PM
I like the idea of bullying Knotzis through information theory lecturing, so you earned those merits there. If memory serves right, Bitcoin Core will use some nodes solely for blocks, not mempool, so you could allow that kind of connection. But, blocking their IP altogether seems funnier, I know. I recently read that a pull request removing Luke's DNS seed from seed list of Bitcoin Core was approved. The justification is that Luke's DNS fails to return nodes with version later than 28.1.
2 Reply Quote Share
colddiamondHero Member
Posts: 623 · Reputation: 2467
#5Jan 21, 2018, 07:40 PM
Did not know they removed his DNS seed. Good work core people. IMO no real point in allowing any connections from the IPs that are hosting knots for any reason. They should be happy I'm blocking them, this way they will not run the risk of accidentally getting a dick pick or something from one of my nodes by accident. Just think if everyone blocked knots it would get them what they want, the only things in their mempool would be things they think are worth it. No more having to censor transactions since only they will be transacting there. -Dave
2 Reply Quote Share
fox100Senior Member
Posts: 165 · Reputation: 1050
#6Jan 22, 2018, 12:35 AM
It would would be easy to limit the blocking to blocksonly (fRelay==false) connections--  though arguably they're also less useful for block propagation because they're missing more transactions, so they'll relay blocks slower and also request more transactions from you when you relay blocks to them. Allowing the blocksonly connections also addresses the concern I raised about partitioning, though so it would be a more reasonable choice if many people were to do it.
3 Reply Quote Share

Related topics