Files
chia-blockchain/chia/protocols/protocol_timing.py
Arvid NorbergandGitHub c4e714eeab [CHIA-1829] don't drop outgoing response messages (#18990)
never rate limit outgoing response messages (RespondBlock, RespondBlocks, RejectBlock, RejectBlocks). Instead, disconnect any peer sending unsolicited response blocks
2024-12-11 09:09:09 -07:00

9 lines
300 B
Python

# These settings should not be end-user configurable
from __future__ import annotations
INVALID_PROTOCOL_BAN_SECONDS = 10
API_EXCEPTION_BAN_SECONDS = 10
INTERNAL_PROTOCOL_ERROR_BAN_SECONDS = 10 # Don't flap if our client is at fault
CONSENSUS_ERROR_BAN_SECONDS = 600
RATE_LIMITER_BAN_SECONDS = 300