Skip to content

Commit

Permalink
Merge branch 'master' into check-network-on-start
Browse files Browse the repository at this point in the history
  • Loading branch information
gconnect authored Sep 30, 2024
2 parents e935764 + d8a8cc4 commit d496675
Show file tree
Hide file tree
Showing 35 changed files with 37,345 additions and 16,814 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@
## Unreleased Changes

### Breaking Changes
- Renamed metrics `validator_attestation_publication_delay`,`validator_block_publication_delay` and `beacon_block_import_delay_counter` to include the suffix `_total` added by the current version of prometheus.

### Additions and Improvements
- Removed the deprecated [GetBlindedBlock](https://ethereum.github.io/beacon-APIs/#/ValidatorRequiredApi/produceBlindedBlock)
- Removed the deprecated [GetBlockV2](https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Validator/produceBlockV2)
- Implemented [PostAggregateAndProofsV2](https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Validator/publishAggregateAndProofsV2) (adding support for Electra)
- Added support for [Ephemery Testnet](https://github.com/ephemery.dev) `--network=ephemery`
- Renamed metrics `validator_attestation_publication_delay`,`validator_block_publication_delay` and `beacon_block_import_delay_counter` to include the suffix `_total` added by the current version of prometheus.
- Updated bootnodes for Holesky network
- Added new `--p2p-flood-publish-enabled` parameter to control whenever flood publishing behaviour is enabled (applies to all subnets). Previous teku versions always had this behaviour enabled. Default is `true`.
- Add a fix for [CVE-2024-7254](https://avd.aquasec.com/nvd/2024/cve-2024-7254/)
- Added a fix for [CVE-2024-7254](https://avd.aquasec.com/nvd/2024/cve-2024-7254/)
- Updated LUKSO configuration with Deneb fork scheduled for epoch 123075 (November 20, 2024, 16:20:00 UTC)

### Bug Fixes
- removed a warning from logs about non blinded blocks being requested (#8562)
- Removed a warning from logs about non blinded blocks being requested (#8562)
- Fixed `blockImportCompleted` log message timing [#8653](https://github.com/Consensys/teku/pull/8653)
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public SafeFuture<SendSignedBlockResult> sendSignedBlock(
return gossipAndImportUnblindedSignedBlockAndBlobSidecars(
signedBlock, blobSidecars, broadcastValidationLevel, blockPublishingPerformance);
})
.thenCompose(result -> calculateResult(blockContainer, result));
.thenCompose(result -> calculateResult(blockContainer, result, blockPublishingPerformance));
}

private SafeFuture<BlockImportAndBroadcastValidationResults>
Expand Down Expand Up @@ -133,7 +133,8 @@ abstract void publishBlockAndBlobSidecars(

private SafeFuture<SendSignedBlockResult> calculateResult(
final SignedBlockContainer maybeBlindedBlockContainer,
final BlockImportAndBroadcastValidationResults blockImportAndBroadcastValidationResults) {
final BlockImportAndBroadcastValidationResults blockImportAndBroadcastValidationResults,
final BlockPublishingPerformance blockPublishingPerformance) {

// broadcast validation can fail earlier than block import.
// The assumption is that in that block import will fail but not as fast
Expand All @@ -155,6 +156,7 @@ private SafeFuture<SendSignedBlockResult> calculateResult(
.blockImportResult()
.thenApply(
importResult -> {
blockPublishingPerformance.blockImportCompleted();
if (importResult.isSuccessful()) {
LOG.trace(
"Successfully imported proposed block: {}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ SafeFuture<BlockImportAndBroadcastValidationResults> importBlockAndBlobSidecars(
final BlockPublishingPerformance blockPublishingPerformance) {
// provide blobs for the block before importing it
blockBlobSidecarsTrackersPool.onCompletedBlockAndBlobSidecars(block, blobSidecars);
return blockImportChannel
.importBlock(block, broadcastValidationLevel)
.thenPeek(__ -> blockPublishingPerformance.blockImportCompleted());
return blockImportChannel.importBlock(block, broadcastValidationLevel);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ SafeFuture<BlockImportAndBroadcastValidationResults> importBlockAndBlobSidecars(
final List<BlobSidecar> blobSidecars,
final BroadcastValidationLevel broadcastValidationLevel,
final BlockPublishingPerformance blockPublishingPerformance) {
return blockImportChannel
.importBlock(block, broadcastValidationLevel)
.thenPeek(__ -> blockPublishingPerformance.blockImportCompleted());
return blockImportChannel.importBlock(block, broadcastValidationLevel);
}

@Override
Expand Down
Loading

0 comments on commit d496675

Please sign in to comment.