Add JavaDocs for the new PeerGroup methods added by Oscar.

This commit is contained in:
Mike Hearn 2015-03-18 12:49:13 +01:00
parent 2c5d9f73ed
commit f693d88620

View File

@ -1913,10 +1913,16 @@ public class PeerGroup implements TransactionBroadcaster {
return vRunning;
}
/**
* Can be used to disable Bloom filtering entirely, even in SPV mode. You are very unlikely to need this, it is
* an optimisation for rare cases when full validation is not required but it's still more efficient to download
* full blocks than filtered blocks.
*/
public void setBloomFilteringEnabled(boolean bloomFilteringEnabled) {
this.vBloomFilteringEnabled = bloomFilteringEnabled;
}
/** Returns whether the Bloom filtering protocol optimisation is in use: defaults to true. */
public boolean isBloomFilteringEnabled() {
return vBloomFilteringEnabled;
}