maticnetwork / bor

Official repository for the Polygon Blockchain
https://polygon.technology/
GNU Lesser General Public License v3.0
998 stars 486 forks source link

"error":{"code":-32000,"message":"required historical state unavailable (reexec=128)" #322

Closed savmaingit closed 2 years ago

savmaingit commented 2 years ago

Hello there! We are NOWNodes team. We provide dedicated access to MATIC node. Really like to work with this node! Follow your progress!

Ask you for help! We have an archive node matic (bor + heimdall). The node starts with the parameters below:

entrypoint:
      - "bor"
      - "--datadir=/root/.bor/data/"
      - "--txlookuplimit=0"
      - "--gcmode=archive"
      - "--cache.preimages"
      - "--port=30303"
      - "--http"
      - "--http.addr=0.0.0.0"
      - "--http.vhosts=*"
      - "--http.corsdomain=*"
      - "--http.port=8545"
      - "--ipcpath=/root/.bor/data/bor.ipc"
      - "--http.api=debug,eth,net,web3,txpool,bor"
      - "--syncmode"
      - "full"
      - "--networkid=137"
      - "--miner.gasprice=30000000000"
      - "--miner.gaslimit=20000000"
      - "--miner.gatarget=20000000"
      - "--txpool.nolocals"
      - "--txpool.accountslots=16"
      - "--txpool.globalslots=131072"
      - "--txpool.accountqueue=64"
      - "--txpool.globalqueue=131072"
      - "--txpool.lifetime=1h30m0s"
      - "--maxpeers=200"
      - "--metrics"
      - "--pprof"
      - "--pprof.port=7071"
      - "--pprof.addr=0.0.0.0"
      - "--bor.heimdall=http://heimdall:1317"
      - "--bootnodes = enode: //0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71: 30303, enode: //88116f4295f5a31538ae409e4d44ad40d22e44ee9342869e7d68bdec55b0f83c1530355ce8b41fbec0928a7d75a5745d528450d30aec92066ab6ba1ee351d710@159.203.9.164: 30303"

We send a request to achive blocks (you can specify any block instead of 0xb07a2a)

curl --location --request POST 'http://localhost:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber ", "params": ["0xb07a2a", {"tracer": "callTracer"}], "id": 100}'

In response we get

{"jsonrpc":"2.0","id":100,"error":{"code":-32000,"message":"required historical state unavailable (reexec=128)"}}

How can this problem be solved?

mnguyen-io commented 2 years ago

Hello - we're seeing the same problem when using the debug_trace* calls

--datadir /.bor/data 
--port 30303 
--http 
--http.addr 0.0.0.0 
--http.vhosts * 
--http.corsdomain * 
--http.port 8545
 --ipcpath /home/matic/.bor/data/bor.ipc 
--http.api eth,net,web3,txpool,bor,debug 
--syncmode full --networkid 137 
--gcmode archive 
--miner.gaslimit 200000000 
--txpool.nolocals 
--txpool.accountslots 128 
--txpool.globalslots 20000 
--txpool.lifetime 0h16m0s 
--keystore /home/matic/.bor/keystore
--ws --ws.addr 0.0.0.0 
--ws.api eth,net,web3,txpool,bor,debug 
--ws.origins * 
--pprof 
--pprof.port 7071 
--pprof.addr 0.0.0.0

We're able to look up the block data using eth.getBlock - so some data exists, just not sure why debug calls aren't returning it

> eth.getBlock(15074679)
{
  difficulty: 15,
  extraData: "0xd783010a0183626f7288676f312e31352e35856c696e757800000000000000008bb0695225b5abe0008c4dd0df75920756b43389822444619ad3875db844559d1acd6e27dbfe2c9471ef7a507df42942264461f7ad8e23202583a81736b4853801",
  gasLimit: 20000000,
  gasUsed: 9372036,
  hash: "0x0c89393d4ed23d12966d5759c551d75d124d98269ba8cf35b0a05e9b6ac45c09",
  logsBloom: "0x032200484814141004a00501c004104407902a00cc4000001400000424422500210000021430050ad000021c006c0083081080801640040020040909903c82a1008404008b0242028020410c442201a88a00440102cc00000003800083890210e01e0a04820880184408250024010c0000201003004f54018200541001061180140543c1202a05c1409034102883040020214103008004094e400d4020400000220100210a808c08010600c0c00220016342488040a004900008900818200140322184427640244210058820006e08007064400180028e70183090020000608204110081002800048904200c60210004ae0426306808004000040008e0140c06",
  miner: "0x0000000000000000000000000000000000000000",
  mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
  nonce: "0x0000000000000000",
  number: 15074679,
cffls commented 2 years ago

Hi,

I was not able to reproduce this problem on an archive node. The RPC call returned successfully. It is likely that the difference in the bor command line caused the problem. Could you try running the node with the options attached below and let me know if the problem still exists?

Bor version:

$ bor version
Bor
Version: 0.2.14-stable
Git Commit: 10c4e89f60477caedbb7d7e9f28ffbc534a0d9d9
Architecture: arm64
Go Version: go1.17
Operating System: linux
GOPATH=/home/ubuntu/go
GOROOT=/home/ubuntu/.go

Bor start script:

#!/usr/bin/env sh \

set -x #echo on

BOR_DIR=${BOR_DIR:-~/.bor}
DATA_DIR=$BOR_DIR/data

bor --datadir $DATA_DIR \
  --port 30303 \
  --http --http.addr '0.0.0.0' \
  --ws --ws.addr '0.0.0.0' --ws.port 8546 --ws.origins='*' \
  --http.vhosts '*' \
  --http.corsdomain '*' \
  --http.port 8545 \
  --ipcpath $DATA_DIR/bor.ipc \
  --http.api 'debug,eth,net,web3,txpool,bor' \
  --syncmode 'full' \
  --networkid '137' \
  --miner.gaslimit '20000000' \
  --miner.gastarget '20000000' \
  --txpool.pricelimit '30000000000' \
  --miner.gasprice '30000000000' \
  --txpool.nolocals \
  --txpool.accountslots '16' \
  --txpool.globalslots '131072' \
  --txpool.accountqueue '64' \
  --txpool.globalqueue '131072' \
  --txpool.lifetime '1h30m0s' \
  --maxpeers 200 \
  --metrics --metrics.expensive --metrics.influxdb --metrics.influxdb.endpoint "http://40.0.0.15:8086" --metrics.influxdb.database "north_virginia" --metrics.influxdb.username "u_north_virginia" --metrics.influxdb.password "xxxxx" --metrics.influxdb.tags "host=mainnet-archive-node-ws-7,ip=3.213.21.196,region=us-east-1,cloud=aws" \
  --bootnodes "enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303,enode://88116f4295f5a31538ae409e4d44ad40d22e44ee9342869e7d68bdec55b0f83c1530355ce8b41fbec0928a7d75a5745d528450d30aec92066ab6ba1ee351d710@159.203.9.164:30303" \
  --gcmode 'archive' \
  --pprof --pprof.port 7071 --pprof.addr '0.0.0.0'

Query result:

$ curl --location --request POST 'http://localhost:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0xb07a2a", {"tracer": "callTracer"}], "id": 100}'
{"jsonrpc":"2.0","id":100,"result":[{"result":{"type":"CALL","from":"0x1208a26faa0f4ac65b42098419eb4daa5e580ac6","to":"0x7ee256bdee18870320666bb61dd3c33c64025c78","value":"0x0","gas":"0x79b160","gasUsed":"0x3fa8d","input":"0xa3f1fb90000000000000000000000000c5e823776847ec7719f23c47d1066dcb0641d34100000000000000000000000000000000000000000000000001fc93d33a82100100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000001e53756e204465632030342030323a31373a3039202b303030302032303131000000000000000000000000000000000000000000000000000000000000000000046a61636b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003853697474696e6720696e20612062616d626f6f20616e642063656461722067726f766520687474703a2f2f742e636f2f476f396e6a734157000000000000000000000000000000000000000000000000000000000000000000000000000000123134333135313832333539373939383038310000000000000000000000000000","output":"0x00000000000000000000000000000000000000000000000001fc93d33a821001"}},{"result":{"type":"CALL","from":"0x3bc1c2e7120f1a2cf4535c752be921abed2dc14b","to":"0x4ce2cf42f93afcdf5378deab5cff011cbeaf309f","value":"0x0","gas":"0x5f8e6","gasUsed":"0x383c6","input":"0x7a9a1628000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000004ce2cf42f93afcdf5378deab5cff011cbeaf309f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000007647a9a162800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000073025f64a80f5df7f86b80c597bc96ddfadae072000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000004432c02a1400000000000000000000000052080556206ecc3953ba6e280eb1a26b63692829cd4895ee609b6c9260f60a43505a4c19e6e8df1ab4dc424b97851c56d121c3a50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000004447a9a162800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ca731e0f33afbcfa9363d6f7449d1f5447d10c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001a47082503b00000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da220c64d3e7d4b33ce833331d0517153693da414148b5ba8ac7a481de23f9379b3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000ce00050002b5b1f01608bbaa36b5c5650f5ffd7b3fee6a1e9804135b96a71ae1b40851671321fd120ab8e8078aea86fb3196bf0dd3ae740336db48004b93674872e8f342681c020003fa90f13fc916989b630caeb889f3fbc1b5a970df00daaeaa83ce1ddbbb47c95929971a34bd1218b7d2dbed55759bfca1f06ef17495d8986789f2e0d04ef6bbb91c02000353aa12ad5bc82a4b2f23af1d055e3252095ceee7ef12af1b3816a5b725344d63079e9c2d8ce079a37868daa653e1f7b63a20ff0ec6962272fffaab8e1c2a56081c020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce00050002d44fd0e957ca9d4bf25e046b045a8802decc905a6adacba38f4c0d6dbd10d88f02156efd8ed6e15462f8d32d83137050832f61bb45aa02e4763ad5a41746bc051c02000321d55818de70594213488b6f4f4d194f867bbe236190f5186c490e8b041d0041290e2c80fc651d6e63706a3538984dd3fc9d6bc6d3db9a6e7faac5bd52691dc01b020003b4d90af501df2cb0030dce68119250d5808883df88810c273223c3fd9998f9d3423cb97491aada88a4515099afb5044e1d2c5e5bc48270e373df3aae6e2ac8491b02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","output":"0x","calls":[{"type":"CALL","from":"0x4ce2cf42f93afcdf5378deab5cff011cbeaf309f","to":"0x4ce2cf42f93afcdf5378deab5cff011cbeaf309f","value":"0x0","gas":"0x5ad3c","gasUsed":"0x34bb8","input":"0x7a9a162800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000073025f64a80f5df7f86b80c597bc96ddfadae072000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000004432c02a1400000000000000000000000052080556206ecc3953ba6e280eb1a26b63692829cd4895ee609b6c9260f60a43505a4c19e6e8df1ab4dc424b97851c56d121c3a50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000004447a9a162800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ca731e0f33afbcfa9363d6f7449d1f5447d10c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001a47082503b00000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da220c64d3e7d4b33ce833331d0517153693da414148b5ba8ac7a481de23f9379b3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000ce00050002b5b1f01608bbaa36b5c5650f5ffd7b3fee6a1e9804135b96a71ae1b40851671321fd120ab8e8078aea86fb3196bf0dd3ae740336db48004b93674872e8f342681c020003fa90f13fc916989b630caeb889f3fbc1b5a970df00daaeaa83ce1ddbbb47c95929971a34bd1218b7d2dbed55759bfca1f06ef17495d8986789f2e0d04ef6bbb91c02000353aa12ad5bc82a4b2f23af1d055e3252095ceee7ef12af1b3816a5b725344d63079e9c2d8ce079a37868daa653e1f7b63a20ff0ec6962272fffaab8e1c2a56081c020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce00050002d44fd0e957ca9d4bf25e046b045a8802decc905a6adacba38f4c0d6dbd10d88f02156efd8ed6e15462f8d32d83137050832f61bb45aa02e4763ad5a41746bc051c02000321d55818de70594213488b6f4f4d194f867bbe236190f5186c490e8b041d0041290e2c80fc651d6e63706a3538984dd3fc9d6bc6d3db9a6e7faac5bd52691dc01b020003b4d90af501df2cb0030dce68119250d5808883df88810c273223c3fd9998f9d3423cb97491aada88a4515099afb5044e1d2c5e5bc48270e373df3aae6e2ac8491b02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","output":"0x","calls":[{"type":"CALL","from":"0x4ce2cf42f93afcdf5378deab5cff011cbeaf309f","to":"0x73025f64a80f5df7f86b80c597bc96ddfadae072","value":"0x0","gas":"0x20000","gasUsed":"0xe252","input":"0x32c02a1400000000000000000000000052080556206ecc3953ba6e280eb1a26b63692829cd4895ee609b6c9260f60a43505a4c19e6e8df1ab4dc424b97851c56d121c3a5","output":"0x00000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da2","calls":[{"type":"CREATE2","from":"0x73025f64a80f5df7f86b80c597bc96ddfadae072","to":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","value":"0x0","gas":"0x17a8d","gasUsed":"0x6294","input":"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf300000000000000000000000052080556206ecc3953ba6e280eb1a26b63692829","output":"0x363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"}]},{"type":"CALL","from":"0x4ce2cf42f93afcdf5378deab5cff011cbeaf309f","to":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","value":"0x0","gas":"0x48365","gasUsed":"0x230c2","input":"0x7a9a162800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ca731e0f33afbcfa9363d6f7449d1f5447d10c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001a47082503b00000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da220c64d3e7d4b33ce833331d0517153693da414148b5ba8ac7a481de23f9379b3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000ce00050002b5b1f01608bbaa36b5c5650f5ffd7b3fee6a1e9804135b96a71ae1b40851671321fd120ab8e8078aea86fb3196bf0dd3ae740336db48004b93674872e8f342681c020003fa90f13fc916989b630caeb889f3fbc1b5a970df00daaeaa83ce1ddbbb47c95929971a34bd1218b7d2dbed55759bfca1f06ef17495d8986789f2e0d04ef6bbb91c02000353aa12ad5bc82a4b2f23af1d055e3252095ceee7ef12af1b3816a5b725344d63079e9c2d8ce079a37868daa653e1f7b63a20ff0ec6962272fffaab8e1c2a56081c020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce00050002d44fd0e957ca9d4bf25e046b045a8802decc905a6adacba38f4c0d6dbd10d88f02156efd8ed6e15462f8d32d83137050832f61bb45aa02e4763ad5a41746bc051c02000321d55818de70594213488b6f4f4d194f867bbe236190f5186c490e8b041d0041290e2c80fc651d6e63706a3538984dd3fc9d6bc6d3db9a6e7faac5bd52691dc01b020003b4d90af501df2cb0030dce68119250d5808883df88810c273223c3fd9998f9d3423cb97491aada88a4515099afb5044e1d2c5e5bc48270e373df3aae6e2ac8491b02000000000000000000000000000000000000","output":"0x","calls":[{"type":"DELEGATECALL","from":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","to":"0x52080556206ecc3953ba6e280eb1a26b63692829","gas":"0x46aac","gasUsed":"0x229da","input":"0x7a9a162800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ca731e0f33afbcfa9363d6f7449d1f5447d10c80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001a47082503b00000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da220c64d3e7d4b33ce833331d0517153693da414148b5ba8ac7a481de23f9379b3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000ce00050002b5b1f01608bbaa36b5c5650f5ffd7b3fee6a1e9804135b96a71ae1b40851671321fd120ab8e8078aea86fb3196bf0dd3ae740336db48004b93674872e8f342681c020003fa90f13fc916989b630caeb889f3fbc1b5a970df00daaeaa83ce1ddbbb47c95929971a34bd1218b7d2dbed55759bfca1f06ef17495d8986789f2e0d04ef6bbb91c02000353aa12ad5bc82a4b2f23af1d055e3252095ceee7ef12af1b3816a5b725344d63079e9c2d8ce079a37868daa653e1f7b63a20ff0ec6962272fffaab8e1c2a56081c020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ce00050002d44fd0e957ca9d4bf25e046b045a8802decc905a6adacba38f4c0d6dbd10d88f02156efd8ed6e15462f8d32d83137050832f61bb45aa02e4763ad5a41746bc051c02000321d55818de70594213488b6f4f4d194f867bbe236190f5186c490e8b041d0041290e2c80fc651d6e63706a3538984dd3fc9d6bc6d3db9a6e7faac5bd52691dc01b020003b4d90af501df2cb0030dce68119250d5808883df88810c273223c3fd9998f9d3423cb97491aada88a4515099afb5044e1d2c5e5bc48270e373df3aae6e2ac8491b02000000000000000000000000000000000000","output":"0x","calls":[{"type":"STATICCALL","from":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","to":"0x0000000000000000000000000000000000000001","gas":"0x3e834","gasUsed":"0xbb8","input":"0x2a2a936a478354305b0a0511fbfe0813a6bdf55e1f628aa36f1abfd4887f2d71000000000000000000000000000000000000000000000000000000000000001cd44fd0e957ca9d4bf25e046b045a8802decc905a6adacba38f4c0d6dbd10d88f02156efd8ed6e15462f8d32d83137050832f61bb45aa02e4763ad5a41746bc05","output":"0x00000000000000000000000011d1e73ef9ef1f947e3d0c86fbdac1702b73df92"},{"type":"STATICCALL","from":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","to":"0x0000000000000000000000000000000000000001","gas":"0x3d35e","gasUsed":"0xbb8","input":"0x2a2a936a478354305b0a0511fbfe0813a6bdf55e1f628aa36f1abfd4887f2d71000000000000000000000000000000000000000000000000000000000000001b21d55818de70594213488b6f4f4d194f867bbe236190f5186c490e8b041d0041290e2c80fc651d6e63706a3538984dd3fc9d6bc6d3db9a6e7faac5bd52691dc0","output":"0x0000000000000000000000003bc1c2e7120f1a2cf4535c752be921abed2dc14b"},{"type":"STATICCALL","from":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","to":"0x0000000000000000000000000000000000000001","gas":"0x3be87","gasUsed":"0xbb8","input":"0x2a2a936a478354305b0a0511fbfe0813a6bdf55e1f628aa36f1abfd4887f2d71000000000000000000000000000000000000000000000000000000000000001bb4d90af501df2cb0030dce68119250d5808883df88810c273223c3fd9998f9d3423cb97491aada88a4515099afb5044e1d2c5e5bc48270e373df3aae6e2ac849","output":"0x000000000000000000000000c2ba95f0f3703a1235ccdf0f37f54a45cde66075"},{"type":"CALL","from":"0x77ea5d320bc6edb2b741380f88fdefcaedc25da2","to":"0xca731e0f33afbcfa9363d6f7449d1f5447d10c80","value":"0x0","gas":"0x3a7e0","gasUsed":"0x17272","input":"0x7082503b00000000000000000000000077ea5d320bc6edb2b741380f88fdefcaedc25da220c64d3e7d4b33ce833331d0517153693da414148b5ba8ac7a481de23f9379b3000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000ce00050002b5b1f01608bbaa36b5c5650f5ffd7b3fee6a1e9804135b96a71ae1b40851671321fd120ab8e8078aea86fb3196bf0dd3ae740336db48004b93674872e8f342681c020003fa90f13fc916989b630caeb889f3fbc1b5a970df00daaeaa83ce1ddbbb47c95929971a34bd1218b7d2dbed55759bfca1f06ef17495d8986789f2e0d04ef6bbb91c02000353aa12ad5bc82a4b2f23af1d055e3252095ceee7ef12af1b3816a5b725344d63079e9c2d8ce079a37868daa653e1f7b63a20ff0ec6962272fffaab8e1c2a56081c02000000000000000000000000000000000000","output":"0x","calls":[{"type":"STATICCALL","from":"0xca731e0f33afbcfa9363d6f7449d1f5447d10c80","to":"0x0000000000000000000000000000000000000001","gas":"0x38a31","gasUsed":"0xbb8","input":"0xc5ebecfa3dee317c10a92eee280e348e8a590c171feaab9ed556862439aa7049000000000000000000000000000000000000000000000000000000000000001cb5b1f01608bbaa36b5c5650f5ffd7b3fee6a1e9804135b96a71ae1b40851671321fd120ab8e8078aea86fb3196bf0dd3ae740336db48004b93674872e8f34268","output":"0x00000000000000000000000011d1e73ef9ef1f947e3d0c86fbdac1702b73df92"},{"type":"STATICCALL","from":"0xca731e0f33afbcfa9363d6f7449d1f5447d10c80","to":"0x0000000000000000000000000000000000000001","gas":"0x3216f","gasUsed":"0xbb8","input":"0xc5ebecfa3dee317c10a92eee280e348e8a590c171feaab9ed556862439aa7049000000000000000000000000000000000000000000000000000000000000001cfa90f13fc916989b630caeb889f3fbc1b5a970df00daaeaa83ce1ddbbb47c95929971a34bd1218b7d2dbed55759bfca1f06ef17495d8986789f2e0d04ef6bbb9","output":"0x0000000000000000000000003bc1c2e7120f1a2cf4535c752be921abed2dc14b"},{"type":"STATICCALL","from":"0xca731e0f33afbcfa9363d6f7449d1f5447d10c80","to":"0x0000000000000000000000000000000000000001","gas":"0x2f25a","gasUsed":"0xbb8","input":"0xc5ebecfa3dee317c10a92eee280e348e8a590c171feaab9ed556862439aa7049000000000000000000000000000000000000000000000000000000000000001c53aa12ad5bc82a4b2f23af1d055e3252095ceee7ef12af1b3816a5b725344d63079e9c2d8ce079a37868daa653e1f7b63a20ff0ec6962272fffaab8e1c2a5608","output":"0x000000000000000000000000c2ba95f0f3703a1235ccdf0f37f54a45cde66075"}]}]}]}]}]}},{"result":{"type":"CALL","from":"0x9db577bad720c95183f38ab2492736b1bb305856","to":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","value":"0x0","gas":"0x47583","gasUsed":"0x2eee3","input":"0x2568a889000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab0000000000000000000000000000000000000000000000000000000000002156000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000419d78a2c59597b7213b4e22999c68537b8e2390e569c0a213ef61f3ecf359f0186c49239d38eaab8135f7b2654db337a839e634687e63228a4fe5de704383bc4a1b00000000000000000000000000000000000000000000000000000000000000","output":"0x","calls":[{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x9503b407113d640f729b37646319a68e1101b853","gas":"0x44ff9","gasUsed":"0x162d","input":"0xdaca6f7821ea93602b7f0a118b3d341ca9960de16cd937e89afdb6da9b27be1ef9e174c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000419d78a2c59597b7213b4e22999c68537b8e2390e569c0a213ef61f3ecf359f0186c49239d38eaab8135f7b2654db337a839e634687e63228a4fe5de704383bc4a1b00000000000000000000000000000000000000000000000000000000000000","output":"0x000000000000000000000000f027474ea135de53c76b3c906f333b6aeee6d1f0","calls":[{"type":"STATICCALL","from":"0x9503b407113d640f729b37646319a68e1101b853","to":"0x0000000000000000000000000000000000000001","gas":"0x43886","gasUsed":"0xbb8","input":"0x21ea93602b7f0a118b3d341ca9960de16cd937e89afdb6da9b27be1ef9e174c0000000000000000000000000000000000000000000000000000000000000001b9d78a2c59597b7213b4e22999c68537b8e2390e569c0a213ef61f3ecf359f0186c49239d38eaab8135f7b2654db337a839e634687e63228a4fe5de704383bc4a","output":"0x000000000000000000000000f027474ea135de53c76b3c906f333b6aeee6d1f0"}]},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x47bd3dca54c3f251a21684850b270326aea40ea4","gas":"0x430c8","gasUsed":"0x16c0","input":"0x0161b1290000000000000000000000000000000000000000000000000000000000002156","output":"0x000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab","calls":[{"type":"STATICCALL","from":"0x47bd3dca54c3f251a21684850b270326aea40ea4","to":"0x4a9df84cf03fea06c0ff741a0f6c0cc6d83b4416","gas":"0x40ee4","gasUsed":"0x4bd","input":"0x6352211e0000000000000000000000000000000000000000000000000000000000002156","output":"0x000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab"}]},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x182a3f9fda93370feaca27b8ea507b59ce054e20","gas":"0x410ea","gasUsed":"0x496","input":"0x078e7c5c0000000000000000000000000000000000000000000000000000000000002156","output":"0x0000000000000000000000000000000000000000000000000000000000000000"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x4a9df84cf03fea06c0ff741a0f6c0cc6d83b4416","gas":"0x402b2","gasUsed":"0x4ca","input":"0x9128af9c0000000000000000000000000000000000000000000000000000000000002156","output":"0x0000000000000000000000000000000000000000000000000000000000000000"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x4a9df84cf03fea06c0ff741a0f6c0cc6d83b4416","gas":"0x3f408","gasUsed":"0x10d7","input":"0x97b4f9f80000000000000000000000000000000000000000000000000000000000002156","output":"0x000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000000000000002156"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x411b90090e3ee06c8168bc3eba6a0fda7d5d3aa6","gas":"0x3d9cf","gasUsed":"0x4ab","input":"0x4cad5ca4000000000000000000000000000000000000000000000000000000000000000d","output":"0x0000000000000000000000000000000000000000000000000000000000000005"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xefaa6e46c25415eb95fef576fc0a167a3c241207","gas":"0x3caa9","gasUsed":"0x602","input":"0x132abfb600000000000000000000000000000000000000000000000000000000000000e1","output":"0x00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000021000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000270000000000000000000000000000000000000000000000000000000000000035000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000000000000000000000000000000000000000005"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x4a9df84cf03fea06c0ff741a0f6c0cc6d83b4416","gas":"0x3bb33","gasUsed":"0x10d7","input":"0x97b4f9f80000000000000000000000000000000000000000000000000000000000002156","output":"0x000000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000000000000002156"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x411b90090e3ee06c8168bc3eba6a0fda7d5d3aa6","gas":"0x39a65","gasUsed":"0x4c6","input":"0xf99e96410000000000000000000000000000000000000000000000000000000000000001","output":"0x000000000000000000000000000000000000000000000000000000000016e360"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x196039996e0ae7506b061bbb3b8f731445bdfb0f","gas":"0x37eea","gasUsed":"0x4ce","input":"0xf8b2cb4f000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab","output":"0x0000000000000000000000000000000000000000000000000000000000816c0f"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x411b90090e3ee06c8168bc3eba6a0fda7d5d3aa6","gas":"0x3707e","gasUsed":"0x3643","input":"0x71990e5d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001","output":"0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000019"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xdcfd167abe075ef071d88d4b2e65d67738597eb8","gas":"0x32ee8","gasUsed":"0xd85","input":"0xc3df5bf1000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000007","output":"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000038d10000000000000000000000000000000000000000000000000000000000000354"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xdcfd167abe075ef071d88d4b2e65d67738597eb8","value":"0x0","gas":"0x312f5","gasUsed":"0x4117","input":"0x13686a26000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000019","output":"0x"},{"type":"STATICCALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xefaa6e46c25415eb95fef576fc0a167a3c241207","gas":"0x2c96f","gasUsed":"0x4ff","input":"0x6352211e00000000000000000000000000000000000000000000000000000000000000e1","output":"0x00000000000000000000000068400fe7ae86644024d163b5ba2b6553095406d4"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x196039996e0ae7506b061bbb3b8f731445bdfb0f","value":"0x0","gas":"0x2ba81","gasUsed":"0x274d","input":"0xcd19d27900000000000000000000000068400fe7ae86644024d163b5ba2b6553095406d400000000000000000000000000000000000000000000000000000000000e6b6800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005","output":"0x0000000000000000000000000000000000000000000000000000000262e2b47c"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xd2c71423764ff4bca1bb59144156671f56c2b75a","value":"0x0","gas":"0x2815d","gasUsed":"0xe3d","input":"0xeddf576700000000000000000000000000000000000000000000000000000000001cd6d00000000000000000000000000000000000000000000000000000000000000005","output":"0x"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xd2c71423764ff4bca1bb59144156671f56c2b75a","value":"0x0","gas":"0x269ee","gasUsed":"0xf4b","input":"0x3e70649700000000000000000000000000000000000000000000000000000000001cd6d000000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000000000000000005","output":"0x"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x196039996e0ae7506b061bbb3b8f731445bdfb0f","value":"0x0","gas":"0x25178","gasUsed":"0x8ad","input":"0x5c1d9a1100000000000000000000000000000000000000000000000000000000000e6b68","output":"0x"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0xdcfd167abe075ef071d88d4b2e65d67738597eb8","value":"0x0","gas":"0x23f78","gasUsed":"0x22b2","input":"0x752993cb000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c8","output":"0x"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x196039996e0ae7506b061bbb3b8f731445bdfb0f","value":"0x0","gas":"0x213ee","gasUsed":"0x298e","input":"0xc47d8e06000000000000000000000000ff533015970e9984926259cc4064d36c66c7c0ab00000000000000000000000000000000000000000000000000000000005684700000000000000000000000000000000000000000000000000000000000000006","output":"0x00000000000000000000000000000000000000000000000000000000002ae79f"},{"type":"CALL","from":"0x38e7f8dc899fa714193f59e0c31e36af507ceff8","to":"0x182a3f9fda93370feaca27b8ea507b59ce054e20","value":"0x0","gas":"0x1e17c","gasUsed":"0x5655","input":"0x8db224ca0000000000000000000000000000000000000000000000000000000000002156","output":"0x0000000000000000000000000000000000000000000000000000000000000001"}]}}]}
mnguyen-io commented 2 years ago

