switch back to rolling filters.
This commit is contained in:
parent
d8800632ea
commit
14b2b528f3
@ -100,8 +100,8 @@ function Peer(pool, options) {
|
||||
this.relay = true;
|
||||
this.localNonce = utils.nonce();
|
||||
this.filterRate = -1;
|
||||
this.addrFilter = bcoin.bloom.fromRate(5000, 0.001, -1);
|
||||
this.invFilter = bcoin.bloom.fromRate(50000, 0.000001, -1);
|
||||
this.addrFilter = new bcoin.bloom.rolling(5000, 0.001);
|
||||
this.invFilter = new bcoin.bloom.rolling(50000, 0.000001);
|
||||
|
||||
this.challenge = null;
|
||||
this.lastPong = -1;
|
||||
|
||||
@ -167,12 +167,12 @@ function Pool(options) {
|
||||
|
||||
this.tx = {
|
||||
filter: !this.mempool
|
||||
? bcoin.bloom.fromRate(50000, 0.000001, -1)
|
||||
? new bcoin.bloom.rolling(50000, 0.000001)
|
||||
: null,
|
||||
type: constants.inv.TX
|
||||
};
|
||||
|
||||
this.rejects = bcoin.bloom.fromRate(120000, 0.000001, -1);
|
||||
this.rejects = new bcoin.bloom.rolling(120000, 0.000001);
|
||||
|
||||
if (this.options.witness) {
|
||||
this.block.type |= constants.WITNESS_MASK;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user