Skip to content

Commit

Permalink
Revert "Ignore Firo non-Zcash nodes in Zebra's address book (#6398)" (#…
Browse files Browse the repository at this point in the history
…6477)

This reverts commit 92e2f52.
  • Loading branch information
teor2345 authored Apr 11, 2023
1 parent 312a473 commit 3d11a09
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions zebra-network/src/peer/priority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,9 @@ fn address_is_valid_for_outbound_connections(
return Err(
"invalid peer port: port is for Regtest, but Zebra does not support that network",
);
} else if [16125, 26125, 8168, 18168, 38168].contains(&peer_addr.port()) {
// 16125/26125 are used by Flux/ZelCash, which uses the same network magic numbers as Zcash,
// so we have to reject it by port:
// - https://github.com/RunOnFlux/fluxd/blob/master/src/zelnode/zelnodeconfig.cpp#L76
// - https://github.com/RunOnFlux/fluxd/blob/master/src/init.cpp#L409
// 8168/18168/38168 are used by Firo/Zcoin, which uses the same network magic numbers as Zcash,
// so we have to reject it by port:
// - https://github.com/firoorg/firo/blob/master/src/chainparamsseeds.h
} else if [16125, 26125].contains(&peer_addr.port()) {
// 16125/26125 is used by Flux/ZelCash, which uses the same network magic numbers as Zcash,
// so we have to reject it by port
return Err("invalid peer port: port is for a non-Zcash network");
}
}
Expand Down

0 comments on commit 3d11a09

Please sign in to comment.