-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Batch submitter sometimes reverts with block number is from the future #455
Copy link
Copy link
Closed
Labels
Description
Describe the bug
The batch submitter is reverting when calling getNextPendingQueueElement
To Reproduce
Steps to reproduce the behavior:
yarn hardhat node --no-deploy --fork <mainnet>- Impersonate account for mainnet batch submitter address
0xfd7D4de366850C08EE2CBa32d851385A3071Ec8D - Run transaction batch submitter with supplied config
Expected behavior
The batch should be submitted.
Logs
"id\":75,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"http://localhost:8545","stack":"Error: processing response error (body=\"{\\\"jsonrpc\\\":\\\"2.0\\\",\\\"id\\\":75,\
\\"error\\\":{\\\"code\\\":-32603,\\\"message\\\":\\\"VM Exception while processing transaction: revert Context block number is from the future.\\\"}}\", error={\"code\":-32603}, requestBody=\"{\\\"method\\\":\\\"eth_estimateGas\\\",\\\"params\\\":[{\\\"
gasPrice\\\":\\\"0x1dcd65000\\\",\\\"from\\\":\\\"0xfd7d4de366850c08ee2cba32d851385a3071ec8d\\\",\\\"to\\\":\\\"0x405b4008da75c48f4e54aa39607378967ae62338\\\",\\\"data\\\":
Config
# L1_NODE_WEB3_URL=
# L1_NODE_WEB3_URL=
# MNEMONIC=
ADDRESS_MANAGER_ADDRESS=0x1De8CFD4C1A486200286073aE91DE6e8099519f1
MIN_L1_TX_SIZE=20000
MAX_L1_TX_SIZE=120000
MAX_TX_BATCH_COUNT=250
MAX_STATE_BATCH_COUNT=1000
MAX_BATCH_SUBMISSION_TIME=900
POLL_INTERVAL=15000
NUM_CONFIRMATIONS=15
FINALITY_CONFIRMATIONS=60
RUN_TX_BATCH_SUBMITTER=true
RUN_STATE_BATCH_SUBMITTER=false
CLEAR_PENDING_TXS=false
SAFE_MINIMUM_ETHER_BALANCE=1
GAS_THRESHOLD_IN_GWEI=250
RESUBMISSION_TIMEOUT=900
MAX_GAS_PRICE_IN_GWEI=250
GAS_RETRY_INCREMENT=10
Reactions are currently unavailable