This guide explains Bitcoin Core banlist in plain English. It focuses on what the subject is, why it matters and what a beginner should remember.
TL;DR
- What it is: Bitcoin Core 0.12.0 added setban, listbanned and clearbanned RPCs alongside automatic peer misbehaviour controls. Administrators could add or remove individual IP addresses and subnets with relative or absolute expiry.
- Why it matters: Bitcoin Core’s ban RPCs are useful incident controls, but they are blunt local policy. Safe administration uses narrow scopes, explicit expiries, peer-diversity monitoring and recoverable change records instead of permanent reactionary blocklists.
- Current position: Bitcoin Core 0.12.0 added setban, listbanned and clearbanned RPCs alongside automatic peer misbehaviour controls.
Bitcoin Core banlist in simple English
Bitcoin Core banlist: A host ban affects one address, while CIDR or explicit masks can cover many peers, gateways or an entire provider range.
Simple example
A node operator is checking Bitcoin Core banlist. Resolve the normalised subnet returned by the node and compare it with the intended range before approving a broad ban.
Key terms in plain English
- Bitcoin Core:
- Widely used software that validates Bitcoin and can provide wallet, network and operator tools.
- RPC:
- A command that software sends to a node to request information or a local action.
- Node:
- A computer running Bitcoin software that checks data and communicates with other peers.
Manual RPC surface
setban accepted an IP address or network mask plus add or remove, with optional ban time and an absolute-time flag. Listbanned returned active entries and clearbanned removed the complete list. Port numbers were not valid targets. Scripts must validate the requested network before changing live connectivity.
Address and subnet scope
A host ban affects one address, while CIDR or explicit masks can cover many peers, gateways or an entire provider range. IPv4 and IPv6 notation require separate review. Resolve the normalised subnet returned by the node and compare it with the intended range before approving a broad ban.
Expiry semantics
Relative duration and absolute Unix time have different failure modes. A value interpreted in the wrong mode can expire immediately or persist far longer than intended. Operational tools should display the calculated expiry in UTC, require a reason and owner, and default to a reviewable limited duration.
Automatic versus manual state
Protocol misbehaviour can trigger automatic local actions under release-specific scoring rules, while manual RPC entries represent operator intent. Modern Core terminology and behaviour have evolved. Monitoring should record source and release rather than assuming every disconnected peer appears in the same persistent ban structure.
Peer-diversity risk
Banning a large range can remove independent paths and make eclipse or partition attacks easier, especially on a node with few outbound choices. Do not convert noisy logs into blanket bans. Assess autonomous systems, address families, onion peers, inbound versus outbound roles and whether the fault is actually local.
Recovery and audit
Before clearing all entries, export the current list and identify emergency access paths. Clearbanned is broad and can restore unwanted peers as well as connectivity. Prefer a targeted removal when the specific subnet is known, and watch peer count, chain tip and block propagation after every change.
How specialists test it
Developers test the proposal with made-up data on an isolated test network. They check normal cases and deliberately invalid cases. Different implementations should reach the same result before anyone relies on the proposal.
Frequently asked questions
What is the main point of Bitcoin Core banlist?
Bitcoin Core banlist: A host ban affects one address, while CIDR or explicit masks can cover many peers, gateways or an entire provider range.
For Bitcoin Core banlist, what should a beginner know about manual RPC surface?
setban accepted an IP address or network mask plus add or remove, with optional ban time and an absolute-time flag.
For Bitcoin Core banlist, what should a beginner know about address and subnet scope?
A host ban affects one address, while CIDR or explicit masks can cover many peers, gateways or an entire provider range.
For Bitcoin Core banlist, what should a beginner know about expiry semantics?
Relative duration and absolute Unix time have different failure modes. A value interpreted in the wrong mode can expire immediately or persist far longer than intended.
Conclusion
Bitcoin Core’s ban RPCs are useful incident controls, but they are blunt local policy. Safe administration uses narrow scopes, explicit expiries, peer-diversity monitoring and recoverable change records instead of permanent reactionary blocklists.
Primary sources
Check the current specification status and the documentation for the exact implementation you operate before moving production funds or changing a mining node.
Join the ASIC Mining Discussion
Members can read and join the discussion
Log in to read comments from other miners. Create a free account if you would like to ask a question or share your experience.
Membership helps us protect the discussion from spam and keep answers useful.