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.relay = true;
|
||||||
this.localNonce = utils.nonce();
|
this.localNonce = utils.nonce();
|
||||||
this.filterRate = -1;
|
this.filterRate = -1;
|
||||||
this.addrFilter = bcoin.bloom.fromRate(5000, 0.001, -1);
|
this.addrFilter = new bcoin.bloom.rolling(5000, 0.001);
|
||||||
this.invFilter = bcoin.bloom.fromRate(50000, 0.000001, -1);
|
this.invFilter = new bcoin.bloom.rolling(50000, 0.000001);
|
||||||
|
|
||||||
this.challenge = null;
|
this.challenge = null;
|
||||||
this.lastPong = -1;
|
this.lastPong = -1;
|
||||||
|
|||||||
@ -167,12 +167,12 @@ function Pool(options) {
|
|||||||
|
|
||||||
this.tx = {
|
this.tx = {
|
||||||
filter: !this.mempool
|
filter: !this.mempool
|
||||||
? bcoin.bloom.fromRate(50000, 0.000001, -1)
|
? new bcoin.bloom.rolling(50000, 0.000001)
|
||||||
: null,
|
: null,
|
||||||
type: constants.inv.TX
|
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) {
|
if (this.options.witness) {
|
||||||
this.block.type |= constants.WITNESS_MASK;
|
this.block.type |= constants.WITNESS_MASK;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user