Skip to content

Commit e8d10c1

Browse files
committed
rebase fixes
1 parent 06a7d1f commit e8d10c1

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

packages/beacon-node/src/api/impl/beacon/blocks/index.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
computeTimeAtSlot,
55
parseSignedBlindedBlockOrContents,
66
reconstructFullBlockOrContents,
7-
DataAvailableStatus,
87
} from "@lodestar/state-transition";
98
import {SLOTS_PER_HISTORICAL_ROOT} from "@lodestar/params";
109
import {sleep, toHex} from "@lodestar/utils";
@@ -121,18 +120,12 @@ export function getBeaconBlockApi({
121120
}
122121

123122
try {
124-
await verifyBlocksInEpoch.call(
125-
chain as BeaconChain,
126-
parentBlock,
127-
[blockForImport],
128-
[DataAvailableStatus.available],
129-
{
130-
...opts,
131-
verifyOnly: true,
132-
skipVerifyBlockSignatures: true,
133-
skipVerifyExecutionPayload: true,
134-
}
135-
);
123+
await verifyBlocksInEpoch.call(chain as BeaconChain, parentBlock, [blockForImport], {
124+
...opts,
125+
verifyOnly: true,
126+
skipVerifyBlockSignatures: true,
127+
skipVerifyExecutionPayload: true,
128+
});
136129
} catch (error) {
137130
chain.logger.error("Consensus checks failed while publishing the block", valLogMeta, error as Error);
138131
chain.persistInvalidSszValue(

packages/beacon-node/src/chain/blocks/verifyBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export async function verifyBlocksInEpoch(
123123
// All signatures at once
124124
opts.skipVerifyBlockSignatures !== true
125125
? verifyBlocksSignatures(this.bls, this.logger, this.metrics, preState0, blocks, opts)
126-
: Promise.resolve(),
126+
: Promise.resolve({verifySignaturesTime: Date.now()}),
127127

128128
// ideally we want to only persist blocks after verifying them however the reality is there are
129129
// rarely invalid blocks we'll batch all I/O operation here to reduce the overhead if there's

0 commit comments

Comments
 (0)