Skip to content

Commit

Permalink
only 2 epochs stored in nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Feb 11, 2024
1 parent 2ae9bb8 commit 0423537
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ethereal/src/main/java/com/salesforce/apollo/ethereal/Adder.java
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ private boolean decodeParents(Waiting wp) {
* Answer the bloom filter with the commits the receiver has
*/
private Biff haveCommits() {
var bff = new DigestBloomFilter(Entropy.nextBitsStreamLong(),
conf.epochLength() * conf.numberOfEpochs() * conf.nProc() * 2, conf.fpr());
var bff = new DigestBloomFilter(Entropy.nextBitsStreamLong(), conf.epochLength() * 2 * conf.nProc() * 2,
conf.fpr());
signedCommits.keySet().forEach(d -> bff.add(d));
return bff.toBff();
}
Expand All @@ -610,8 +610,8 @@ private Biff haveCommits() {
* Answer the bloom filter with the prevotes the receiver has
*/
private Biff havePreVotes() {
var bff = new DigestBloomFilter(Entropy.nextBitsStreamLong(),
conf.epochLength() * conf.numberOfEpochs() * conf.nProc() * 2, conf.fpr());
var bff = new DigestBloomFilter(Entropy.nextBitsStreamLong(), conf.epochLength() * 2 * conf.nProc() * 2,
conf.fpr());
signedPrevotes.keySet().forEach(d -> bff.add(d));
return bff.toBff();
}
Expand All @@ -620,8 +620,8 @@ private Biff havePreVotes() {
* Answer the bloom filter with the units the receiver has
*/
private Biff haveUnits() {
var bff = new DigestBloomFilter(Entropy.nextBitsStreamLong(),
conf.epochLength() * conf.numberOfEpochs() * conf.nProc() * 2, conf.fpr());
var bff = new DigestBloomFilter(Entropy.nextBitsStreamLong(), conf.epochLength() * 2 * conf.nProc() * 2,
conf.fpr());
waiting.keySet().forEach(d -> bff.add(d));
dag.have(bff);
return bff.toBff();
Expand Down

0 comments on commit 0423537

Please sign in to comment.