Closed hstove closed 2 days ago
I just want to make sure there's no DoS risk here. What stops the signer from broadcasting the same BlockResponse
over and over forever? Do we do this only once per proposal?
I just want to make sure there's no DoS risk here. What stops the signer from broadcasting the same BlockResponse over and over forever? Do we do this only once per proposal?
Yes, the signer only broadcasts once per proposal. This code path is also only after the signer gets a block validation response - so any DOS vector would already be spamming the node's block validation endpoint
That's what I thought; just wanted to make sure.
I've updated the code to not re-broadcast if the block is LocallyAccepted or LocallyRejected. So, this PR is essentially changing the check from "if globally X, ignore" to "if locally X, ignore"
Changes signer behavior to broadcast a BlockResponse, even if the signer has already marked the block as
GloballyAccepted
orGloballyRejected