stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 667 forks source link

Test - Config Stacker DB Signer #5122

Open ASuciuX opened 1 month ago

ASuciuX commented 1 month ago

The max-writes and write-freq parameters for signers of StackerDB are currently set to their default values, with write-freq always set to 0 and max-writes set to a very high value. Have these settings been reviewed to ensure they are resilient against potential DDoS attacks? Is it more optimal to be set to other values?

This test is more general for participants in the StackerDb. This test could be useful as it uses max-writes.


What's expected from bad actor:

  1. send a lot of packages (instead of 1 because has custom node)
  2. signers/nodes see that as bad behavior and stop communicating with that

Involve test peer to maybe try to test this.