Any node should have complete control over one thing: The connections to that node. So if a root node wishes to 'censor' someone, they must sever the connection to that person, or the node they connect to.
But root nodes are a bad idea, because then there's only one point of failure for a DoS attack. So there should be no one root, rather an index of hubs that communicate as equals in a distributed manner.
What is a channel refresh? Is that where servers send an aggregate list of channels, or individual channel creation/destruction notices?
Maybe I'm misinterpreting... but do you mean 680 lines of hooks in your own code?? A hook for something so simple should be no more than the sum of the receiving and sending callback setters. Easily less than 20 lines for a complex protocol.
|