hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

feat!: Address agnostic p2p #5176

Open dima74 opened 4 days ago

dima74 commented 4 days ago

Context & Solution

Please see https://github.com/hyperledger/iroha/issues/5117#issuecomment-2414908987 for detailed description

Migration Guide (optional)

New parameter was added (network.external_port in the config, or P2P_EXTERNAL_PORT env var). This parameter should contain external port of the peer used for p2p (as seen by other peers). Usually it equals port from existing parameter network.address (or P2P_ADDRESS env), but can be different in case peer is inside docker or behind reverse proxy.

Review notes (optional)

I split meaningful changes into second commit. First commit contains refactoring related to Peer vs PeerId.


TODO:

Checklist

github-actions[bot] commented 4 days ago

@BAStos525