As a precautionary measure, since even with a perfectly working implementation is possible via rpc to send an invalid vote and cause a slash, I think we should prevent a node from sending a slash transaction about itself.
This PR tries to achieve exactly that, for the moment a WARNING will be printed to help track in the logs unwanted/buggy scenarios where this happens spontaneously.
As a precautionary measure, since even with a perfectly working implementation is possible via rpc to send an invalid vote and cause a slash, I think we should prevent a node from sending a slash transaction about itself.
This PR tries to achieve exactly that, for the moment a
WARNING
will be printed to help track in the logs unwanted/buggy scenarios where this happens spontaneously.