HomePhabricator

Peer preferentially with NODE_CASH nodes
d68e7e48547cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Peer preferentially with NODE_CASH nodes

Summary:
Add NODE_BITCOIN_CASH to required services for outbound
peer connections.
Not required for inbound peers.

Test Plan:

  • Remove peers.dat
  • Start up node
  • Monitor peer connections using e.g. $ bitcoin-cli getpeerinfo | egrep '(service|subver|inbound)'
  • Check that all peers for which inbound is false have bit 5 (0x20) set in their reported services
  • Connect to various other types of peers (BU, Classic, XT) using addnode and check that connections are successful
  • Check that inbound peers without NODE_CASH service bit set can connect (you should get occasional crawlers or Satoshi clients connecting with services < 0x20)

Reviewers: #bitcoin_abc, deadalnix, CCulianu

Reviewed By: #bitcoin_abc, CCulianu

Subscribers: CCulianu

Differential Revision: https://reviews.bitcoinabc.org/D457

Details

Provenance
freetraderAuthored on Aug 9 2017, 20:47
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Reviewer
Restricted Project
Differential Revision
D457: Peer preferentially with NODE_CASH nodes
Parents
rSTAGINGc16aa316833e: Always sign using replay protection
Branches
Unknown
Tags
Unknown