Most attacks on Bitcoin are described in terms of hash rate. This one needs none. It needs only to be every peer a node talks to, after which the node’s view of the network is whatever you decide to show it — and a node that cannot see the real chain cannot reject anything for disagreeing with it.
What does an eclipse actually achieve?
Control of one node’s information, which is enough for several things and not for others.
An eclipsed node can be fed a chain that the rest of the network has abandoned, so it shows confirmations for transactions that are not confirmed anywhere else. It can be denied a transaction entirely, so a payment it is waiting for never appears. And if it is a miner, its work can be directed at a branch nobody else is building on, which wastes it.
What an eclipse cannot do is make invalid blocks valid. The victim still enforces every rule, so the attacker must supply a chain that is genuinely valid and genuinely has work behind it — which is expensive, and which limits the attack to showing a real but minority history rather than an invented one.
That is why the attack is usually a precondition rather than an end. Eclipsing a merchant’s node lets a comparatively small amount of hash rate reverse a payment the merchant believes is confirmed, because the merchant is counting confirmations on a chain the attacker is producing alone.
How would you fill every slot?
By controlling where the victim’s addresses come from.
Heilman and co-authors described the attack in 2015 and the mechanism is instructive. A node keeps a table of addresses it has learned, and chooses outbound connections from it. Flood that table with addresses you control — by connecting repeatedly, by sending address messages, by waiting for the victim to restart — and eventually every outbound connection it makes lands on you. Occupy its inbound slots at the same time and nothing else can reach it.
The paper’s contribution was showing how cheap this was: the address table had exploitable structure, connections were not diverse enough, and a modest number of machines could do it. What followed was a sequence of defences rather than one fix.
What defends against it now?
Several mechanisms, none sufficient alone, which is the usual shape of a network defence.
The address table is bucketed by network location, so flooding it from one place no longer fills it — an attacker needs addresses spread across many distinct networks, which raises the cost from cheap to substantial.
Connection types were diversified. A node makes eight automatic outbound connections that relay everything, and separately two block-relay-only connections that carry blocks and no transactions or addresses. Those two are the quiet defence: they are harder for an attacker to anticipate because they do not participate in the gossip that would reveal them, and a node reached by even one honest block-relay peer cannot be shown a false chain.
A feeler connection, made every couple of minutes, tests an address from the table and disconnects, which keeps the table populated with peers that actually exist rather than with an attacker’s inventory. Anchor connections persist across restarts, so rebooting no longer hands an attacker a fresh draw.
The constants are in the source and worth knowing: eight full-relay outbound, two block-relay-only, one feeler, and up to eight manual connections an operator adds deliberately.
Why eight, and not eighty?
Because every connection costs somebody bandwidth, and the number is a compromise rather than a target.
Outbound connections are where the security lives — a node chooses them, so an attacker must manipulate the choice rather than simply arrive. More of them means more independent views of the network and a harder eclipse. Fewer means less bandwidth consumed, both by the node and by the peers it connects to.
Eight has held for a long time because of the second consideration. Every outbound connection a node makes is an inbound connection somebody else accepts, and inbound capacity on the network is a volunteered resource. Doubling the default would double the load on the nodes that accept connections, which are a minority, without doubling anybody’s security.
The two block-relay-only connections were added on top rather than by raising the eight, which is the more interesting design choice. They cost very little — blocks only, no transaction or address gossip — and they add exactly the property the eclipse attack targets. That is a good trade and it is why the defence arrived in that shape.
What can an operator do?
Add peers you chose, and watch the ones you did not.
The strongest single step is addnode, which connects to a peer you
specify and keeps doing so. A node with even one honest, persistent
connection to a peer the attacker does not control cannot be eclipsed,
because the real chain reaches it. Running two or three such
connections to nodes run by people you know converts the attack from
feasible to impractical.
Diversity of network path matters as well. A node reachable only over one network is easier to isolate than one also reachable over an overlay network, which is part of why address formats for alternative networks were standardised. The trade is that an overlay brings its own adversary model, and the transport encryption that now defaults on addresses a different part of the same problem.
And the simplest check is to look. A node whose peers are all new, all from one provider, or all connected at the same moment is displaying the shape of an attack, and the information is one command away.
How does this relate to a 51% attack?
It lowers the hash rate required, by shrinking the audience that has to be fooled.
Reversing a payment on the real network means outpacing the entire honest hash rate, which is the expensive scenario everyone describes. Reversing a payment against an eclipsed merchant means outpacing nothing: the merchant sees only the attacker’s chain, so a branch with a handful of blocks on it looks like six confirmations.
That changes the economics of the classic attack completely. The hard version needs a majority of global hash rate and is priced in the hundreds of millions; the eclipsed version needs enough hash rate to produce a few blocks at current difficulty, plus the network position, and is priced in a way that makes it worth doing against a large enough payment.
Which is why the defence that matters for anyone accepting large payments is not more confirmations. It is being certain that the chain you are counting them on is the one everyone else sees — one honest peer, chosen by you, settles it.
Why are light clients more exposed?
Because they verify less, so a false view costs the attacker less to construct.
A full node requires any chain shown to it to be entirely valid, which means an attacker must do real work. A light client checks headers and inclusion proofs, so a chain of headers with plausible work is enough to show it confirmations that do not exist — and headers are far cheaper to produce than valid blocks at low difficulty on a branch nobody checks.
Light clients also typically connect to a small number of servers, often one, which is an eclipse by configuration rather than by attack. A wallet pointed at a single server is in exactly the position this article describes, voluntarily.
That is the practical reason the advice to run your own node keeps appearing. It is not that a full node is immune; it is that eclipsing one is expensive and eclipsing the alternative is a default setting.
Check it yourself
Your node reports its peers and how each connection was made:
bitcoin-cli getpeerinfo | grep -E 'addr"|connection_type|inbound'
Look for the mix. You should see several outbound-full-relay
entries, a couple of block-relay-only, and whatever inbound
connections you accept. If every outbound peer shares a network prefix
or appeared within the same minute, that is worth investigating.
To add a peer you trust:
bitcoin-cli addnode "<host>:8333" "add"
One such connection to somebody you actually know is worth more than any amount of reading about the attack.
What remains uncertain
How much the defences cost a real attacker. The published analysis predates most of them, and nobody has repeated the measurement against current software. The cost has clearly risen; by how much is not documented.
Whether anyone is doing it. A successful eclipse is invisible to the victim by definition, and the parties who would detect it at scale — large exchanges and mining operations — do not publish. Absence of reports is weak evidence.
How the defences interact with privacy. Several measures work by diversifying and probing connections, which is more network activity tied to a node’s address. The transport encryption now standard helps, and the overall exposure of running a node has not been measured against the alternative of not running one.
Sources
- TechnicalEclipse Attacks on Bitcoin's Peer-to-Peer Network ↗
- First-partyBitcoin Core — src/net.h ↗
- First-partyBitcoin Core — src/addrman.cpp ↗
- PrimaryBIP 155 — addrv2 message ↗