mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-28 18:14:19 -05:00
never rate limit outgoing response messages (RespondBlock, RespondBlocks, RejectBlock, RejectBlocks). Instead, disconnect any peer sending unsolicited response blocks
9 lines
300 B
Python
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
|