settle down panda (#3844)

Signed-off-by: Justin Florentine <justin+github@florentine.us>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/3848/head
Justin Florentine 3 years ago committed by GitHub
parent 3835cb7238
commit b53aa3ac06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/PandaPrinter.java

@ -31,6 +31,7 @@ public class PandaPrinter implements TTDReachedListener {
private static final Logger LOG = LoggerFactory.getLogger(PandaPrinter.class);
private static final String pandaBanner = PandaPrinter.loadBanner();
private boolean beenDisplayed = false;
private static String loadBanner() {
Class<PandaPrinter> c = PandaPrinter.class;
@ -50,8 +51,9 @@ public class PandaPrinter implements TTDReachedListener {
@Override
public void onTTDReached(final boolean reached) {
if (reached) {
if (reached && !beenDisplayed) {
LOG.info("\n" + pandaBanner);
this.beenDisplayed = true;
}
}
}

Loading…
Cancel
Save