Skip to content

Commit

Permalink
force beacon publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed May 26, 2024
1 parent 982d586 commit 1c181b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private void publish(PendingBlock p) {
private void publish(PendingBlock p, boolean force) {
assert p.witnesses.size() >= params().majority() : "Publishing non majority block";
var publish = p.published.compareAndSet(false, true);
if (!publish) {
if (!publish && !force) {
log.trace("Already published: {} hash: {} height: {} witnesses: {} on: {}", p.block.block.getBodyCase(),
p.block.hash, p.block.height(), p.witnesses.values().size(), params().member().getId());
return;
Expand Down

0 comments on commit 1c181b4

Please sign in to comment.