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.
This commit is contained in:
parent
60a0b8c382
commit
1b5a824584
|
|
@ -65,6 +65,7 @@ where
|
||||||
// XXX .with_addr(addr) once we can access our configured address
|
// XXX .with_addr(addr) once we can access our configured address
|
||||||
.with_advertised_services(PeerServices::NODE_NETWORK)
|
.with_advertised_services(PeerServices::NODE_NETWORK)
|
||||||
.with_user_agent(crate::constants::USER_AGENT.to_string())
|
.with_user_agent(crate::constants::USER_AGENT.to_string())
|
||||||
|
.want_transactions(true)
|
||||||
.finish()
|
.finish()
|
||||||
.expect("configured all required parameters");
|
.expect("configured all required parameters");
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue