Code Monkey home page Code Monkey logo

avalanche-rosetta's Introduction


Avalanche Rosetta

Rosetta server implementation for Avalanche C-Chain.

Requirements

In order to run the Avalanche Rosetta server you will need access to Avalanche services via RPC. More info in available APIs found here.

See AvalancheGo documentation on how to run the chain node locally. If you don't run the Avalanche node yourself you might use the hosted API provided by Ava Labs.

Installation

Clone repository, then build the rosetta server by running the following commands:

make setup
make build

If successful, you will have rosetta-server binary in your current directory.

Usage

Before you start running the server you need to create a configuration file:

{
  "rpc_base_url": "https://api.avax-test.network",
  "mode": "online",
  "listen_addr": "0.0.0.0:8080",
  "genesis_block_hash" :"0x31ced5b9beb7f8782b014660da0cb18cc409f121f408186886e1ca3e8eeca96b",
}

Start the server by running the following command:

./rosetta-server -config=./config.json

Configuration

Full configuration example:

{
  "mode": "online",
  "rpc_base_url": "http://localhost:9650",
  "listen_addr": "0.0.0.0:8080",
  "network_name": "Fuji",
  "chain_id": 43113,
  "log_requests": true,
  "genesis_block_hash" :"0x31ced5b9beb7f8782b014660da0cb18cc409f121f408186886e1ca3e8eeca96b",
  "index_unknown_tokens": false,
  "ingestion_mode" : "standard",
  "token_whitelist" : [],
  "bridge_tokens" : [],
  "validate_erc20_whitelist": false
}

Where:

Name Type Default Description
mode string online Mode of operations. One of: online, offline
rpc_base_url string http://localhost:9650 Avalanche RPC base url
listen_addr string http://localhost:8080 Rosetta server listen address (host/port)
network_name string - Avalanche network name
chain_id integer - Avalanche C-Chain ID
genesis_block_hash string - The block hash for the genesis block
index_unknown_tokens bool false Enables ingesting tokens that don't have a public symbol or decimal variable
ingestion_mode string standard Toggles between standard and analytics ingesting modes
token_whitelist []string [] Enables ingesting for the provided ERC20 contract addresses in standard mode.
bridge_tokens []string [] Supported Avalanche Bridge tokens. Unwrap function allowed, which initates transfer to ethereum if amount threshold met
validate_erc20_whitelist bool false Verifies provided ERC20 contract addresses in standard mode (node must be bootstrapped when rosetta server starts).

The token whitelist only supports tokens that emit evm transfer logs for all minting (from should be 0x000---), burning (to address should be 0x0000) and transfer events are supported. All other tokens will break cause ingestion to fail.

RPC Endpoints

List of all available Rosetta RPC server endpoints

Method Path Status Description
POST /network/list Y Get List of Available Networks
POST /network/status Y Get Network Status
POST /network/options Y Get Network Options
POST /block Y Get a Block
POST /block/transaction Y Get a Block Transaction
POST /account/balance Y Get an Account Balance
POST /mempool Y Get All Mempool Transactions counts
POST /mempool/transaction N/A Get a Mempool Transaction
POST /construction/combine Y Create Network Transaction from Signatures
POST /construction/derive Y Derive an AccountIdentifier from a PublicKey
POST /construction/hash Y Get the Hash of a Signed Transaction
POST /construction/metadata Y Get Transaction Construction Metadata
POST /construction/parse Y Parse a Transaction
POST /construction/payloads Y Generate an Unsigned Transaction and Signing Payloads
POST /construction/preprocess Y Create a Request to Fetch Metadata
POST /construction/submit Y Submit a Signed Transaction
POST /call Y Perform a Blockchain Call

Development

Available commands:

  • make build - Build the development version of the binary
  • make test - Run the test suite
  • make dist - Build distribution binaries
  • make docker-build - Build a Docker image
  • make docker-push - Push a Docker image to the registry
  • make run-testnet - Run node and rosetta testnet server
  • make run-testnet-offline - Run node and rosetta testnet server
  • make run-mainnet - Run node and rosetta mainnet server
  • make run-mainnet-offline - Run node and rosetta mainnet server

Testing Rosetta

Rosetta implementaion could be testing using the Rosetta CLI.

Before we can start the service, we need to build the docker image:

make docker-build

Note: If you're running arm64 machine(e.g, Mac M1), you may run

make docker-build-arm64

Next, start the Testnet service by running:

make run-testnet

Wait until the node is done bootstrapping, then start the data check:

make check-testnet-data

Run the construction check:

make check-testnet-construction

Run the construction check for ERC-20s:

make check-testnet-construction-erc20

Rebuild the ContractInfoToken.go autogen file

abigen --abi contractInfo.abi --pkg main --type ContractInfoToken --out client/contractInfoToken.go

License

BSD 3-Clause

avalanche-rosetta's People

Contributors

aaronbuchwald avatar bilgehansahin avatar charlie-ava avatar darioush avatar dhrubabasu avatar jpop32 avatar learyce avatar patrick-ogrady avatar rajranjan0608 avatar sosedoff avatar stephenbuttolph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avalanche-rosetta's Issues

Miss matching transaction count in C-Chain block 3010277

Hello Team,

As from explorer block 3010277 contains six transaction while query rosetta, why I am getting seven transactions?
Why seventh transaction is import TransactionType operation?
Explorer Url : https://cchain.explorer.avax.network/blocks/3010277/transactions
Rosetta Query input -:
{
"network_identifier": {
"blockchain": "Avalanche",
"network": "Mainnet"
},
"block_identifier": {
"index":3010277
}
}
Url : http://127.0.0.1:9650/block
Output 👎
image

Failed to start node on update latest (node - 1.8.4, middleware_version – 0.1.17)

Hello Team, @rajranjan0608

On update from 1.7.6 to 1.8.4, node unable to start with previous data & logs directory, while it’s working with new data & logs directory, it’s start syncing from scratch.

Here is the steps

Clone avalanche-rosetta --> sudo git clone https://github.com/ava-labs/avalanche-rosetta.git

Create docker image --> sudo docker build --no-cache --build-arg AVALANCHE_VERSION=${AVALANCHE_VERSION} --build-arg ROSETTA_VERSION=${GIT_COMMIT} -t avaplatform/avalanche-rosetta:v1.8.4 .

Run docker image --> sudo docker run -d --name avalanche-mainnet-3332 --rm -v $PWD/data:/data -v $PWD/logs:/root/.avalanchego -e AVALANCHE_NETWORK=Mainnet -e AVALANCHE_CHAIN=43114 -e AVALANCHE_MODE=online -p 3332:8080 -p 9650:9650 -p 9651:9651 avaplatform/avalanche-rosetta:v1.8.4

Complete Logs