Hi - unfortunately not working for us.

Bor
Version: 0.2.14-stable
Git Commit: 10c4e89f60477caedbb7d7e9f28ffbc534a0d9d9
Architecture: amd64
Go Version: go1.17.6
Operating System: linux
GOPATH=
GOROOT=go
$ bor attach ~matic/.bor/data/bor.ipc
Welcome to the Geth JavaScript console!

instance: bor/v0.2.14-stable-10c4e89f/linux-amd64/go1.17.6
at block: 26782374 (Tue Apr 05 2022 17:55:37 GMT+0000 (UTC))
 datadir: /home/matic/.bor/data
 modules: admin:1.0 bor:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0

To exit, press ctrl-d or type exit
> eth.syncing
false
> eth.blockNumber
26782380
> eth.blockNumber
26782380
> eth.blockNumber
26782381

$ curl --location --request POST 'http://localhost:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0xb07a2a", {"tracer": "callTracer"}], "id": 100}'
{"jsonrpc":"2.0","id":100,"error":{"code":-32000,"message":"required historical state unavailable (reexec=128)"}}

Anyway you can confirm if the archive node snapshot provided here is indeed complete?

https://snapshots.matic.today/

I downloaded two separate archive node snapshots from here thinking it may be an issue with the snapshot. Each time I downloaded and restored I am still unable retrieve the contents of the debug_traceBlockByNumber call.

