public interface PeerFilterProvider
PeerGroup.recalculateFastCatchupAndFilter(org.bitcoinj.core.PeerGroup.FilterRecalculateMode)
whenever a change occurs which effects the data provided via this interface.Modifier and Type | Method and Description |
---|---|
void |
beginBloomFilterCalculation()
Called on all registered filter providers before getBloomFilterElementCount and getBloomFilter are called.
|
void |
endBloomFilterCalculation() |
BloomFilter |
getBloomFilter(int size,
double falsePositiveRate,
long nTweak)
Gets a bloom filter that contains all the necessary elements for the listener to receive relevant transactions.
|
int |
getBloomFilterElementCount()
Gets the number of elements that will be added to a bloom filter returned by
getBloomFilter(int, double, long) |
long |
getEarliestKeyCreationTime()
Returns the earliest timestamp (seconds since epoch) for which full/bloom-filtered blocks must be downloaded.
|
boolean |
isRequiringUpdateAllBloomFilter()
Whether this filter provider depends on the server updating the filter on all matches
|
long getEarliestKeyCreationTime()
System.currentTimeMillis()
/1000.void beginBloomFilterCalculation()
int getBloomFilterElementCount()
getBloomFilter(int, double, long)
BloomFilter getBloomFilter(int size, double falsePositiveRate, long nTweak)
boolean isRequiringUpdateAllBloomFilter()
void endBloomFilterCalculation()
Copyright © 2018. All rights reserved.