fix: Use the default Zcash port in version messages (#661)

We don't provide our address yet, so the port should be ignored.

But let's use the correct port, to avoid carrying this bug forward into
working code.
This commit is contained in:
teor 2020-07-16 04:43:28 +10:00 committed by GitHub
parent f70f3b324c
commit ab6d1f5ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -121,7 +121,9 @@ where
services: PeerServices::NODE_NETWORK,
timestamp: Utc::now(),
address_recv: (PeerServices::NODE_NETWORK, addr),
address_from: (PeerServices::NODE_NETWORK, "0.0.0.0:9000".parse().unwrap()),
// TODO: when we've implemented block and transaction relaying,
// send our configured address to the peer
address_from: (PeerServices::NODE_NETWORK, "0.0.0.0:8233".parse().unwrap()),
nonce: local_nonce,
user_agent,
// XXX eventually the `PeerConnector` will need to have a handle