The snapshots I downloaded are:

bor-archive-node-snapshot-2022-03-17.tar.gz bor-archive-node-snapshot-2022-02-14.tar.gz

cffls commented 2 years ago

Hi, could you try the command below and see if it works? I added "reexec": 11565610 to the original command.

curl --location --request POST 'http://localhost:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0xb07a2a", {"tracer": "callTracer", "reexec": 11565610}], "id": 100}'

Rationale: "required historical state unavailable (reexec=128)" means that the node is not able to find the storage state from trie database between the target block (0xb07a2a) and its previous 128 blocks (0xb07a2a-128). The tracer needs to find a parent state of the target block to be able to trace it. We can try to increase this interval to see if it can find any previous state in the database. "11565610" in the command is the decimal value of "0xb07a2a", this ensures we can at go back to genesis block's state and replay everything from there in the worse case.

If this still doesn't work, then it is likely that the snapshot is incomplete/corrupted.

mnguyen-io commented 2 years ago

Hi - thanks for the help. I have a feeling it may be an incomplete snapshot provided on that page. I'l try and ask around for a new one. Thanks

$ curl --location --request POST 'http://localhost:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0xb07a2a", {"tracer": "callTracer", "reexec": 11565610}], "id": 100}' --max-time 600
curl: (52) Empty reply from server
cffls commented 2 years ago

