Log blob count (#6761)

Current blog logging shows blob transaction count.  The blob count is
more relevant and reflects the label better.

Signed-off-by: Danno Ferrin (shemnon) <danno.ferrin@shemnon.com>
pull/6767/head
Danno Ferrin 8 months ago committed by GitHub
parent 42b32d2531
commit 2bfd510785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineNewPayload.java

@ -320,7 +320,13 @@ public abstract class AbstractEngineNewPayload extends ExecutionEngineJsonRpcMet
if (executionResult.isSuccessful()) {
logImportedBlockInfo(
block, blobTransactions.size(), (System.currentTimeMillis() - startTimeMs) / 1000.0);
block,
blobTransactions.stream()
.map(Transaction::getVersionedHashes)
.flatMap(Optional::stream)
.mapToInt(List::size)
.sum(),
(System.currentTimeMillis() - startTimeMs) / 1000.0);
return respondWith(reqId, blockParam, newBlockHeader.getHash(), VALID);
} else {
if (executionResult.causedBy().isPresent()) {

Loading…
Cancel
Save