Skip to content

Commit

Permalink
no aux populating
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed May 30, 2024
1 parent b05b8db commit afb7a74
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void join(Join join, Digest from, StreamObserver<Gateway> responseObserver, Time
if (context.totalCount() == cardinality()) {
join();
} else {
populate(new ArrayList<>(context.activeMembers()));
// populate(new ArrayList<>(context.activeMembers()));
}
});
}, log));
Expand Down Expand Up @@ -464,14 +464,17 @@ Redirect seed(Registration registration, Digest from) {
}
return view.stable(() -> {
var newMember = view.new Participant(note.getId());
final var sample = context.sample(params.maximumTxfr(), Entropy.bitsStream(), (Digest) null);

final var introductions = observers.stream().map(context::getMember).toList();

log.debug("Member seeding: {} view: {} context: {} sample: {} on: {}", newMember.getId(), currentView(),
context.getId(), sample.size(), node.getId());
context.getId(), introductions.size(), node.getId());
return Redirect.newBuilder()
.setView(currentView().toDigeste())
.addAllSample(
sample.stream().filter(java.util.Objects::nonNull).map(Participant::getSignedNote).toList())
.addAllSample(introductions.stream()
.filter(java.util.Objects::nonNull)
.map(Participant::getSignedNote)
.toList())
.setCardinality(cardinality())
.setBootstrap(bootstrap)
.setRings(context.getRingCount())
Expand Down

0 comments on commit afb7a74

Please sign in to comment.