hyperledger-labs / Scorex

Scorex 2.0 Core
Apache License 2.0
543 stars 115 forks source link

Minor updates for networking #369

Open polarker opened 4 years ago

polarker commented 4 years ago

Three minor updates

  1. Enable pull model for incoming connections too. Right now, pull model is only enabled for outgoing connections.
  2. Both confirmed and unconfirmed connections are considered when checking the number of connections.
  3. Use remoteAddress as peer's address, if there is no address info in it's PeerInfo