stacks-network / stacks-core

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

[stacks-node] ignore old block proposal validation requests for blocks older than x seconds #5439

Open jferrant opened 2 weeks ago

jferrant commented 2 weeks ago

When processing requests, if it sees a block validation request from greater than X seconds ago (may need to add a timestamp in the request), quickly respond with an error code so the node doesn't spend any time doing the validation if the block is already too old.

See https://github.com/stacks-network/stacks-core/pull/5409#issuecomment-2452406619