id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
206414745_1542 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader(
final FastSyncState currentState) {
if (currentState.getPivotBlockHeader().isPresent()) {
return completedFuture(currentState);
}
return new PivotBlockRetriever(
protocolSchedule,
ethContext,
metricsSystem,
... |
206414745_1543 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader(
final FastSyncState currentState) {
if (currentState.getPivotBlockHeader().isPresent()) {
return completedFuture(currentState);
}
return new PivotBlockRetriever(
protocolSchedule,
ethContext,
metricsSystem,
... |
206414745_1544 | public static Optional<FastSyncDownloader> create(
final SynchronizerConfiguration syncConfig,
final Path dataDirectory,
final ProtocolSchedule protocolSchedule,
final ProtocolContext protocolContext,
final MetricsSystem metricsSystem,
final EthContext ethContext,
final WorldStateStorage wor... |
206414745_1545 | public static Optional<FastSyncDownloader> create(
final SynchronizerConfiguration syncConfig,
final Path dataDirectory,
final ProtocolSchedule protocolSchedule,
final ProtocolContext protocolContext,
final MetricsSystem metricsSystem,
final EthContext ethContext,
final WorldStateStorage wor... |
206414745_1546 | public static Optional<FastSyncDownloader> create(
final SynchronizerConfiguration syncConfig,
final Path dataDirectory,
final ProtocolSchedule protocolSchedule,
final ProtocolContext protocolContext,
final MetricsSystem metricsSystem,
final EthContext ethContext,
final WorldStateStorage wor... |
206414745_1547 | public CompletableFuture<FastSyncState> confirmPivotBlock() {
if (isStarted.compareAndSet(false, true)) {
LOG.info(
"Confirm pivot block {} with at least {} peers.", pivotBlockNumber, numberOfPeersToQuery);
queryPeers(pivotBlockNumber);
}
return result;
} |
206414745_1548 | public CompletableFuture<FastSyncState> confirmPivotBlock() {
if (isStarted.compareAndSet(false, true)) {
LOG.info(
"Confirm pivot block {} with at least {} peers.", pivotBlockNumber, numberOfPeersToQuery);
queryPeers(pivotBlockNumber);
}
return result;
} |
206414745_1549 | public CompletableFuture<FastSyncState> confirmPivotBlock() {
if (isStarted.compareAndSet(false, true)) {
LOG.info(
"Confirm pivot block {} with at least {} peers.", pivotBlockNumber, numberOfPeersToQuery);
queryPeers(pivotBlockNumber);
}
return result;
} |
206414745_1550 | public CompletableFuture<FastSyncState> confirmPivotBlock() {
if (isStarted.compareAndSet(false, true)) {
LOG.info(
"Confirm pivot block {} with at least {} peers.", pivotBlockNumber, numberOfPeersToQuery);
queryPeers(pivotBlockNumber);
}
return result;
} |
206414745_1551 | public CompletableFuture<FastSyncState> confirmPivotBlock() {
if (isStarted.compareAndSet(false, true)) {
LOG.info(
"Confirm pivot block {} with at least {} peers.", pivotBlockNumber, numberOfPeersToQuery);
queryPeers(pivotBlockNumber);
}
return result;
} |
206414745_1552 | public CompletableFuture<FastSyncState> confirmPivotBlock() {
if (isStarted.compareAndSet(false, true)) {
LOG.info(
"Confirm pivot block {} with at least {} peers.", pivotBlockNumber, numberOfPeersToQuery);
queryPeers(pivotBlockNumber);
}
return result;
} |
206414745_1553 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1554 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1555 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1556 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1557 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1558 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1559 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1560 | public CompletableFuture<FastSyncState> downloadPivotBlockHeader() {
if (isStarted.compareAndSet(false, true)) {
LOG.info("Retrieve a pivot block that can be confirmed by at least {} peers.", peersToQuery);
confirmBlock(pivotBlockNumber.get());
}
return result;
} |
206414745_1561 | public CompletableFuture<FastSyncState> start() {
if (!running.compareAndSet(false, true)) {
throw new IllegalStateException("FastSyncDownloader already running");
}
return start(initialFastSyncState);
} |
206414745_1562 | public CompletableFuture<FastSyncState> start() {
if (!running.compareAndSet(false, true)) {
throw new IllegalStateException("FastSyncDownloader already running");
}
return start(initialFastSyncState);
} |
206414745_1563 | public CompletableFuture<FastSyncState> start() {
if (!running.compareAndSet(false, true)) {
throw new IllegalStateException("FastSyncDownloader already running");
}
return start(initialFastSyncState);
} |
206414745_1564 | public CompletableFuture<FastSyncState> start() {
if (!running.compareAndSet(false, true)) {
throw new IllegalStateException("FastSyncDownloader already running");
}
return start(initialFastSyncState);
} |
206414745_1565 | public CompletableFuture<FastSyncState> start() {
if (!running.compareAndSet(false, true)) {
throw new IllegalStateException("FastSyncDownloader already running");
}
return start(initialFastSyncState);
} |
206414745_1566 | @Override
public void accept(final List<BlockWithReceipts> blocksWithReceipts) {
for (final BlockWithReceipts blockWithReceipts : blocksWithReceipts) {
if (!importBlock(blockWithReceipts)) {
throw new InvalidBlockException(
"Failed to import block",
blockWithReceipts.getHeader().getNumbe... |
206414745_1567 | @Override
public void accept(final List<BlockWithReceipts> blocksWithReceipts) {
for (final BlockWithReceipts blockWithReceipts : blocksWithReceipts) {
if (!importBlock(blockWithReceipts)) {
throw new InvalidBlockException(
"Failed to import block",
blockWithReceipts.getHeader().getNumbe... |
206414745_1568 | @Override
public CompletableFuture<List<BlockWithReceipts>> apply(final List<Block> blocks) {
final List<BlockHeader> headers = blocks.stream().map(Block::getHeader).collect(toList());
final CompletableFuture<Map<BlockHeader, List<TransactionReceipt>>> getReceipts =
GetReceiptsForHeadersTask.forHeaders(ethCon... |
206414745_1569 | @Override
public CompletableFuture<CheckpointRangeHeaders> apply(final CheckpointRange checkpointRange) {
final CompletableFuture<List<BlockHeader>> taskFuture = downloadHeaders(checkpointRange);
final CompletableFuture<CheckpointRangeHeaders> processedFuture =
taskFuture.thenApply(headers -> processHeaders(c... |
206414745_1570 | @Override
public CompletableFuture<CheckpointRangeHeaders> apply(final CheckpointRange checkpointRange) {
final CompletableFuture<List<BlockHeader>> taskFuture = downloadHeaders(checkpointRange);
final CompletableFuture<CheckpointRangeHeaders> processedFuture =
taskFuture.thenApply(headers -> processHeaders(c... |
206414745_1571 | @Override
public CompletableFuture<CheckpointRangeHeaders> apply(final CheckpointRange checkpointRange) {
final CompletableFuture<List<BlockHeader>> taskFuture = downloadHeaders(checkpointRange);
final CompletableFuture<CheckpointRangeHeaders> processedFuture =
taskFuture.thenApply(headers -> processHeaders(c... |
206414745_1572 | @Override
public CompletableFuture<CheckpointRangeHeaders> apply(final CheckpointRange checkpointRange) {
final CompletableFuture<List<BlockHeader>> taskFuture = downloadHeaders(checkpointRange);
final CompletableFuture<CheckpointRangeHeaders> processedFuture =
taskFuture.thenApply(headers -> processHeaders(c... |
206414745_1573 | public CompletableFuture<List<BlockHeader>> getNextCheckpointHeaders(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final int maximumHeaderRequestSize = syncConfig.getDownloaderHeaderRequestSize();
final long previousCheckpoi... |
206414745_1574 | public CompletableFuture<List<BlockHeader>> getNextCheckpointHeaders(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final int maximumHeaderRequestSize = syncConfig.getDownloaderHeaderRequestSize();
final long previousCheckpoi... |
206414745_1575 | public CompletableFuture<List<BlockHeader>> getNextCheckpointHeaders(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final int maximumHeaderRequestSize = syncConfig.getDownloaderHeaderRequestSize();
final long previousCheckpoi... |
206414745_1576 | public CompletableFuture<List<BlockHeader>> getNextCheckpointHeaders(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final int maximumHeaderRequestSize = syncConfig.getDownloaderHeaderRequestSize();
final long previousCheckpoi... |
206414745_1577 | public CompletableFuture<List<BlockHeader>> getNextCheckpointHeaders(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final int maximumHeaderRequestSize = syncConfig.getDownloaderHeaderRequestSize();
final long previousCheckpoi... |
206414745_1578 | public CompletableFuture<List<BlockHeader>> getNextCheckpointHeaders(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final int maximumHeaderRequestSize = syncConfig.getDownloaderHeaderRequestSize();
final long previousCheckpoi... |
206414745_1579 | public boolean nextCheckpointEndsAtChainHead(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
if (finalCheckpointHeader.isPresent()) {
return false;
}
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final long peerEstimatedHeight = peer.chainState().getEstimatedHeight(... |
206414745_1580 | public boolean nextCheckpointEndsAtChainHead(
final EthPeer peer, final BlockHeader previousCheckpointHeader) {
if (finalCheckpointHeader.isPresent()) {
return false;
}
final int skip = syncConfig.getDownloaderChainSegmentSize() - 1;
final long peerEstimatedHeight = peer.chainState().getEstimatedHeight(... |
206414745_1581 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1582 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1583 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1584 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1585 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1586 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1587 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1588 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1589 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1590 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1591 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1592 | @VisibleForTesting
CompletableFuture<Block> importOrSavePendingBlock(final Block block) {
// Synchronize to avoid race condition where block import event fires after the
// blockchain.contains() check and before the block is registered, causing onBlockAdded() to be
// invoked for the parent of this block before w... |
206414745_1593 | public void start() {
if (started.compareAndSet(false, true)) {
setupListeners();
} else {
throw new IllegalStateException(
"Attempt to start an already started " + this.getClass().getSimpleName() + ".");
}
} |
206414745_1594 | @VisibleForTesting
CompletableFuture<Block> importOrSavePendingBlock(final Block block) {
// Synchronize to avoid race condition where block import event fires after the
// blockchain.contains() check and before the block is registered, causing onBlockAdded() to be
// invoked for the parent of this block before w... |
206414745_1595 | @Override
public boolean hasNext() {
return !retrievedRanges.isEmpty()
|| (requestFailureCount < checkpointTimeoutsPermitted
&& syncTargetChecker.shouldContinueDownloadingFromSyncTarget(peer, lastRangeEnd)
&& !reachedEndOfCheckpoints);
} |
206414745_1596 | @Override
public Stream<BlockHeader> apply(final CheckpointRangeHeaders checkpointRangeHeaders) {
final BlockHeader rangeStart = checkpointRangeHeaders.getCheckpointRange().getStart();
final BlockHeader firstHeaderToImport = checkpointRangeHeaders.getFirstHeaderToImport();
if (isValid(rangeStart, firstHeaderToImp... |
206414745_1597 | @Override
public Stream<BlockHeader> apply(final CheckpointRangeHeaders checkpointRangeHeaders) {
final BlockHeader rangeStart = checkpointRangeHeaders.getCheckpointRange().getStart();
final BlockHeader firstHeaderToImport = checkpointRangeHeaders.getFirstHeaderToImport();
if (isValid(rangeStart, firstHeaderToImp... |
206414745_1598 | public void enforceTrailingPeerLimit() {
final TrailingPeerRequirements requirements = trailingPeerRequirementsCalculator.get();
if (requirements.getMaxTrailingPeers() == Long.MAX_VALUE) {
return;
}
final long minimumHeightToBeUpToDate = requirements.getMinimumHeightToBeUpToDate();
final long maxTrailingP... |
206414745_1599 | public void enforceTrailingPeerLimit() {
final TrailingPeerRequirements requirements = trailingPeerRequirementsCalculator.get();
if (requirements.getMaxTrailingPeers() == Long.MAX_VALUE) {
return;
}
final long minimumHeightToBeUpToDate = requirements.getMinimumHeightToBeUpToDate();
final long maxTrailingP... |
206414745_1600 | public void enforceTrailingPeerLimit() {
final TrailingPeerRequirements requirements = trailingPeerRequirementsCalculator.get();
if (requirements.getMaxTrailingPeers() == Long.MAX_VALUE) {
return;
}
final long minimumHeightToBeUpToDate = requirements.getMinimumHeightToBeUpToDate();
final long maxTrailingP... |
206414745_1601 | public void enforceTrailingPeerLimit() {
final TrailingPeerRequirements requirements = trailingPeerRequirementsCalculator.get();
if (requirements.getMaxTrailingPeers() == Long.MAX_VALUE) {
return;
}
final long minimumHeightToBeUpToDate = requirements.getMinimumHeightToBeUpToDate();
final long maxTrailingP... |
206414745_1602 | @Override
public void onBlockAdded(final BlockAddedEvent event) {
if (event.isNewCanonicalHead()
&& event.getBlock().getHeader().getNumber() % RECHECK_PEERS_WHEN_BLOCK_NUMBER_MULTIPLE_OF
== 0) {
enforceTrailingPeerLimit();
}
} |
206414745_1603 | @Override
public void onBlockAdded(final BlockAddedEvent event) {
if (event.isNewCanonicalHead()
&& event.getBlock().getHeader().getNumber() % RECHECK_PEERS_WHEN_BLOCK_NUMBER_MULTIPLE_OF
== 0) {
enforceTrailingPeerLimit();
}
} |
206414745_1604 | public Optional<WorldStateProof> getAccountProof(
final Hash worldStateRoot,
final Address accountAddress,
final List<UInt256> accountStorageKeys) {
if (!worldStateStorage.isWorldStateAvailable(worldStateRoot)) {
return Optional.empty();
} else {
final Hash addressHash = Hash.hash(accountAddress... |
206414745_1605 | public Optional<WorldStateProof> getAccountProof(
final Hash worldStateRoot,
final Address accountAddress,
final List<UInt256> accountStorageKeys) {
if (!worldStateStorage.isWorldStateAvailable(worldStateRoot)) {
return Optional.empty();
} else {
final Hash addressHash = Hash.hash(accountAddress... |
206414745_1606 | public Optional<WorldStateProof> getAccountProof(
final Hash worldStateRoot,
final Address accountAddress,
final List<UInt256> accountStorageKeys) {
if (!worldStateStorage.isWorldStateAvailable(worldStateRoot)) {
return Optional.empty();
} else {
final Hash addressHash = Hash.hash(accountAddress... |
206414745_1607 | @Override
public synchronized boolean importBlock(
final ProtocolContext context,
final Block block,
final HeaderValidationMode headerValidationMode,
final HeaderValidationMode ommerValidationMode) {
if (context.getBlockchain().contains(block.getHash())) {
return true;
}
final Optional<BlockVa... |
206414745_1608 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1609 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1610 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1611 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1612 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1613 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1614 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1615 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1616 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1617 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1618 | public boolean validateHeader(
final BlockHeader header,
final BlockHeader parent,
final ProtocolContext protocolContext,
final HeaderValidationMode mode) {
switch (mode) {
case NONE:
return true;
case LIGHT_DETACHED_ONLY:
return applyRules(
header,
parent,
... |
206414745_1619 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (header.getGasUsed() > header.getGasLimit()) {
LOG.trace(
"Invalid block header: gas used {} exceeds gas limit {}",
header.getGasUsed(),
header.getGasLimit());
return false;
}
return true;
} |
206414745_1620 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
return validateExtraData(header.getExtraData());
} |
206414745_1621 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
return validateExtraData(header.getExtraData());
} |
206414745_1622 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (!header.getParentHash().equals(parent.getHash())) {
LOG.trace(
"Invalid parent block header. Parent hash {} does not match "
+ "supplied parent header {}.",
header.getParentHash(),
pare... |
206414745_1623 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (!header.getParentHash().equals(parent.getHash())) {
LOG.trace(
"Invalid parent block header. Parent hash {} does not match "
+ "supplied parent header {}.",
header.getParentHash(),
pare... |
206414745_1624 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (!header.getParentHash().equals(parent.getHash())) {
LOG.trace(
"Invalid parent block header. Parent hash {} does not match "
+ "supplied parent header {}.",
header.getParentHash(),
pare... |
206414745_1625 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
final long gasLimit = header.getGasLimit();
if ((gasLimit < minGasLimit) || (gasLimit > maxGasLimit)) {
LOG.trace(
"Header gasLimit = {}, outside range {} --> {}", gasLimit, minGasLimit, maxGasLimit);
return fals... |
206414745_1626 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
try {
if (!eip1559.isEIP1559(header.getNumber())) {
return true;
}
if (eip1559.isForkBlock(header.getNumber())) {
return feeMarket.getInitialBasefee()
== header.getBaseFee().orElseThrow(EIP1559Mis... |
206414745_1627 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
try {
if (!eip1559.isEIP1559(header.getNumber())) {
return true;
}
if (eip1559.isForkBlock(header.getNumber())) {
return feeMarket.getInitialBasefee()
== header.getBaseFee().orElseThrow(EIP1559Mis... |
206414745_1628 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
try {
if (!eip1559.isEIP1559(header.getNumber())) {
return true;
}
if (eip1559.isForkBlock(header.getNumber())) {
return feeMarket.getInitialBasefee()
== header.getBaseFee().orElseThrow(EIP1559Mis... |
206414745_1629 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
try {
if (!eip1559.isEIP1559(header.getNumber())) {
return true;
}
if (eip1559.isForkBlock(header.getNumber())) {
return feeMarket.getInitialBasefee()
== header.getBaseFee().orElseThrow(EIP1559Mis... |
206414745_1630 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
try {
if (!eip1559.isEIP1559(header.getNumber())) {
return true;
}
if (eip1559.isForkBlock(header.getNumber())) {
return feeMarket.getInitialBasefee()
== header.getBaseFee().orElseThrow(EIP1559Mis... |
206414745_1631 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (includeBaseFee) {
if (!ExperimentalEIPs.eip1559Enabled) {
LOG.warn("Invalid block header: EIP-1559 feature flag must be enabled --Xeip1559-enabled");
return false;
} else if (header.getBaseFee().isEmpty()) ... |
206414745_1632 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (includeBaseFee) {
if (!ExperimentalEIPs.eip1559Enabled) {
LOG.warn("Invalid block header: EIP-1559 feature flag must be enabled --Xeip1559-enabled");
return false;
} else if (header.getBaseFee().isEmpty()) ... |
206414745_1633 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (includeBaseFee) {
if (!ExperimentalEIPs.eip1559Enabled) {
LOG.warn("Invalid block header: EIP-1559 feature flag must be enabled --Xeip1559-enabled");
return false;
} else if (header.getBaseFee().isEmpty()) ... |
206414745_1634 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (includeBaseFee) {
if (!ExperimentalEIPs.eip1559Enabled) {
LOG.warn("Invalid block header: EIP-1559 feature flag must be enabled --Xeip1559-enabled");
return false;
} else if (header.getBaseFee().isEmpty()) ... |
206414745_1635 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
if (includeBaseFee) {
if (!ExperimentalEIPs.eip1559Enabled) {
LOG.warn("Invalid block header: EIP-1559 feature flag must be enabled --Xeip1559-enabled");
return false;
} else if (header.getBaseFee().isEmpty()) ... |
206414745_1636 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
final T actualValue = accessor.apply(header);
if (!actualValue.equals(expectedValue)) {
LOG.trace(
"{} failed validation. Actual != Expected ({} != {}).",
fieldName,
actualValue,
expectedValue... |
206414745_1637 | @Override
public boolean validate(final BlockHeader header, final BlockHeader parent) {
final T actualValue = accessor.apply(header);
if (!actualValue.equals(expectedValue)) {
LOG.trace(
"{} failed validation. Actual != Expected ({} != {}).",
fieldName,
actualValue,
expectedValue... |
206414745_1638 | public boolean isAllowFutureNonce() {
return allowFutureNonce;
} |
206414745_1639 | public boolean checkOnchainPermissions() {
return checkOnchainPermissions;
} |
206414745_1640 | public boolean checkLocalPermissions() {
return checkLocalPermissions;
} |
206414745_1641 | public static TransactionValidationParams transactionSimulator() {
return transactionSimulatorParams;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.