wetrustplatform / account-indexer Goto Github PK
View Code? Open in Web Editor NEWA go-ethereum companion to index all transactions in Ethereum blockchain
License: GNU Affero General Public License v3.0
A go-ethereum companion to index all transactions in Ethereum blockchain
License: GNU Affero General Public License v3.0
2019/01/28 13:11:48 ChainFetch: FetchABlock cannot get receipt for transaction 0x95d42c2676edcad564050900fc539545d8dccf4f69de15f8eaabcf7f7c1747e9, error=not found
For example, the geth.ipc location, the /datadrive
folder ...
Tuyens-MacBook-Pro:account-indexer tuyennguyen$ go run cmd/indexer/main.go help
NAME:
indexer - the indexer for geth
USAGE:
main [global options] command [command options] [arguments...]
VERSION:
1.8.20-unstable
The version above should be the github release
Even we get transactions from block, we still have to check transaction status.
For example: https://etherscan.io/tx/0x62a1c5a48137c5a649b808b6756a9d4d2fd500a7bde984fe671c95ad911639d5
Getting this error in mainnet:
2019/03/02 12:08:03 Indexer: realtimeIndex - received BlockDetail 7290108 blockTime: 2019-03-02 12:07:59 +0000 UTC
2019/03/02 12:08:08 ChainFetch: getTransactionDetail cannot get receipt for transaction 0x01fc989d7ac9ba1610f9a5a32616ac314b2caa094843f85861d978c2b16f1f00, error=not found
2019/03/02 12:08:08 ChainFetch: RealtimeFetch Cannot get block detail for block 7290109
2019/03/02 12:08:08 ChainFetch: Stopped RealtimeFetch
2019/03/02 12:08:08 Indexer: Stopping realtimeIndex, ipc is switched?
2019/03/02 12:08:08 Indexer: Stopped realtimeIndex
2019/03/02 12:08:08 IpcManager: Cannot switch IPC, number of IPC = 1
blockform@mainindex2:~/go/src/github.com/WeTrustPlatform/account-indexer/cmd/indexer$
Get this error after rerun account-indexer:
[GIN-debug] GET /api/v1/accounts/:accountNumber --> github.com/WeTrustPlatform/account-indexer/http.(*Server).getTransactionsByAccount-fm (3 handlers)
[GIN-debug] GET /api/v1/accounts/:accountNumber/total --> github.com/WeTrustPlatform/account-indexer/http.(*Server).getTotalByAccount-fm (3 handlers)
2019/03/05 10:23:25 Indexer: IPC path /datadrive/geth.ipc is correct, latestBlock=7308800
2019/03/05 10:23:25 Indexer: Starting realtime index
2019/03/05 10:23:25 Indexer: start batchIndex, tag=3-7308800-:
2019/03/05 10:23:25 Indexer: start batchIndex, tag=0-7308800-:
2019/03/05 10:23:25 Indexer: start batchIndex, tag=1-7308800-:
2019/03/05 10:23:25 Indexer: start batchIndex, tag=2-7308800-:
2019/03/05 10:23:25 Indexer: start batchIndex, tag=5-7308800-:
2019/03/05 10:23:25 ChainFetch: RealtimeFetch Waiting for new block hearders...
2019/03/05 10:23:25 Indexer: start batchIndex, tag=6-7308800-:
2019/03/05 10:23:25 Indexer: start batchIndex, tag=7-7308800-:
2019/03/05 10:23:25 Indexer: start batchIndex, tag=4-7308800-:
2019/03/05 10:23:25 2-7308800-: Indexer: cannot update batch for process block 2 , error is leveldb: closed
Note that previously I have issue #24 before getting this.
@sihoang helped set up reverse proxy to forward to port 3000.
So when we start the server, we only need to listen to port 3000 on 127.0.0.1
network interface.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.