Thanks! Looks like the curl command timed out. We can't really assert that the snapshot is corrupted from this evidence. Maybe the server was trying to find a parent block and curl simply stopped the connection because of timeout. Could you set --max-time to a larger number, e.g. 60000, and see what will happen?

Meanwhile, I will download the snapshot (bor-archive-node-snapshot-2022-03-17.tar.gz) and try from my side, which might take a day or two.

temaniarpit27 commented 2 years ago

Closing this issue

mnguyen-io commented 2 years ago

Thanks! Looks like the curl command timed out. We can't really assert that the snapshot is corrupted from this evidence. Maybe the server was trying to find a parent block and curl simply stopped the connection because of timeout. Could you set --max-time to a larger number, e.g. 60000, and see what will happen?

Meanwhile, I will download the snapshot (bor-archive-node-snapshot-2022-03-17.tar.gz) and try from my side, which might take a day or two.

Sorry - missed your last post. Have you had any luck with testing the snapshot? Doesn't look like increasing the timeout worked for us

curl --location --request POST 'http://localhost:8545/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0xb07a2a", {"tracer": "callTracer", "reexec": 11565610}], "id": 100}' --max-time 600000 curl: (52) Empty reply from server

cffls commented 2 years ago

Hi @mnguyen-io , after further debugging, we've confirmed that the problem was coming from an incomplete snapshot. You will need to update the snapshot data by using AWS EBS snapshot. You will see the snapshot id under this url: https://snapshots.matic.today/. If you have any doubts or questions about using EBS snapshot, please join Polygon discord and ask help from support team. Thank you!

mnguyen-io commented 2 years ago

Thanks

Hi @mnguyen-io , after further debugging, we've confirmed that the problem was coming from an incomplete snapshot. You will need to update the snapshot data by using AWS EBS snapshot. You will see the snapshot id under this url: https://snapshots.matic.today/. If you have any doubts or questions about using EBS snapshot, please join Polygon discord and ask help from support team. Thank you!

Thanks! I'm on discord already. I'll try the AWS EBS snapshot.

SuperEdison commented 1 year ago
{
       "jsonrpc": "2.0",
       "method": "debug_traceBlockByNumber",
       "params": ["0xc2", {"tracer": "callTracer"}],
       "id": 1
}
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": []
}

bor version:0.3.7-stable heimdalld version:0.3.0

chain = "mainnet"
datadir = "/var/lib/bor/data"

syncmode = "full"
gcmode = "archive"

[p2p]
    maxpeers = 50
    port = 30303
  [p2p.discovery] 
        # v5disc = false
    bootnodes = ["enode://0cb82b395094ee4a2915e9714894627de9ed8498fb881cec6db7c65e8b9a5bd7f2f25cc84e71e89d0947e51c76e85d0847de848c7782b13c0255247a6758178c@44.232.55.71:30303","enode://88116f4295f5a31538ae409e4d44ad40d22e44ee9342869e7d68bdec55b0f83c1530355ce8b41fbec0928a7d75a5745d528450d30aec92066ab6ba1ee351d710@159.203.9.164:30303","enode://4be7248c3a12c5f95d4ef5fff37f7c44ad1072fdb59701b2e5987c5f3846ef448ce7eabc941c5575b13db0fb016552c1fa5cca0dda1a8008cf6d63874c0f3eb7@3.93.224.197:30303","enode://32dd20eaf75513cf84ffc9940972ab17a62e88ea753b0780ea5eca9f40f9254064dacb99508337043d944c2a41b561a17deaad45c53ea0be02663e55e6a302b2@3.212.183.151:30303"]
        # bootnodesv4 = []
        # bootnodesv5 = []
        # static-nodes = []
        # trusted-nodes = []
        # dns = []

[txpool]
    nolocals = true
    pricelimit = 30000000000
    accountslots = 16
    globalslots = 32768
    accountqueue = 16
    globalqueue = 32768
    lifetime = "1h30m0s"

[miner]
    gaslimit = 30000000
    gasprice = "30000000000"

[jsonrpc]
    ipcpath = "/var/lib/bor/bor.ipc"
    [jsonrpc.http]
        enabled = true
        port = 8545
        host = "0.0.0.0"
        api = ["eth", "net", "web3", "txpool", "bor", "trace", "debug"]
        vhosts = ["*"]
        corsdomain = ["*"]

[gpo]
    ignoreprice = "30000000000"

[telemetry]
    metrics = true

[cache]
    cache = 4096