mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge a4d7ac7bbe into merged_master (Elements PR #1317)
This commit is contained in:
commit
9c1d4cc8ff
17 changed files with 653 additions and 24 deletions
|
|
@ -5012,7 +5012,9 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
|
|||
auto txid = txinfo.tx->GetHash();
|
||||
auto wtxid = txinfo.tx->GetWitnessHash();
|
||||
// Peer told you to not send transactions at that feerate? Don't bother sending it.
|
||||
if (txinfo.fee < filterrate.GetFee(txinfo.vsize)) {
|
||||
// ELEMENTS: use the discounted vsize here so that discounted CTs are relayed.
|
||||
// discountvsize only differs from vsize if accept_discount_ct is true.
|
||||
if (txinfo.fee < filterrate.GetFee(txinfo.discountvsize)) {
|
||||
continue;
|
||||
}
|
||||
if (peer->m_tx_relay->m_bloom_filter && !peer->m_tx_relay->m_bloom_filter->IsRelevantAndUpdate(*txinfo.tx)) continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue