You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 1.5KB

  1. Reduce Traffic
  2. ==============
  3. Some node operators need to deal with bandwidth caps imposed by their ISPs.
  4. By default, bitcoin-core allows up to 125 connections to different peers, 8 of
  5. which are outbound. You can therefore, have at most 117 inbound connections.
  6. The default settings can result in relatively significant traffic consumption.
  7. Ways to reduce traffic:
  8. ## 1. Use `-maxuploadtarget=<MiB per day>`
  9. A major component of the traffic is caused by serving historic blocks to other nodes
  10. during the initial blocks download phase (syncing up a new node).
  11. This option can be specified in MiB per day and is turned off by default.
  12. This is *not* a hard limit; only a threshold to minimize the outbound
  13. traffic. When the limit is about to be reached, the uploaded data is cut by no
  14. longer serving historic blocks (blocks older than one week).
  15. Keep in mind that new nodes require other nodes that are willing to serve
  16. historic blocks.
  17. Whitelisted peers will never be disconnected, although their traffic counts for
  18. calculating the target.
  19. ## 2. Disable "listening" (`-listen=0`)
  20. Disabling listening will result in fewer nodes connected (remember the maximum of 8
  21. outbound peers). Fewer nodes will result in less traffic usage as you are relaying
  22. blocks and transactions to fewer nodes.
  23. ## 3. Reduce maximum connections (`-maxconnections=<num>`)
  24. Reducing the maximum connected nodes to a minimum could be desirable if traffic
  25. limits are tiny. Keep in mind that bitcoin's trustless model works best if you are
  26. connected to a handful of nodes.