I'm working on a application to track your neighbors. I want an indicator if there are any foul nodes.
What's the deal with invalid transactions? They are an indicator that a node is bad, but how many invalid transactions would a node need for you to remove it as neighbor?
Do good nodes never have invalid transactions?
If it is just an indicator and not a "1 invalid transactions = bad node!", then I would probably weight them up against the new transactions, or all transactions (ideas are welcome). Say: "If 0.5% or more of all transactions are invalid, the node should be removed."