Skip to content
/ besu Public
forked from hyperledger/besu

Commit

Permalink
Fixed issues after merge (Issue hyperledger#3810)
Browse files Browse the repository at this point in the history
Signed-off-by: amsmota <[email protected]>
  • Loading branch information
amsmota committed Apr 16, 2024
1 parent 40f51b8 commit 04814f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ private static MinedBlockObserver blockLogger(
String.format(
"%s %s #%,d / %d tx / %d pending / %,d (%01.1f%%) gas / (%s)",
block.getHeader().getCoinbase().equals(localAddress) ? "Produced" : "Imported",
block.getBody().getTransactions().size()==0 ? "empty block" : "block",
block.getBody().getTransactions().size() == 0 ? "empty block" : "block",
block.getHeader().getNumber(),
block.getBody().getTransactions().size(),
transactionPool.count(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,19 @@ public abstract class CommandTestAbstract {
private static final Logger TEST_LOGGER = LoggerFactory.getLogger(CommandTestAbstract.class);

protected static final int POA_BLOCK_PERIOD_SECONDS = 5;
protected static final int POA_EMPTY_BLOCK_PERIOD_SECONDS = 50; // TODO: IS THIS APPLICABLE FOR POA?
protected static final int POA_EMPTY_BLOCK_PERIOD_SECONDS =
50; // TODO: IS THIS APPLICABLE FOR POA?
protected static final JsonObject VALID_GENESIS_QBFT_POST_LONDON =
(new JsonObject())
.put(
"config",
new JsonObject()
.put("londonBlock", 0)
.put("qbft", new JsonObject().put("blockperiodseconds", POA_BLOCK_PERIOD_SECONDS))
.put(
"qbft",
new JsonObject().put("blockperiodseconds", POA_BLOCK_PERIOD_SECONDS)
.put(
"qbft",
new JsonObject().put("emptyblockperiodseconds", POA_EMPTY_BLOCK_PERIOD_SECONDS)
));
new JsonObject()
.put("emptyblockperiodseconds", POA_EMPTY_BLOCK_PERIOD_SECONDS)));
protected static final JsonObject VALID_GENESIS_IBFT2_POST_LONDON =
(new JsonObject())
.put(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public void posBlockCreationMaxTimeOption() {
@Test
public void posBlockCreationMaxTimeOutOfAllowedRange() {
internalTestFailure(
"--Xpos-block-creation-max-time must be positive and 12000",
"--Xpos-block-creation-max-time must be positive and less or equal 12000",
"--Xpos-block-creation-max-time",
"17000");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ public Block createBlock(final long headerTimeStampSeconds) {
/**
* Send proposal message.
*
* @param headerTimeStampSeconds the header time stamp seconds
* @param block to send
*/
public void sendProposalMessage(final Block block) {
LOG.trace(
LOG.debug(
"Creating proposed block blockHeader={}",
block.getHeader());
updateStateWithProposalAndTransmit(block, emptyList(), emptyList());
Expand Down

0 comments on commit 04814f9

Please sign in to comment.