2022/09/08 06:10:38 starting command: /app/rosetta-server [-config rosetta-config.json],
2022/09/08 06:10:38 starting command: /app/avalanchego [--config-file /app/avalanchego-config.json],
2022/09/08 06:10:39 starting server in online mode,
2022/09/08 06:10:39 using avax (chain="Avalanche" chainid="43114" network="Mainnet") rpc endpoint: http://localhost:9650,
2022/09/08 06:10:39 starting rosetta server at 0.0.0.0:8080,
[09-08|06:10:46.642] WARN process/process.go:97 UPnP or NAT-PMP router attach failed, you may not be listening publicly. Please confirm the settings in your router,
[09-08|06:10:46.642] INFO node/node.go:1221 initializing node {"version": "avalanche/1.8.4", "nodeID": "NodeID-6Y59nLZkUieX6RaNPBg2zwG8MjmnKQt7F", "config": {"httpConfig":{"apiConfig":{"authConfig":{"apiRequireAuthToken":false},"indexerConfig":{"indexAPIEnabled":false,"indexAllowIncomplete":false},"ipcConfig":{"ipcAPIEnabled":false,"ipcPath":"/tmp","ipcDefaultChainIDs":null},"adminAPIEnabled":false,"infoAPIEnabled":true,"keystoreAPIEnabled":false,"metricsAPIEnabled":true,"healthAPIEnabled":true},"httpHost":"0.0.0.0","httpPort":9650,"httpsEnabled":false,"apiAllowedOrigins":[""],"shutdownTimeout":10000000000,"shutdownWait":0},"ipConfig":{"ip":{"ip":"192.168.80.2","port":9651},"ipResolutionFrequency":300000000000,"attemptedNATTraversal":true},"stakingConfig":{"uptimeRequirement":0.8,"minValidatorStake":2000000000000,"maxValidatorStake":3000000000000000,"minDelegatorStake":25000000000,"minDelegationFee":20000,"minStakeDuration":1209600000000000,"maxStakeDuration":31536000000000000,"rewardConfig":{"maxConsumptionRate":120000,"minConsumptionRate":100000,"mintingPeriod":31536000000000000,"supplyCap":720000000000000000},"enableStaking":true,"disabledStakingWeight":100,"stakingKeyPath":"/root/.avalanchego/staking/staker.key","stakingCertPath":"/root/.avalanchego/staking/staker.crt"},"txFeeConfig":{"txFee":1000000,"createAssetTxFee":10000000,"createSubnetTxFee":1000000000,"transformSubnetTxFee":1000000000,"createBlockchainTxFee":1000000000,"addPrimaryNetworkValidatorFee":0,"addPrimaryNetworkDelegatorFee":0,"addSubnetValidatorFee":1000000,"addSubnetDelegatorFee":1000000},"stateSyncConfig":{"stateSyncIDs":null,"stateSyncIPs":null},"bootstrapConfig":{"retryBootstrap":true,"retryBootstrapWarnFrequency":50,"bootstrapBeaconConnectionTimeout":60000000000,"bootstrapAncestorsMaxContainersSent":2000,"bootstrapAncestorsMaxContainersReceived":2000,"bootstrapMaxTimeGetAncestors":50000000,"bootstrapIDs":["NodeID-9T7NXBFpp8LWCyc58YdKNoowDipdVKAWz","NodeID-Hr78Fy8uDYiRYocRYHXp4eLCYeb8x5UuM","NodeID-A6onFGyJjA37EZ7kYHANMR1PFRT8NmXrF","NodeID-4kCLS16Wy73nt1Zm54jFZsL7Msrv3UCeJ","NodeID-QKGoUvqcgormCoMj6yPw9isY7DX9H4mdd"],"bootstrapIPs":[{"ip":"18.202.190.40","port":9651},{"ip":"54.93.182.129","port":9651},{"ip":"54.94.43.49","port":9651},{"ip":"122.248.199.127","port":9651},{"ip":"18.162.161.230","port":9651}]},"databaseConfig":{"path":"/data/mainnet","name":"leveldb"},"avaxAssetID":"FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z","networkID":1,"enableAssertions":true,"healthCheckFreq":30000000000,"networkConfig":{"healthConfig":{"minConnectedPeers":1,"maxTimeSinceMsgReceived":60000000000,"maxTimeSinceMsgSent":60000000000,"maxPortionSendQueueBytesFull":0.9,"maxSendFailRate":0.9,"sendFailRateHalflife":10000000000},"peerListGossipConfig":{"peerListNumValidatorIPs":15,"peerListValidatorGossipSize":20,"peerListNonValidatorGossipSize":10,"peerListPeersGossipSize":0,"peerListGossipFreq":60000000000},"timeoutConfigs":{"pingPongTimeout":30000000000,"readHandshakeTimeout":15000000000},"delayConfig":{"initialReconnectDelay":1000000000,"maxReconnectDelay":3600000000000},"throttlerConfig":{"inboundConnUpgradeThrottlerConfig":{"upgradeCooldown":10000000000,"maxRecentConnsUpgraded":2560},"inboundMsgThrottlerConfig":{"byteThrottlerConfig":{"vdrAllocSize":33554432,"atLargeAllocSize":6291456,"nodeMaxAtLargeBytes":2097152},"bandwidthThrottlerConfig":{"bandwidthRefillRate":524288,"bandwidthMaxBurstRate":2097152},"cpuThrottlerConfig":{"maxRecheckDelay":5000000000},"diskThrottlerConfig":{"maxRecheckDelay":5000000000},"maxProcessingMsgsPerNode":1024},"outboundMsgThrottlerConfig":{"vdrAllocSize":33554432,"atLargeAllocSize":33554432,"nodeMaxAtLargeBytes":2097152},"maxInboundConnsPerSec":256},"dialerConfig":{"throttleRps":50,"connectionTimeout":30000000000},"tlsKeyLogFile":"","namespace":"","myNodeID":"NodeID-111111111111111111116DBWJs","myIP":null,"networkID":0,"maxClockDifference":60000000000,"pingFrequency":22500000000,"allowPrivateIPs":true,"compressionEnabled":true,"whitelistedSubnets":[],"beacons":null,"validators":null,"uptimeMetricFreq":30000000000,"uptimeRequirement":0,"requireValidatorToConnect":true,"maximumInboundMessageTimeout":10000000000,"peerReadBufferSize":8192,"peerWriteBufferSize":8192},"gossipConfig":{"gossipAcceptedFrontierValidatorSize":0,"gossipAcceptedFrontierNonValidatorSize":0,"gossipAcceptedFrontierPeerSize":15,"gossipOnAcceptValidatorSize":0,"gossipOnAcceptNonValidatorSize":0,"gossipOnAcceptPeerSize":10,"appGossipValidatorSize":10,"appGossipNonValidatorSize":0,"appGossipPeerSize":0},"adaptiveTimeoutConfig":{"initialTimeout":5000000000,"minimumTimeout":2000000000,"maximumTimeout":10000000000,"timeoutCoefficient":2,"timeoutHalflife":300000000000},"benchlistConfig":{"threshold":10,"minimumFailingDuration":150000000000,"duration":900000000000,"maxPortion":0.08333333333333333},"profilerConfig":{"dir":"/root/.avalanchego/profiles","enabled":false,"freq":900000000000,"maxNumFiles":5},"loggingConfig":{"maxSize":8,"maxFiles":7,"maxAge":0,"directory":"/root/.avalanchego/logs","compress":false,"disableWriterDisplaying":false,"assertions":false,"logLevel":"INFO","displayLevel":"INFO","logFormat":"PLAIN"},"pluginDir":"/app/plugins","fdLimit":32768,"consensusParams":{"k":20,"alpha":15,"betaVirtuous":15,"betaRogue":20,"concurrentRepolls":4,"optimalProcessing":50,"maxOutstandingItems":1024,"maxItemProcessingTime":120000000000,"mixedQueryNumPushVdr":10,"mixedQueryNumPushNonVdr":0,"parents":5,"batchSize":30},"meterVMEnabled":true,"routerHealthConfig":{"maxDropRate":1,"maxDropRateHalflife":10000000000,"maxOutstandingRequests":1024,"maxOutstandingDuration":300000000000,"maxRunTimeRequests":10000000000},"consensusShutdownTimeout":30000000000,"consensusGossipFreq":10000000000,"whitelistedSubnets":[],"subnetConfigs":{},"systemTrackerProcessingHalflife":15000000000,"systemTrackerFrequency":500000000,"systemTrackerCPUHalflife":15000000000,"systemTrackerDiskHalflife":60000000000,"cpuTargeterConfig":{"vdrAlloc":16,"maxNonVdrUsage":12.8,"maxNonVdrNodeUsage":2},"diskTargeterConfig":{"vdrAlloc":1073741824000,"maxNonVdrUsage":1073741824000,"maxNonVdrNodeUsage":1073741824000},"requiredAvailableDiskSpace":536870912,"warningThresholdAvailableDiskSpace":1073741824}},
[09-08|06:10:46.643] INFO node/node.go:583 initializing API server,
[09-08|06:10:46.643] INFO server/server.go:138 API created {"allowedOrigins": ["
"]},
[09-08|06:10:46.643] INFO node/node.go:890 initializing metrics API,
[09-08|06:10:46.643] INFO server/server.go:298 adding route {"url": "/ext/metrics", "endpoint": ""},
[09-08|06:10:46.643] INFO leveldb/db.go:202 creating new leveldb {"config": {"blockCacheCapacity":12582912,"blockSize":0,"compactionExpandLimitFactor":0,"compactionGPOverlapsFactor":0,"compactionL0Trigger":0,"compactionSourceLimitFactor":0,"compactionTableSize":0,"compactionTableSizeMultiplier":0,"compactionTableSizeMultiplierPerLevel":null,"compactionTotalSize":0,"compactionTotalSizeMultiplier":0,"disableSeeksCompaction":true,"openFilesCacheCapacity":1024,"writeBuffer":6291456,"filterBitsPerKey":10,"maxManifestFileSize":9223372036854775807,"metricUpdateFrequency":10000000000}},
[09-08|06:10:57.386] INFO node/node.go:475 initializing database {"dbVersion": "v1.4.5"},
[09-08|06:10:57.397] INFO node/node.go:844 initializing keystore,
[09-08|06:10:57.397] INFO node/node.go:852 skipping keystore API initialization because it has been disabled,
[09-08|06:10:57.397] INFO node/node.go:836 initializing SharedMemory,
[09-08|06:10:57.418] INFO node/node.go:218 initializing networking {"currentNodeIP": "192.168.80.2:9651"},
[09-08|06:10:57.419] INFO node/node.go:1009 initializing Health API,
[09-08|06:10:57.419] INFO server/server.go:298 adding route {"url": "/ext/health", "endpoint": ""},
[09-08|06:10:57.419] INFO server/server.go:298 adding route {"url": "/ext/health", "endpoint": "/readiness"},
[09-08|06:10:57.419] INFO server/server.go:298 adding route {"url": "/ext/health", "endpoint": "/health"},
[09-08|06:10:57.419] INFO server/server.go:298 adding route {"url": "/ext/health", "endpoint": "/liveness"},
[09-08|06:10:57.419] INFO node/node.go:630 adding the default VM aliases,
[09-08|06:10:57.657] INFO node/node.go:748 initializing VMs,
[09-08|06:10:57.657] INFO server/server.go:298 adding route {"url": "/ext/vm/rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT", "endpoint": ""},
[09-08|06:10:57.657] INFO server/server.go:298 adding route {"url": "/ext/vm/jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq", "endpoint": ""},
[09-08|06:10:57.657] INFO server/server.go:298 adding route {"url": "/ext/vm/mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6", "endpoint": "/rpc"},
[09-08|06:10:57.657] INFO node/node.go:910 skipping admin API initialization because it has been disabled,
[09-08|06:10:57.657] INFO node/node.go:962 initializing info API,
[09-08|06:10:57.657] INFO server/server.go:298 adding route {"url": "/ext/info", "endpoint": ""},
[09-08|06:10:57.657] INFO node/node.go:1112 skipping ipc API initialization because it has been disabled,
[09-08|06:10:57.657] INFO node/node.go:1125 initializing chain aliases,
[09-08|06:10:58.122] INFO node/node.go:1143 initializing API aliases,
[09-08|06:10:58.282] INFO node/node.go:935 skipping profiler initialization because it has been disabled,
[09-08|06:10:58.282] INFO node/node.go:569 initializing chains,
[09-08|06:10:58.282] INFO chains/manager.go:265 creating chain {"chainID": "11111111111111111111111111111111LpoYY", "vmID": "rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT"},
[09-08|06:10:59.751] INFO

platformvm/vm.go:228 initializing last accepted {"blkID": "mTQzvaBDrQM4JCg1brrmyQ7Rtoc3zAzshojPEcvE6g4eXD1Fg"},
[09-08|06:10:59.754] INFO

snowman/transitive.go:80 initializing consensus engine,
[09-08|06:10:59.755] INFO server/server.go:272 adding route {"url": "/ext/bc/11111111111111111111111111111111LpoYY", "endpoint": ""},
[09-08|06:10:59.755] INFO

bootstrap/bootstrapper.go:115 starting bootstrapper,
[09-08|06:10:59.755] INFO server/server.go:173 HTTP API server listening {"host": "0.0.0.0", "port": 9650},
[09-08|06:11:05.696] INFO

common/bootstrapper.go:248 bootstrapping started syncing {"numVerticesInFrontier": 1},
[09-08|06:11:05.696] INFO

bootstrap/bootstrapper.go:528 executing blocks {"numPendingJobs": 0},
[09-08|06:11:05.696] INFO

queue/jobs.go:208 executed operations {"numExecuted": 0},
[09-08|06:11:05.696] INFO chains/manager.go:265 creating chain {"chainID": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", "vmID": "mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6"},
INFO [09-08|06:11:05.697] github.com/ava-labs/coreth/plugin/evm/vm.go:352: Initializing Coreth VM Version=v0.9.0 Config="{SnowmanAPIEnabled:false CorethAdminAPIEnabled:false CorethAdminAPIDir: EnabledEthAPIs:[internal-public-eth internal-public-blockchain internal-public-transaction-pool internal-public-tx-pool internal-public-debug internal-private-debug debug-tracer web3 public-eth public-eth-filter public-debug private-debug net] ContinuousProfilerDir: ContinuousProfilerFrequency:15m0s ContinuousProfilerMaxFiles:5 RPCGasCap:2500000000 RPCTxFeeCap:100 Preimages:false SnapshotAsync:true SnapshotVerify:false Pruning:false AcceptorQueueLimit:64 CommitInterval:4096 AllowMissingTries:false PopulateMissingTries: PopulateMissingTriesParallelism:1024 MetricsExpensiveEnabled:true LocalTxsEnabled:false APIMaxDuration:0s WSCPURefillRate:0s WSCPUMaxStored:0s MaxBlocksPerRequest:0 AllowUnfinalizedQueries:false AllowUnprotectedTxs:false KeystoreDirectory: KeystoreExternalSigner: KeystoreInsecureUnlockAllowed:false RemoteTxGossipOnlyEnabled:false TxRegossipFrequency:1m0s TxRegossipMaxSize:15 LogLevel:info LogJSONFormat:false OfflinePruning:false OfflinePruningBloomFilterSize:512 OfflinePruningDataDirectory: MaxOutboundActiveRequests:16 StateSyncEnabled:false StateSyncSkipResume:false StateSyncServerTrieCache:64 StateSyncIDs: StateSyncCommitInterval:16384 StateSyncMinBlocks:300000}",
INFO [09-08|06:11:05.700] github.com/ava-labs/coreth/trie/database.go:722: Persisted trie from memory database nodes=1 size=140.00B time="6.202µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B,
INFO [09-08|06:11:05.700] github.com/ava-labs/coreth/plugin/evm/vm.go:455: lastAccepted = 0x5fb201239367aca962664c1de147c5c53b31fc85894ac256dcfe22a8387c7719 ,

INFO [09-08|06:11:05.701] github.com/ava-labs/coreth/eth/backend.go:147: Allocated trie memory caches clean=448.00MiB dirty=256.00MiB,
INFO [09-08|06:11:05.702] github.com/ava-labs/coreth/trie/database.go:722: Persisted trie from memory database nodes=1 size=140.00B time="3.958µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B,
[09-08|06:11:05.702] FATAL chains/manager.go:288 error creating required chain {"chainID": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", "error": "error while creating new snowman vm mismatching ApricotPhasePre6 fork block timestamp in database (have , want 1662341400, rewindto 1662341399)"},
[09-08|06:11:05.702] INFO chains/manager.go:265 creating chain {"chainID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "vmID": "jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq"},
[09-08|06:11:05.703] INFO node/node.go:1334 shutting down node {"exitCode": 1},

[09-08|06:11:05.703] INFO ipcs/chainipc.go:111 shutting down chain IPCs,
[09-08|06:11:05.703] INFO chains/manager.go:992 shutting down chain manager,
[09-08|06:11:05.703] INFO router/chain_router.go:274 shutting down chain router,
[09-08|06:11:05.712] INFO avm/vm.go:458 fee asset is established {"alias": "AVAX", "assetID": "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"},
[09-08|06:11:05.712] INFO avm/vm.go:240 address transaction indexing is disabled,
[09-08|06:11:05.734] INFO avalanche/transitive.go:74 initializing consensus engine,
[09-08|06:11:05.735] INFO server/server.go:272 adding route {"url": "/ext/bc/2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "endpoint": "/events"},
[09-08|06:11:05.735] INFO bootstrap/bootstrapper.go:313 starting bootstrap,
[09-08|06:11:05.735] INFO

bootstrap/bootstrapper.go:571 waiting for the remaining chains in this subnet to finish syncing,
[09-08|06:11:05.735] INFO server/server.go:272 adding route {"url": "/ext/bc/2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "endpoint": ""},
[09-08|06:11:05.735] INFO

bootstrap/bootstrapper.go:282 shutting down bootstrapper,
[09-08|06:11:05.735] INFO network/network.go:1064 shutting down the p2p networking,
[09-08|06:11:05.735] INFO server/server.go:272 adding route {"url": "/ext/bc/2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM", "endpoint": "/wallet"},
[09-08|06:11:05.748] INFO node/node.go:1387 cleaning up plugin subprocesses,
[09-08|06:11:05.753] INFO node/node.go:1399 finished node shutdown,
[09-08|06:11:05.753] INFO nat/nat.go:180 Unmapped all ports,
2022/09/08 06:11:05 command /app/avalanchego finished, error: ,
panic: os: process already finished,
,
goroutine 65 [running]:,
main.startCommand.func1(),
/go/src/github.com/ava-labs/avalanche-rosetta/cmd/runner/main.go:93 +0x72,
created by main.startCommand,
/go/src/github.com/ava-labs/avalanche-rosetta/cmd/runner/main.go:89 +0x2ea,

Native Call Tracer Migration Error

When attempting to migrate to the new native call tracer, we get this error (likely because precompiles not being parsed correctly):

Reconciliation failed for 0x0100000000000000000000000000000000000000 at 751 computed: 146873884000000000000AVAX live: 0AVAX
[MEMORY] Heap: 1532.688637MB Stack: 4.406250MB System: 1668.249397MB GCs: 6
2021/11/18 18:56:52 check:data status server shutting down


Error: reconciliation failure: active reconciliation error for 0x0100000000000000000000000000000000000000 at 751 (computed: 146873884000000000000AVAX, live: 0AVAX)

+--------------------+--------------------------------+--------+
|  CHECK:DATA TESTS  |          DESCRIPTION           | STATUS |
+--------------------+--------------------------------+--------+
| Request/Response   | Rosetta implementation         | PASSED |
|                    | serviced all requests          |        |
+--------------------+--------------------------------+--------+
| Response Assertion | All responses are correctly    | PASSED |
|                    | formatted                      |        |
+--------------------+--------------------------------+--------+
| Block Syncing      | Blocks are connected into a    | PASSED |
|                    | single canonical chain         |        |
+--------------------+--------------------------------+--------+
| Balance Tracking   | Account balances did not go    | PASSED |
|                    | negative                       |        |
+--------------------+--------------------------------+--------+
| Reconciliation     | No balance discrepencies were  | FAILED |
|                    | found between computed and     |        |
|                    | live balances                  |        |
+--------------------+--------------------------------+--------+

+--------------------------+--------------------------------+------------+
|     CHECK:DATA STATS     |          DESCRIPTION           |   VALUE    |
+--------------------------+--------------------------------+------------+
| Blocks                   | # of blocks synced             |       1197 |
+--------------------------+--------------------------------+------------+
| Orphans                  | # of blocks orphaned           |          0 |
+--------------------------+--------------------------------+------------+
| Transactions             | # of transaction processed     |       1213 |
+--------------------------+--------------------------------+------------+
| Operations               | # of operations processed      |       2865 |
+--------------------------+--------------------------------+------------+
| Accounts                 | # of accounts seen             |         70 |
+--------------------------+--------------------------------+------------+
| Active Reconciliations   | # of reconciliations performed |       1559 |
|                          | after seeing an account in a   |            |
|                          | block                          |            |
+--------------------------+--------------------------------+------------+
| Inactive Reconciliations | # of reconciliations performed |        141 |
|                          | on randomly selected accounts  |            |
+--------------------------+--------------------------------+------------+
| Exempt Reconciliations   | # of reconciliation failures   |          0 |
|                          | considered exempt              |            |
+--------------------------+--------------------------------+------------+
| Failed Reconciliations   | # of reconciliation failures   |          1 |
+--------------------------+--------------------------------+------------+
| Skipped Reconciliations  | # of reconciliations skipped   |          0 |
+--------------------------+--------------------------------+------------+
| Reconciliation Coverage  | % of accounts that have been   | 88.571429% |
|                          | reconciled                     |            |
+--------------------------+--------------------------------+------------+

badger 2021/11/18 18:56:52 INFO: Storing value log head: {Fid:0 Len:32 Offset:3228648}
Error: reconciliation failure: active reconciliation error for 0x0100000000000000000000000000000000000000 at 751 (computed: 146873884000000000000AVAX, live: 0AVAX)

Can we get all information for 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E USDC token like balance’s, transactions etc. from avalanche-rosetta node?

Hello Team,
I want to extract all information for 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E USDC token like balance’s, transactions etc.
I had setup avalanche-rosetta node using docker, currently it is syncing.
Once its full sync. Will it fulfill my requirement?
Here is the steps to setup node

  1. pull repository
    sudo git clone https://github.com/ava-labs/avalanche-rosetta.git
    2. Create docker image
    sudo docker build --no-cache --build-arg AVALANCHE_VERSION=${AVALANCHE_VERSION} --build-arg ROSETTA_VERSION=${GIT_COMMIT} -t avaplatform/avalanche-rosetta:v1.7.13est .
  2. build docker container
    sudo docker run -d --name avalanche-mainnet-3332 --rm -v $PWD/data:/data -v $PWD/logs:/root/.avalanchego -e AVALANCHE_NETWORK=Mainnet -e AVALANCHE_CHAIN=43114 -e AVALANCHE_MODE=online -e token_whitelist="0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" -e validate_erc20_whitelist=true -p 3332:8080 -p 9650:9650 -p 9651:9651 avalanche-rosetta:v1.7.13

Failed to connect to bootstrap nodes.

Hello Team

i am upgrading rosetta node from v0.1.31 to v0.1.44, getting error

docker-compose.yaml
version: '2'
services:
node-avalanche:
image: avaplatform/avalanche-rosetta
container_name: avalanche-mainnet_6332
restart: always
ports:
- "6332:8080"
- "9650:9650"
- "9651:9651"
environment:
- AVALANCHE_NETWORK=Mainnet
- AVALANCHE_CHAIN=43114
- AVALANCHE_MODE=online
volumes:
- /localdisk/data:/data
- /localdisk/logs:/root/.avalanchego

Container Logs
avalanche-mainnet_6332 | INFO [03-29|12:49:13] node/node.go#838: skipping admin API initialization because it has been disabled
avalanche-mainnet_6332 | INFO [03-29|12:49:13] node/node.go#886: initializing info API
avalanche-mainnet_6332 | INFO [03-29|12:49:13] api/server/server.go#208: adding route /ext/info
avalanche-mainnet_6332 | INFO [03-29|12:49:13] node/node.go#990: skipping ipc API initialization because it has been disabled
avalanche-mainnet_6332 | INFO [03-29|12:49:13] node/node.go#1003: initializing chain aliases
avalanche-mainnet_6332 | INFO [03-29|12:49:14] node/node.go#1021: initializing API aliases
avalanche-mainnet_6332 | INFO [03-29|12:49:14] node/node.go#861: skipping profiler initialization because it has been disabled
avalanche-mainnet_6332 | INFO [03-29|12:49:14] node/node.go#475: initializing chains
avalanche-mainnet_6332 | INFO [03-29|12:49:14] chains/manager.go#245: creating chain:
avalanche-mainnet_6332 | ID: 11111111111111111111111111111111LpoYY
avalanche-mainnet_6332 | VMID:rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT
avalanche-mainnet_6332 | INFO [03-29|12:49:14]

vms/platformvm/vm.go#226: initializing last accepted block as 2FUFPVPxbTpKNn39moGSzsmGroYES4NZRdw3mJgNvMkMiMHJ9e
avalanche-mainnet_6332 | INFO [03-29|12:49:14]

snow/engine/snowman/transitive.go#62: initializing consensus engine
avalanche-mainnet_6332 | INFO [03-29|12:49:14]

snow/engine/common/bootstrapper.go#82: Starting bootstrap...
avalanche-mainnet_6332 | INFO [03-29|12:49:14] api/server/server.go#114: HTTP API server listening on "0.0.0.0:9650"
avalanche-mainnet_6332 | INFO [03-29|12:49:14] api/server/server.go#192: adding route /ext/bc/11111111111111111111111111111111LpoYY
avalanche-mainnet_6332 | FATAL[03-29|12:50:12] node/node.go#228: Failed to connect to bootstrap nodes. Node shutting down...
avalanche-mainnet_6332 | INFO [03-29|12:50:12] node/node.go#1153: shutting down node with exit code 1
avalanche-mainnet_6332 | INFO [03-29|12:50:12] ipcs/chainipc.go#101: shutting down chain IPCs
avalanche-mainnet_6332 | INFO [03-29|12:50:12] chains/manager.go#828: shutting down chain manager
avalanche-mainnet_6332 | INFO [03-29|12:50:12] snow/networking/router/chain_router.go#260: shutting down chain router
avalanche-mainnet_6332 | INFO [03-29|12:50:12]

snow/engine/snowman/transitive.go#154: shutting down consensus engine
avalanche-mainnet_6332 | INFO [03-29|12:50:12] network/network.go#656: shutting down network
avalanche-mainnet_6332 | INFO [03-29|12:50:12] node/node.go#1177: cleaning up plugin subprocesses
avalanche-mainnet_6332 | INFO [03-29|12:50:12] node/node.go#1180: finished node shutdown
avalanche-mainnet_6332 | INFO [03-29|12:50:12] nat/nat.go#152: Unmapped all ports
avalanche-mainnet_6332 | 2024/03/29 12:50:12 command /app/avalanchego finished, error:
avalanche-mainnet_6332 | panic: os: process already finished
avalanche-mainnet_6332 |
avalanche-mainnet_6332 | goroutine 5 [running]:
avalanche-mainnet_6332 | main.startCommand.func1()
avalanche-mainnet_6332 | /go/src/github.com/ava-labs/avalanche-rosetta/cmd/runner/main.go:93 +0x72
avalanche-mainnet_6332 | created by main.startCommand
avalanche-mainnet_6332 | /go/src/github.com/ava-labs/avalanche-rosetta/cmd/runner/main.go:89 +0x305
avalanche-mainnet_6332 exited with code 0

Can anyone help on that.

Thankyou
Umang Awasthy

Rosetta node is not running

Hello Team,

I have followed the steps as mentioned and tried to run rosetta node, container started but stopped after few seconds. Below are the logs from the main.log file. Can you please help why the container is not running.

INFO [07-20|09:17:49] app/process/process.go#126: bootstrapped with current database version: false
WARN [07-20|09:17:49] app/process/process.go#185: UPnP or NAT-PMP router attach failed, you may not be listening publicly. Please confirm the settings in your router
INFO [07-20|09:17:49] node/node.go#996: node version is: avalanche/1.4.10
INFO [07-20|09:17:49] node/node.go#997: node ID is: NodeID-3uh5kzAJP7at96VYbcFKBznPGD8MHnCyz
INFO [07-20|09:17:49] node/node.go#998: current database version: v1.4.5
INFO [07-20|09:17:49] node/node.go#505: initializing API server
INFO [07-20|09:17:49] api/server/server.go#82: API created with allowed origins: [*]
INFO [07-20|09:17:49] node/node.go#804: initializing metrics API
INFO [07-20|09:17:49] api/server/server.go#207: adding route /ext/metrics
INFO [07-20|09:17:49] node/node.go#767: initializing keystore
INFO [07-20|09:17:49] node/node.go#779: skipping keystore API initialization because it has been disabled
INFO [07-20|09:17:49] node/node.go#759: initializing SharedMemory
INFO [07-20|09:17:49] node/node.go#168: this node's IP is set to: "172.17.0.3:9651"
INFO [07-20|09:17:49] node/node.go#885: initializing Health API
INFO [07-20|09:17:49] api/server/server.go#207: adding route /ext/health
INFO [07-20|09:17:49] node/node.go#551: initializing VM aliases
INFO [07-20|09:17:50] api/server/server.go#207: adding route /ext/vm/rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT
INFO [07-20|09:17:50] api/server/server.go#207: adding route /ext/vm/jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq
INFO [07-20|09:17:50] api/server/server.go#207: adding route /ext/vm/mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6/ws
INFO [07-20|09:17:50] api/server/server.go#207: adding route /ext/vm/mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6/rpc
INFO [07-20|09:17:50] node/node.go#820: skipping admin API initialization because it has been disabled
INFO [07-20|09:17:50] node/node.go#858: initializing info API
INFO [07-20|09:17:50] api/server/server.go#207: adding route /ext/info
INFO [07-20|09:17:50] node/node.go#935: skipping ipc API initialization because it has been disabled
INFO [07-20|09:17:50] node/node.go#948: initializing chain aliases
INFO [07-20|09:17:50] node/node.go#966: initializing API aliases
INFO [07-20|09:17:50] node/node.go#834: skipping profiler initialization because it has been disabled
INFO [07-20|09:17:50] node/node.go#491: initializing chains
INFO [07-20|09:17:50] chains/manager.go#239: creating chain:
ID: 11111111111111111111111111111111LpoYY
VMID:rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT
INFO [07-20|09:17:51] api/server/server.go#113: HTTP API server listening on "0.0.0.0:9650"
INFO [07-20|09:17:51] api/server/server.go#191: adding route /ext/bc/11111111111111111111111111111111LpoYY
FATAL[07-20|09:18:49] node/node.go#215: Failed to connect to bootstrap nodes. Node shutting down...
INFO [07-20|09:18:49] node/node.go#1087: shutting down node with exit code 1
INFO [07-20|09:18:49] ipcs/chainipc.go#101: shutting down chain IPCs
INFO [07-20|09:18:49] chains/manager.go#762: shutting down chain manager
INFO [07-20|09:18:49] snow/networking/router/chain_router.go#185: shutting down chain router
INFO [07-20|09:18:49] network/network.go#983: shutting down network
INFO [07-20|09:18:49] node/node.go#1111: cleaning up plugin subprocesses
INFO [07-20|09:18:49] node/node.go#1114: finished node shutdown
INFO [07-20|09:18:49] nat/nat.go#152: Unmapped all ports

Upgrade Avalnche rosetta node from v1.9.0(released on Oct 7, 2022) to v0.1.29(released on last week) is not bootstraping

Hello Team

Recently we updated avalnche rosetta node from v1.9.0(released on Oct 7, 2022) to v0.1.29(released on last week), but it seems my node is not starting properly. it's countinusely starting and shutting down.
Here is docker container logs

[04-04|04:54:34.052] INFO chains/manager.go:319 creating chain {"subnetID": "11111111111111111111111111111111LpoYY", "chainID": "11111111111111111111111111111111LpoYY", "vmID": "rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT"},
[04-04|04:54:34.052] INFO chains/manager.go:1122 creating proposervm wrapper {"activationTime": "[09-22|21:00:00.000]", "minPChainHeight": 793005, "minBlockDelay": "1s"},
[04-04|04:54:39.357] INFO

platformvm/vm.go:228 initializing last accepted {"blkID": "jTVxF7RgtqBvNSzejXg5JcgjkhnsqDsK8AtfnnU3uFCftv4rC"},
[04-04|04:54:39.358] INFO

snowman/transitive.go:89 initializing consensus engine,
[04-04|04:54:39.358] INFO server/server.go:269 adding route {"url": "/ext/bc/11111111111111111111111111111111LpoYY", "endpoint": ""},
[04-04|04:54:39.368] FATAL indexer/indexer.go:242 index is incomplete but incomplete indices are disabled. Shutting down {"chainName": "P"},
[04-04|04:54:39.368] INFO

bootstrap/bootstrapper.go:123 starting bootstrapper,
[04-04|04:54:39.368] INFO chains/manager.go:1358 starting chain creator,
[04-04|04:54:39.368] INFO server/server.go:184 HTTP API server listening {"host": "0.0.0.0", "port": 9650},
[04-04|04:54:39.368] INFO node/node.go:1384 shutting down node {"exitCode": 0},
[04-04|04:54:39.401] INFO ipcs/chainipc.go:123 shutting down chain IPCs,
[04-04|04:54:39.401] INFO chains/manager.go:1393 shutting down chain manager,
[04-04|04:54:39.401] INFO chains/manager.go:1386 stopping chain creator,
[04-04|04:54:39.401] INFO router/chain_router.go:361 shutting down chain router,
[04-04|04:54:39.401] INFO

bootstrap/bootstrapper.go:295 shutting down bootstrapper,
[04-04|04:54:39.424] INFO network/network.go:1280 shutting down the p2p networking,
[04-04|04:54:39.424] INFO node/node.go:1437 cleaning up plugin runtimes,
[04-04|04:54:39.426] INFO node/node.go:1459 finished node shutdown,
[04-04|04:54:39.426] INFO nat/nat.go:178 Unmapped all ports,
2023/04/04 04:54:39 command /app/avalanchego finished, error: ,
2023/04/04 04:54:39 command /app/rosetta-server finished, error: ,
2023/04/04 04:54:39 signal: terminated,
2023/04/04 04:54:40 starting command: /app/rosetta-server [-config rosetta-config.json],
2023/04/04 04:54:40 starting command: /app/avalanchego [--config-file /app/avalanchego-config.json],
2023/04/04 04:54:41 starting server in online mode,
2023/04/04 04:54:41 using avax (chain="Avalanche" chainid="43114" network="Mainnet") rpc endpoint: http://localhost:9650,
2023/04/04 04:54:41 starting rosetta server at 0.0.0.0:8080,
[04-04|04:54:49.707] WARN app/app.go:148 UPnP and NAT-PMP router attach failed, you may not be listening publicly. Please confirm the settings in your router,
[04-04|04:54:49.707] WARN app/app.go:153 P2P IP is private, you will not be publicly discoverable {"ip": "172.27.0.2"},
[04-04|04:54:49.707] WARN app/app.go:197 HTTP server is binding to a potentially public host. You may be vulnerable to a DoS attack if your HTTP port is publicly accessible {"host": "0.0.0.0"},
[04-04|04:54:49.708] INFO node/node.go:1249 initializing node {"version": "avalanche/1.9.16", "nodeID": "NodeID-DMB3JjqF56p56P6H8hKFisnuhLQTBNTuA", "nodePOP": {"publicKey":"0xa5ae8a0e57a24c73b235eaecf01da1ee1f755036a82b7451741bff295b125b8d9ee549f17dffc7c4fb69cc5924b51178","proofOfPossession":"0x81db2f30edfbd0d8d3314696559aff529d5c3e075217f70d67f1029047dd467d2908ba13fe6936683e62a3c1b2dc4d0d0d2d5194a61412d43ece2c12732853f63fea394f058513c02e02f8d3816e003d18ae7a9695e5b4ce9fc76be31dc9f648"}, "providedFlags": {"api-admin-enabled":false,"api-ipcs-enabled":false,"api-keystore-enabled":false,"chain-config-dir":"/app/configs/chains","config-file":"/app/avalanchego-config.json","db-dir":"/data","http-host":"0.0.0.0","index-enabled":true,"network-id":"Mainnet","network-require-validator-to-connect":true}, "config": {"httpConfig":{"readTimeout":30000000000,"readHeaderTimeout":30000000000,"writeHeaderTimeout":30000000000,"idleTimeout":120000000000,"apiConfig":{"authConfig":{"apiRequireAuthToken":false},"indexerConfig":{"indexAPIEnabled":true,"indexAllowIncomplete":false},"ipcConfig":{"ipcAPIEnabled":false,"ipcPath":"/tmp","ipcDefaultChainIDs":null},"adminAPIEnabled":false,"infoAPIEnabled":true,"keystoreAPIEnabled":false,"metricsAPIEnabled":true,"healthAPIEnabled":true},"httpHost":"0.0.0.0","httpPort":9650,"httpsEnabled":false,"apiAllowedOrigins":[""],"shutdownTimeout":10000000000,"shutdownWait":0},"ipConfig":{"ip":{"ip":"172.27.0.2","port":9651},"ipResolutionFrequency":300000000000,"attemptedNATTraversal":true},"stakingConfig":{"uptimeRequirement":0.8,"minValidatorStake":2000000000000,"maxValidatorStake":3000000000000000,"minDelegatorStake":25000000000,"minDelegationFee":20000,"minStakeDuration":1209600000000000,"maxStakeDuration":31536000000000000,"rewardConfig":{"maxConsumptionRate":120000,"minConsumptionRate":100000,"mintingPeriod":31536000000000000,"supplyCap":720000000000000000},"enableStaking":true,"disabledStakingWeight":100,"stakingKeyPath":"/root/.avalanchego/staking/staker.key","stakingCertPath":"/root/.avalanchego/staking/staker.crt","stakingSignerPath":"/root/.avalanchego/staking/signer.key"},"txFeeConfig":{"txFee":1000000,"createAssetTxFee":10000000,"createSubnetTxFee":1000000000,"transformSubnetTxFee":10000000000,"createBlockchainTxFee":1000000000,"addPrimaryNetworkValidatorFee":0,"addPrimaryNetworkDelegatorFee":0,"addSubnetValidatorFee":1000000,"addSubnetDelegatorFee":1000000},"stateSyncConfig":{"stateSyncIDs":null,"stateSyncIPs":null},"bootstrapConfig":{"retryBootstrap":true,"retryBootstrapWarnFrequency":50,"bootstrapBeaconConnectionTimeout":60000000000,"bootstrapAncestorsMaxContainersSent":2000,"bootstrapAncestorsMaxContainersReceived":2000,"bootstrapMaxTimeGetAncestors":50000000,"bootstrapIDs":["NodeID-9T7NXBFpp8LWCyc58YdKNoowDipdVKAWz","NodeID-Drv1Qh7iJvW3zGBBeRnYfCzk56VCRM2GQ","NodeID-Nr584bLpGgbCUbZFSBaBz3Xum5wpca9Ym","NodeID-kZNuQMHhydefgnwjYX1fhHMpRNAs9my1","NodeID-BQEo5Fy1FRKLbX51ejqDd14cuSXJKArH2"],"bootstrapIPs":[{"ip":"18.202.190.40","port":9651},{"ip":"13.244.155.170","port":9651},{"ip":"18.162.129.129","port":9651},{"ip":"18.158.15.12","port":9651},{"ip":"3.34.221.73","port":9651}]},"databaseConfig":{"path":"/data/mainnet","name":"leveldb"},"avaxAssetID":"FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z","networkID":1,"healthCheckFreq":30000000000,"networkConfig":{"healthConfig":{"minConnectedPeers":1,"maxTimeSinceMsgReceived":60000000000,"maxTimeSinceMsgSent":60000000000,"maxPortionSendQueueBytesFull":0.9,"maxSendFailRate":0.9,"sendFailRateHalflife":10000000000},"peerListGossipConfig":{"peerListNumValidatorIPs":15,"peerListValidatorGossipSize":20,"peerListNonValidatorGossipSize":0,"peerListPeersGossipSize":10,"peerListGossipFreq":60000000000},"timeoutConfigs":{"pingPongTimeout":30000000000,"readHandshakeTimeout":15000000000},"delayConfig":{"initialReconnectDelay":1000000000,"maxReconnectDelay":60000000000},"throttlerConfig":{"inboundConnUpgradeThrottlerConfig":{"upgradeCooldown":10000000000,"maxRecentConnsUpgraded":2560},"inboundMsgThrottlerConfig":{"byteThrottlerConfig":{"vdrAllocSize":33554432,"atLargeAllocSize":6291456,"nodeMaxAtLargeBytes":2097152},"bandwidthThrottlerConfig":{"bandwidthRefillRate":524288,"bandwidthMaxBurstRate":2097152},"cpuThrottlerConfig":{"maxRecheckDelay":5000000000},"diskThrottlerConfig":{"maxRecheckDelay":5000000000},"maxProcessingMsgsPerNode":1024},"outboundMsgThrottlerConfig":{"vdrAllocSize":33554432,"atLargeAllocSize":33554432,"nodeMaxAtLargeBytes":2097152},"maxInboundConnsPerSec":256},"proxyEnabled":false,"proxyReadHeaderTimeout":3000000000,"dialerConfig":{"throttleRps":50,"connectionTimeout":30000000000},"tlsKeyLogFile":"","namespace":"","myNodeID":"NodeID-111111111111111111116DBWJs","myIP":null,"networkID":0,"maxClockDifference":60000000000,"pingFrequency":22500000000,"allowPrivateIPs":true,"compressionEnabled":true,"uptimeMetricFreq":30000000000,"requireValidatorToConnect":true,"maximumInboundMessageTimeout":10000000000,"peerReadBufferSize":8192,"peerWriteBufferSize":8192},"adaptiveTimeoutConfig":{"initialTimeout":5000000000,"minimumTimeout":2000000000,"maximumTimeout":10000000000,"timeoutCoefficient":2,"timeoutHalflife":300000000000},"benchlistConfig":{"threshold":10,"minimumFailingDuration":150000000000,"duration":900000000000,"maxPortion":0.08333333333333333},"profilerConfig":{"dir":"/root/.avalanchego/profiles","enabled":false,"freq":900000000000,"maxNumFiles":5},"loggingConfig":{"maxSize":8,"maxFiles":7,"maxAge":0,"directory":"/root/.avalanchego/logs","compress":false,"disableWriterDisplaying":false,"logLevel":"INFO","displayLevel":"INFO","logFormat":"PLAIN"},"pluginDir":"/root/.avalanchego/plugins","fdLimit":32768,"meterVMEnabled":true,"routerHealthConfig":{"maxDropRate":1,"maxDropRateHalflife":10000000000,"maxOutstandingRequests":1024,"maxOutstandingDuration":300000000000,"maxRunTimeRequests":10000000000},"consensusShutdownTimeout":30000000000,"consensusGossipFreq":10000000000,"trackedSubnets":[],"subnetConfigs":{"11111111111111111111111111111111LpoYY":{"gossipAcceptedFrontierValidatorSize":0,"gossipAcceptedFrontierNonValidatorSize":0,"gossipAcceptedFrontierPeerSize":15,"gossipOnAcceptValidatorSize":0,"gossipOnAcceptNonValidatorSize":0,"gossipOnAcceptPeerSize":10,"appGossipValidatorSize":10,"appGossipNonValidatorSize":0,"appGossipPeerSize":0,"validatorOnly":false,"allowedNodes":null,"consensusParameters":{"k":20,"alpha":15,"betaVirtuous":15,"betaRogue":20,"concurrentRepolls":4,"optimalProcessing":10,"maxOutstandingItems":256,"maxItemProcessingTime":30000000000,"mixedQueryNumPushVdr":10,"mixedQueryNumPushNonVdr":0,"parents":5,"batchSize":30},"proposerMinBlockDelay":1000000000,"minPercentConnectedStakeHealthy":0}},"chainAliases":null,"systemTrackerProcessingHalflife":15000000000,"systemTrackerFrequency":500000000,"systemTrackerCPUHalflife":15000000000,"systemTrackerDiskHalflife":60000000000,"cpuTargeterConfig":{"vdrAlloc":16,"maxNonVdrUsage":12.8,"maxNonVdrNodeUsage":2},"diskTargeterConfig":{"vdrAlloc":1073741824000,"maxNonVdrUsage":1073741824000,"maxNonVdrNodeUsage":1073741824000},"requiredAvailableDiskSpace":536870912,"warningThresholdAvailableDiskSpace":1073741824,"traceConfig":{"exporterConfig":{"type":"unknown","endpoint":"","headers":null,"insecure":false},"enabled":false,"traceSampleRate":0},"minPercentConnectedStakeHealthy":{"11111111111111111111111111111111LpoYY":0.8},"useCurrentHeight":false,"chainDataDir":"/root/.avalanchego/chainData"}},
[04-04|04:54:49.708] INFO node/node.go:582 initializing API server,
[04-04|04:54:49.708] INFO server/server.go:147 API created {"allowedOrigins": ["
"]},
[04-04|04:54:49.708] INFO node/node.go:910 initializing metrics API,
[04-04|04:54:49.708] INFO server/server.go:308 adding route {"url": "/ext/metrics", "endpoint": ""},
[04-04|04:54:49.708] INFO leveldb/db.go:205 creating leveldb {"config": {"blockCacheCapacity":12582912,"blockSize":0,"compactionExpandLimitFactor":0,"compactionGPOverlapsFactor":0,"compactionL0Trigger":0,"compactionSourceLimitFactor":0,"compactionTableSize":0,"compactionTableSizeMultiplier":0,"compactionTableSizeMultiplierPerLevel":null,"compactionTotalSize":0,"compactionTotalSizeMultiplier":0,"disableSeeksCompaction":true,"openFilesCacheCapacity":1024,"writeBuffer":6291456,"filterBitsPerKey":10,"maxManifestFileSize":9223372036854775807,"metricUpdateFrequency":10000000000}},
[04-04|04:55:05.266] INFO node/node.go:452 initializing database {"dbVersion": "v1.4.5"},
[04-04|04:55:05.277] INFO node/node.go:867 initializing keystore,
[04-04|04:55:05.277] INFO node/node.go:875 skipping keystore API initialization because it has been disabled,
[04-04|04:55:05.277] INFO node/node.go:859 initializing SharedMemory,
[04-04|04:55:05.297] INFO node/node.go:232 initializing networking {"currentNodeIP": "172.27.0.2:9651"},
[04-04|04:55:05.298] INFO node/node.go:1030 initializing Health API,
[04-04|04:55:05.298] INFO server/server.go:308 adding route {"url": "/ext/health", "endpoint": ""},
[04-04|04:55:05.298] INFO server/server.go:308 adding route {"url": "/ext/health", "endpoint": "/readiness"},
[04-04|04:55:05.298] INFO server/server.go:308 adding route {"url": "/ext/health", "endpoint": "/health"},
[04-04|04:55:05.298] INFO server/server.go:308 adding route {"url": "/ext/health", "endpoint": "/liveness"},
[04-04|04:55:05.298] INFO node/node.go:642 adding the default VM aliases,
[04-04|04:55:05.477] INFO node/node.go:762 initializing VMs,
[04-04|04:55:05.477] INFO server/server.go:308 adding route {"url": "/ext/vm/rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT", "endpoint": ""},
[04-04|04:55:05.478] INFO server/server.go:308 adding route {"url": "/ext/vm/jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq", "endpoint": ""},
[04-04|04:55:05.478] INFO server/server.go:308 adding route {"url": "/ext/vm/mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6", "endpoint": "/rpc"},
[04-04|04:55:05.478] INFO node/node.go:930 skipping admin API initialization because it has been disabled,
[04-04|04:55:05.478] INFO node/node.go:982 initializing info API,
[04-04|04:55:05.479] INFO server/server.go:308 adding route {"url": "/ext/info", "endpoint": ""},
[04-04|04:55:05.479] INFO node/node.go:1133 skipping ipc API initialization because it has been disabled,
[04-04|04:55:05.479] INFO node/node.go:1146 initializing chain aliases,
[04-04|04:55:05.566] INFO node/node.go:1173 initializing API aliases,
[04-04|04:55:05.654] INFO node/node.go:955 skipping profiler initialization because it has been disabled,
[04-04|04:55:05.654] INFO node/node.go:561 initializing chains,
[04-04|04:55:05.654] INFO chains/manager.go:319 creating chain {"subnetID": "11111111111111111111111111111111LpoYY", "chainID": "11111111111111111111111111111111LpoYY", "vmID": "rWhpuQPF1kb72esV2momhMuTYGkEb1oL29pt2EBXWmSy4kxnT"},
[04-04|04:55:05.655] INFO chains/manager.go:1122 creating proposervm wrapper {"activationTime": "[09-22|21:00:00.000]", "minPChainHeight": 793005, "minBlockDelay": "1s"},
[04-04|04:55:10.277] INFO

platformvm/vm.go:228 initializing last accepted {"blkID": "jTVxF7RgtqBvNSzejXg5JcgjkhnsqDsK8AtfnnU3uFCftv4rC"},
[04-04|04:55:10.290] INFO

snowman/transitive.go:89 initializing consensus engine,
[04-04|04:55:10.291] INFO server/server.go:269 adding route {"url": "/ext/bc/11111111111111111111111111111111LpoYY", "endpoint": ""},
[04-04|04:55:10.302] FATAL indexer/indexer.go:242 index is incomplete but incomplete indices are disabled. Shutting down {"chainName": "P"},
[04-04|04:55:10.302] INFO

bootstrap/bootstrapper.go:123 starting bootstrapper,
[04-04|04:55:10.302] INFO chains/manager.go:1358 starting chain creator,
[04-04|04:55:10.302] INFO node/node.go:1384 shutting down node {"exitCode": 0},
[04-04|04:55:10.302] INFO ipcs/chainipc.go:123 shutting down chain IPCs,
[04-04|04:55:10.302] INFO chains/manager.go:1393 shutting down chain manager,
[04-04|04:55:10.302] INFO chains/manager.go:1386 stopping chain creator,
[04-04|04:55:10.302] INFO router/chain_router.go:361 shutting down chain router,
[04-04|04:55:10.302] INFO

bootstrap/bootstrapper.go:295 shutting down bootstrapper,
[04-04|04:55:10.302] INFO server/server.go:184 HTTP API server listening {"host": "0.0.0.0", "port": 9650},
[04-04|04:55:10.302] INFO network/network.go:1280 shutting down the p2p networking,
[04-04|04:55:10.303] INFO node/node.go:1437 cleaning up plugin runtimes,
[04-04|04:55:10.305] INFO node/node.go:1459 finished node shutdown,
[04-04|04:55:10.305] INFO nat/nat.go:178 Unmapped all ports,
2023/04/04 04:55:10 command /app/avalanchego finished, error: ,
panic: os: process already finished,
,
goroutine 8 [running]:,
main.startCommand.func1(),
/go/src/github.com/ava-labs/avalanche-rosetta/cmd/runner/main.go:93 +0x72,
created by main.startCommand,
/go/src/github.com/ava-labs/avalanche-rosetta/cmd/runner/main.go:89 +0x2ea,
2023/04/04 04:55:11 starting command: /app/rosetta-server [-config rosetta-config.json],
2023/04/04 04:55:11 starting command: /app/avalanchego [--config-file /app/avalanchego-config.json],
2023/04/04 04:55:11 starting server in online mode,
2023/04/04 04:55:12 using avax (chain="Avalanche" chainid="43114" network="Mainnet") rpc endpoint: http://localhost:9650,
2023/04/04 04:55:12 starting rosetta server at 0.0.0.0:8080,
[04-04|04:55:19.563] WARN app/app.go:148 UPnP and NAT-PMP router attach failed, you may not be listening publicly. Please confirm the settings in your router,
[04-04|04:55:19.564] WARN app/app.go:153 P2P IP is private, you will not be publicly discoverable {"ip": "172.27.0.2"},
[04-04|04:55:19.564] WARN app/app.go:197 HTTP server is binding to a potentially public host. You may be vulnerable to a DoS attack if your HTTP port is publicly accessible {"host": "0.0.0.0"},
[04-04|04:55:19.564] INFO node/node.go:1249 initializing node {"version": "avalanche/1.9.16", "nodeID": "NodeID-DMB3JjqF56p56P6H8hKFisnuhLQTBNTuA", "nodePOP": {"publicKey":"0xa5ae8a0e57a24c73b235eaecf01da1ee1f755036a82b7451741bff295b125b8d9ee549f17dffc7c4fb69cc5924b51178","proofOfPossession":"0x81db2f30edfbd0d8d3314696559aff529d5c3e075217f70d67f1029047dd467d2908ba13fe6936683e62a3c1b2dc4d0d0d2d5194a61412d43ece2c12732853f63fea394f058513c02e02f8d3816e003d18ae7a9695e5b4ce9fc76be31dc9f648"}, "providedFlags": {"api-admin-enabled":false,"api-ipcs-enabled":false,"api-keystore-enabled":false,"chain-config-dir":"/app/configs/chains","config-file":"/app/avalanchego-config.json","db-dir":"/data","http-host":"0.0.0.0","index-enabled":true,"network-id":"Mainnet","network-require-validator-to-connect":true}, "config": {"httpConfig":{"readTimeout":30000000000,"readHeaderTimeout":30000000000,"writeHeaderTimeout":30000000000,"idleTimeout":120000000000,"apiConfig":{"authConfig":{"apiRequireAuthToken":false},"indexerConfig":{"indexAPIEnabled":true,"indexAllowIncomplete":false},"ipcConfig":{"ipcAPIEnabled":false,"ipcPath":"/tmp","ipcDefaultChainIDs":null},"adminAPIEnabled":false,"infoAPIEnabled":true,"keystoreAPIEnabled":false,"metricsAPIEnabled":true,"healthAPIEnabled":true},"httpHost":"0.0.0.0","httpPort":9650,"httpsEnabled":false,"apiAllowedOrigins":[""],"shutdownTimeout":10000000000,"shutdownWait":0},"ipConfig":{"ip":{"ip":"172.27.0.2","port":9651},"ipResolutionFrequency":300000000000,"attemptedNATTraversal":true},"stakingConfig":{"uptimeRequirement":0.8,"minValidatorStake":2000000000000,"maxValidatorStake":3000000000000000,"minDelegatorStake":25000000000,"minDelegationFee":20000,"minStakeDuration":1209600000000000,"maxStakeDuration":31536000000000000,"rewardConfig":{"maxConsumptionRate":120000,"minConsumptionRate":100000,"mintingPeriod":31536000000000000,"supplyCap":720000000000000000},"enableStaking":true,"disabledStakingWeight":100,"stakingKeyPath":"/root/.avalanchego/staking/staker.key","stakingCertPath":"/root/.avalanchego/staking/staker.crt","stakingSignerPath":"/root/.avalanchego/staking/signer.key"},"txFeeConfig":{"txFee":1000000,"createAssetTxFee":10000000,"createSubnetTxFee":1000000000,"transformSubnetTxFee":10000000000,"createBlockchainTxFee":1000000000,"addPrimaryNetworkValidatorFee":0,"addPrimaryNetworkDelegatorFee":0,"addSubnetValidatorFee":1000000,"addSubnetDelegatorFee":1000000},"stateSyncConfig":{"stateSyncIDs":null,"stateSyncIPs":null},"bootstrapConfig":{"retryBootstrap":true,"retryBootstrapWarnFrequency":50,"bootstrapBeaconConnectionTimeout":60000000000,"bootstrapAncestorsMaxContainersSent":2000,"bootstrapAncestorsMaxContainersReceived":2000,"bootstrapMaxTimeGetAncestors":50000000,"bootstrapIDs":["NodeID-HiFv1DpKXkAAfJ1NHWVqQoojjznibZXHP","NodeID-6SwnPJLH8cWfrJ162JjZekbmzaFpjPcf","NodeID-Drv1Qh7iJvW3zGBBeRnYfCzk56VCRM2GQ","NodeID-DAtCoXfLT6Y83dgJ7FmQg8eR53hz37J79","NodeID-A8jypu63CWp76STwKdqP6e9hjL675kdiG"],"bootstrapIPs":[{"ip":"15.207.11.193","port":9651},{"ip":"52.79.47.77","port":9651},{"ip":"13.244.155.170","port":9651},{"ip":"13.244.47.224","port":9651},{"ip":"3.104.107.241","port":9651}]},"databaseConfig":{"path":"/data/mainnet","name":"leveldb"},"avaxAssetID":"FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z","networkID":1,"healthCheckFreq":30000000000,"networkConfig":{"healthConfig":{"minConnectedPeers":1,"maxTimeSinceMsgReceived":60000000000,"maxTimeSinceMsgSent":60000000000,"maxPortionSendQueueBytesFull":0.9,"maxSendFailRate":0.9,"sendFailRateHalflife":10000000000},"peerListGossipConfig":{"peerListNumValidatorIPs":15,"peerListValidatorGossipSize":20,"peerListNonValidatorGossipSize":0,"peerListPeersGossipSize":10,"peerListGossipFreq":60000000000},"timeoutConfigs":{"pingPongTimeout":30000000000,"readHandshakeTimeout":15000000000},"delayConfig":{"initialReconnectDelay":1000000000,"maxReconnectDelay":60000000000},"throttlerConfig":{"inboundConnUpgradeThrottlerConfig":{"upgradeCooldown":10000000000,"maxRecentConnsUpgraded":2560},"inboundMsgThrottlerConfig":{"byteThrottlerConfig":{"vdrAllocSize":33554432,"atLargeAllocSize":6291456,"nodeMaxAtLargeBytes":2097152},"bandwidthThrottlerConfig":{"bandwidthRefillRate":524288,"bandwidthMaxBurstRate":2097152},"cpuThrottlerConfig":{"maxRecheckDelay":5000000000},"diskThrottlerConfig":{"maxRecheckDelay":5000000000},"maxProcessingMsgsPerNode":1024},"outboundMsgThrottlerConfig":{"vdrAllocSize":33554432,"atLargeAllocSize":33554432,"nodeMaxAtLargeBytes":2097152},"maxInboundConnsPerSec":256},"proxyEnabled":false,"proxyReadHeaderTimeout":3000000000,"dialerConfig":{"throttleRps":50,"connectionTimeout":30000000000},"tlsKeyLogFile":"","namespace":"","myNodeID":"NodeID-111111111111111111116DBWJs","myIP":null,"networkID":0,"maxClockDifference":60000000000,"pingFrequency":22500000000,"allowPrivateIPs":true,"compressionEnabled":true,"uptimeMetricFreq":30000000000,"requireValidatorToConnect":true,"maximumInboundMessageTimeout":10000000000,"peerReadBufferSize":8192,"peerWriteBufferSize":8192},"adaptiveTimeoutConfig":{"initialTimeout":5000000000,"minimumTimeout":2000000000,"maximumTimeout":10000000000,"timeoutCoefficient":2,"timeoutHalflife":300000000000},"benchlistConfig":{"threshold":10,"minimumFailingDuration":150000000000,"duration":900000000000,"maxPortion":0.08333333333333333},"profilerConfig":{"dir":"/root/.avalanchego/profiles","enabled":false,"freq":900000000000,"maxNumFiles":5},"loggingConfig":{"maxSize":8,"maxFiles":7,"maxAge":0,"directory":"/root/.avalanchego/logs","compress":false,"disableWriterDisplaying":false,"logLevel":"INFO","displayLevel":"INFO","logFormat":"PLAIN"},"pluginDir":"/root/.avalanchego/plugins","fdLimit":32768,"meterVMEnabled":true,"routerHealthConfig":{"maxDropRate":1,"maxDropRateHalflife":10000000000,"maxOutstandingRequests":1024,"maxOutstandingDuration":300000000000,"maxRunTimeRequests":10000000000},"consensusShutdownTimeout":30000000000,"consensusGossipFreq":10000000000,"trackedSubnets":[],"subnetConfigs":{"11111111111111111111111111111111LpoYY":{"gossipAcceptedFrontierValidatorSize":0,"gossipAcceptedFrontierNonValidatorSize":0,"gossipAcceptedFrontierPeerSize":15,"gossipOnAcceptValidatorSize":0,"gossipOnAcceptNonValidatorSize":0,"gossipOnAcceptPeerSize":10,"appGossipValidatorSize":10,"appGossipNonValidatorSize":0,"appGossipPeerSize":0,"validatorOnly":false,"allowedNodes":null,"consensusParameters":{"k":20,"alpha":15,"betaVirtuous":15,"betaRogue":20,"concurrentRepolls":4,"optimalProcessing":10,"maxOutstandingItems":256,"maxItemProcessingTime":30000000000,"mixedQueryNumPushVdr":10,"mixedQueryNumPushNonVdr":0,"parents":5,"batchSize":30},"proposerMinBlockDelay":1000000000,"minPercentConnectedStakeHealthy":0}},"chainAliases":null,"systemTrackerProcessingHalflife":15000000000,"systemTrackerFrequency":500000000,"systemTrackerCPUHalflife":15000000000,"systemTrackerDiskHalflife":60000000000,"cpuTargeterConfig":{"vdrAlloc":16,"maxNonVdrUsage":12.8,"maxNonVdrNodeUsage":2},"diskTargeterConfig":{"vdrAlloc":1073741824000,"maxNonVdrUsage":1073741824000,"maxNonVdrNodeUsage":1073741824000},"requiredAvailableDiskSpace":536870912,"warningThresholdAvailableDiskSpace":1073741824,"traceConfig":{"exporterConfig":{"type":"unknown","endpoint":"","headers":null,"insecure":false},"enabled":false,"traceSampleRate":0},"minPercentConnectedStakeHealthy":{"11111111111111111111111111111111LpoYY":0.8},"useCurrentHeight":false,"chainDataDir":"/root/.avalanchego/chainData"}},
[04-04|04:55:19.565] INFO node/node.go:582 initializing API server,
[04-04|04:55:19.565] INFO server/server.go:147 API created {"allowedOrigins": ["
"]},
[04-04|04:55:19.565] INFO node/node.go:910 initializing metrics API,
[04-04|04:55:19.565] INFO server/server.go:308 adding route {"url": "/ext/metrics", "endpoint": ""},
[04-04|04:55:19.565] INFO leveldb/db.go:205 creating leveldb {"config": {"blockCacheCapacity":12582912,"blockSize":0,"compactionExpandLimitFactor":0,"compactionGPOverlapsFactor":0,"compactionL0Trigger":0,"compactionSourceLimitFactor":0,"compactionTableSize":0,"compactionTableSizeMultiplier":0,"compactionTableSizeMultiplierPerLevel":null,"compactionTotalSize":0,"compactionTotalSizeMultiplier":0,"disableSeeksCompaction":true,"openFilesCacheCapacity":1024,"writeBuffer":6291456,"filterBitsPerKey":10,"maxManifestFileSize":9223372036854775807,"metricUpdateFrequency":10000000000}}

Here is c.logs logs

INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: Chain ID: 43114
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: Consensus: Dummy Consensus Engine
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160:
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: Hard Forks:
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Homestead: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/homestead.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - DAO Fork: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/dao-fork.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Tangerine Whistle (EIP 150): 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/tangerine-whistle.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Spurious Dragon/1 (EIP 155): 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Spurious Dragon/2 (EIP 158): 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Byzantium: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/byzantium.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Constantinople: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/constantinople.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Petersburg: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/petersburg.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Istanbul: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/istanbul.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Muir Glacier: 0 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/muir-glacier.md)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase 1 Timestamp: 1617199200 (https://github.com/ava-labs/avalanchego/releases/tag/v1.3.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase 2 Timestamp: 1620644400 (https://github.com/ava-labs/avalanchego/releases/tag/v1.4.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase 3 Timestamp: 1629813600 (https://github.com/ava-labs/avalanchego/releases/tag/v1.5.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase 4 Timestamp: 1632344400 (https://github.com/ava-labs/avalanchego/releases/tag/v1.6.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase 5 Timestamp: 1638468000 (https://github.com/ava-labs/avalanchego/releases/tag/v1.7.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase P6 Timestamp 1662341400 (https://github.com/ava-labs/avalanchego/releases/tag/v1.8.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase 6 Timestamp: 1662494400 (https://github.com/ava-labs/avalanchego/releases/tag/v1.8.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Apricot Phase Post-6 Timestamp: 1662519600 (https://github.com/ava-labs/avalanchego/releases/tag/v1.8.0
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Banff Timestamp: 1666108800 (https://github.com/ava-labs/avalanchego/releases/tag/v1.9.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160: - Cortina Timestamp: (https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0)
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160:
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:160:
INFO [04-03|04:27:47.914] github.com/ava-labs/coreth/eth/backend.go:162:

Block query taking too long time to execute (40Sec - 60Sec).

Hello Team
I am using current version (rosetta_version - 1.4.9, node_version - 1.7.10, middleware_version - 0.1.7) of avalanche-rosetta node. While query blocks it’s taking too much time to execute it( 40 – 60 second).

Docker Stats --

image

Docker logs—
2022/05/05 02:31:50 POST /block 55.098318901s,
2022/05/05 02:32:33 POST /block 43.20345113s,
2022/05/05 02:34:01 POST /block 43.384694226s,
2022/05/05 02:34:09 POST /block 1m10.224136376s,
2022/05/05 02:34:52 POST /block 43.141344946s,
2022/05/05 02:35:08 POST /network/options 49.163355ms,
2022/05/05 02:35:53 POST /block 45.609636399s,
2022/05/05 02:36:38 POST /block 46.983709346s,
2022/05/05 02:36:39 POST /block 1m25.285527171s,
2022/05/05 02:37:39 POST /block 1m0.702367565s,
INFO [05-05|02:38:14.539]

vms/proposervm/block.go#229: built block 27nu1G7J2MMeMAHzGzqpNmZG4isVQYH5xE4TWrQZti6WppueuA - parent timestamp 2022-05-05 02:36:10 +0000 UTC, block timestamp 2022-05-05 02:38:14 +0000 UTC,
2022/05/05 02:38:20 POST /block 39.040955589s,
2022/05/05 02:38:42 POST /block 45.586120981s,
INFO [05-05|02:39:05.918]

vms/proposervm/block.go#229: built block 2Qs3RXeSexSoZJCVT6pbqXLn2uyizrEJgkxkfnYn9ohuecGNJq - parent timestamp 2022-05-05 02:38:14 +0000 UTC, block timestamp 2022-05-05 02:39:05 +0000 UTC,
2022/05/05 02:39:11 POST /block 51.43949669s,
2022/05/05 02:39:40 POST /block 57.574220259s,
INFO [05-05|02:39:57.495]

vms/proposervm/block.go#229: built block 2CKqpVoEzvWEezMTQarMwyb8CNyxzDWFSk26iivrAsctJiCT1T - parent timestamp 2022-05-05 02:39:05 +0000 UTC, block timestamp 2022-05-05 02:39:57 +0000 UTC,
2022/05/05 02:40:04 POST /block 52.223571935s,
2022/05/05 02:40:21 POST /block 41.169697797s,
2022/05/05 02:40:25 POST /block 35.32321699s,
2022/05/05 02:40:26 POST /block 22.491482153s,
INFO [05-05|02:40:45.248]

vms/proposervm/block.go#229: built block 2rdsv5qAMjZDWxbYd9MMDh4Ss3rpaCm4HmKDkYrjGkMHkSkjUb - parent timestamp 2022-05-05 02:39:57 +0000 UTC, block timestamp 2022-05-05 02:40:45 +0000 UTC,
2022/05/05 02:41:06 POST /block 40.191739254s,
2022/05/05 02:41:41 POST /block 1m15.187456258s,
2022/05/05 02:42:52 POST /block 1m11.276970851s,
2022/05/05 02:43:23 POST /block 53.813438917s,
2022/05/05 02:44:17 POST /block 1m4.127724898s

System Configuration --
OS – Ubuntu 20.04
Disk – 4TB

How to can get genesis hash?

Hi i'm trying to make avax in local (my local chain is custom)
but i dont know how to get genesis of C-Chain to start rosetta

thanks.

Use `debug_traceBlock`

When possible (in /block), we should use debug_traceBlock instead of calling debug_traceTransaction on each tx in the block (

trace, flattened, err := s.client.TraceTransaction(ctx, tx.Hash().String())
).

debug_traceTransaction will instruct the node to reprocess all transactions in the block up to the transaction (https://github.com/ava-labs/coreth/blob/d072f613a130063a7d988cdff4448d96b3a10bda/eth/state_accessor.go#L174-L214) that will be traced (causing a LARGE amount of re-processing that scales with the number of txs).

GLIBC_2.34' not found error while upgrading rosetta node from v0.1.31 to v0.1.35

Hello Team
i am upgrading rosetta node from v0.1.31 to v0.1.35, getting error

/app/avalanchego: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /app/avalanchego) /app/avalanchego: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /app/avalanchego)

Can anyone help on that.

Thankyou
Umang Awasthy

Upgrade issue due to GLIBC

Hi Team,

I'd like to know on which version of Ubuntu have you built the images from your dockerfiles for- v0.1.32 to v0.1.39? Is it Ubuntu 18.04/20.04 or 22.04?

The reason I'm asking is because I'm trying to upgrade my avalanche rosetta node from v0.1.31 to v0.1.39 but it gives me the below error:

/app/avalanchego: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by /app/avalanchego) /app/avalanchego: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by /app/avalanchego)

Current version of GLIBC in my host machine (Ubuntu 20.04) is 2.31

Would appreciate your comments here

Custody Verification

Hi Team
i am using avalanche-rosetta node, now i like to implement custody verification.
can i perform custody verification on rosetta server? if yes, please provide document/example.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.