BloomFilter: remove params from constructor

This commit is contained in:
Andreas Schildbach 2023-03-30 00:31:02 +02:00
parent 21217e3c0b
commit 32ee59f7bb
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}
/**

View file

@ -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);
}
/**

View file

@ -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);