|
|
@ -2755,8 +2755,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(pfrom->cs_filter); |
|
|
|
LOCK(pfrom->cs_filter); |
|
|
|
delete pfrom->pfilter; |
|
|
|
pfrom->pfilter.reset(new CBloomFilter(filter)); |
|
|
|
pfrom->pfilter = new CBloomFilter(filter); |
|
|
|
|
|
|
|
pfrom->pfilter->UpdateEmptyFull(); |
|
|
|
pfrom->pfilter->UpdateEmptyFull(); |
|
|
|
pfrom->fRelayTxes = true; |
|
|
|
pfrom->fRelayTxes = true; |
|
|
|
} |
|
|
|
} |
|
|
@ -2792,8 +2791,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(pfrom->cs_filter); |
|
|
|
LOCK(pfrom->cs_filter); |
|
|
|
if (pfrom->GetLocalServices() & NODE_BLOOM) { |
|
|
|
if (pfrom->GetLocalServices() & NODE_BLOOM) { |
|
|
|
delete pfrom->pfilter; |
|
|
|
pfrom->pfilter.reset(new CBloomFilter()); |
|
|
|
pfrom->pfilter = new CBloomFilter(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
pfrom->fRelayTxes = true; |
|
|
|
pfrom->fRelayTxes = true; |
|
|
|
} |
|
|
|
} |
|
|
|