From 1b5a8245844c9926debc5166f6f930bc89e7e7b7 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 1 Sep 2020 10:55:55 -0700 Subject: [PATCH] network: fix bug in BIP37 relay flag handling. The relay flag in the version message is used in conjunction with BIP37 to receive bloom-filtered transactions. When it is set to false, transactions are not relayed until a bloom filter is set. Since we don't implement BIP37 (it's not useful for shielded transactions), this means we'll never receive transactions. --- zebra-network/src/peer_set/initialize.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra-network/src/peer_set/initialize.rs b/zebra-network/src/peer_set/initialize.rs index 16e7d701..3666a959 100644 --- a/zebra-network/src/peer_set/initialize.rs +++ b/zebra-network/src/peer_set/initialize.rs @@ -65,6 +65,7 @@ where // XXX .with_addr(addr) once we can access our configured address .with_advertised_services(PeerServices::NODE_NETWORK) .with_user_agent(crate::constants::USER_AGENT.to_string()) + .want_transactions(true) .finish() .expect("configured all required parameters"); (