Skip to content

Commit

Permalink
bump nim-web3 and use engine API v1.0.0.alpha.9 (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored May 25, 2022
1 parent 92c1e75 commit dfd8cd2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions beacon_chain/gossip_processing/block_processor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ proc runQueueProcessingLoop*(self: ref BlockProcessor) {.async.} =

if executionPayloadStatus in [
PayloadExecutionStatus.invalid,
PayloadExecutionStatus.invalid_block_hash,
PayloadExecutionStatus.invalid_terminal_block]:
PayloadExecutionStatus.invalid_block_hash]:
debug "runQueueProcessingLoop: execution payload invalid",
executionPayloadStatus
if not blck.resfut.isNil:
Expand Down
4 changes: 2 additions & 2 deletions beacon_chain/spec/datatypes/bellatrix.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const
# https://github.com/ethereum/consensus-specs/blob/v1.2.0-rc.1/specs/bellatrix/beacon-chain.md#transition-settings
TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH* = FAR_FUTURE_EPOCH

# https://github.com/ethereum/execution-apis/blob/2c3dffa1ad301a5b1d46212e1bd65e918265cd6f/src/engine/specification.md#request-1
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.9/src/engine/specification.md#request-1
FORKCHOICEUPDATED_TIMEOUT* = 8.seconds

# https://github.com/ethereum/execution-apis/blob/2c3dffa1ad301a5b1d46212e1bd65e918265cd6f/src/engine/specification.md#request
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.9/src/engine/specification.md#request
NEWPAYLOAD_TIMEOUT* = 8.seconds

type
Expand Down
2 changes: 1 addition & 1 deletion beacon_chain/validators/validator_duties.nim
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ proc getExecutionPayload(node: BeaconNode, proposalState: auto):
# Minimize window for Eth1 monitor to shut down connection
await node.consensusManager.eth1Monitor.ensureDataProvider()

# https://github.com/ethereum/execution-apis/blob/2c3dffa1ad301a5b1d46212e1bd65e918265cd6f/src/engine/specification.md#request-2
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.9/src/engine/specification.md#request-2
const GETPAYLOAD_TIMEOUT = 1.seconds

let
Expand Down
2 changes: 1 addition & 1 deletion ncli/ncli_common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# at your option. This file may not be copied, modified, or distributed except according to those terms.

import
re, strutils, os, math,
std/[os, re, strutils],
stew/bitops2,
../beacon_chain/spec/[
datatypes/base,
Expand Down
2 changes: 1 addition & 1 deletion vendor/nim-web3

0 comments on commit dfd8cd2

Please sign in to comment.