mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-22 14:22:45 +01:00
BloomFilter: remove params
from constructor
This commit is contained in:
parent
21217e3c0b
commit
32ee59f7bb
3 changed files with 4 additions and 4 deletions
|
@ -307,7 +307,7 @@ public class BitcoinSerializer extends MessageSerializer {
|
|||
*/
|
||||
@Override
|
||||
public Message makeBloomFilter(ByteBuffer payload) throws ProtocolException {
|
||||
return new BloomFilter(params, payload);
|
||||
return new BloomFilter(payload);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -79,8 +79,8 @@ public class BloomFilter extends Message {
|
|||
/**
|
||||
* Construct a BloomFilter by deserializing payload
|
||||
*/
|
||||
public BloomFilter(NetworkParameters params, ByteBuffer payload) throws ProtocolException {
|
||||
super(params, payload);
|
||||
public BloomFilter(ByteBuffer payload) throws ProtocolException {
|
||||
super(payload);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -827,7 +827,7 @@ public class PeerGroupTest extends TestWithPeerGroup {
|
|||
// Send the chain that doesn't have all the transactions in it. The blocks after the exhaustion point should all
|
||||
// be ignored.
|
||||
int epoch = wallet.getKeyChainGroupCombinedKeyLookaheadEpochs();
|
||||
BloomFilter filter = new BloomFilter(UNITTEST, ByteBuffer.wrap(p1.lastReceivedFilter.bitcoinSerialize()));
|
||||
BloomFilter filter = new BloomFilter(ByteBuffer.wrap(p1.lastReceivedFilter.bitcoinSerialize()));
|
||||
filterAndSend(p1, blocks, filter);
|
||||
Block exhaustionPoint = blocks.get(3);
|
||||
pingAndWait(p1);
|
||||
|
|
Loading…
Add table
Reference in a new issue