dotbithq / das-account-indexer Goto Github PK
View Code? Open in Web Editor NEWMapping relationship between multi-chain's addresses and accounts
License: MIT License
Mapping relationship between multi-chain's addresses and accounts
License: MIT License
It seems recently these are changed in your API:
errno -> err_no
errmsg -> err_msg
It breaks apps that rely on these fields.
Also, all of the documentation is still using errno
and errmsg
:
https://github.com/dotbitHQ/das-account-indexer/blob/main/API.md#get-account-basic-info
在试图运行indexer的过程中,出现如下错误:
2022-02-12 02:35:43.007007786 INFO cmd/main.go:66 ▶ [main] db ok
2022-02-12 02:35:43.014012821 INFO cmd/main.go:79 ▶ [main] ckb node ok
2022-02-12 02:35:43.207004849 FATAL cmd/main.go:43 ▶ [main] InitDasSoScript err: ConfigCellDataBuilderByTypeArgs err: ConfigCellDataBuilderRefByTypeArgs err: ConfigCellMainFromSlice err: HeaderIsBroken ConfigCellMain 0 < 4
但不能定位到具体的错误原因及修正方式。烦请协助告知。
das版本:v1.3.1
ckb 版本: testnet v0.108.0
错误信息如下:
2023-03-20 09:07:01.927908917 INFO block_parser/block_parser.go:205 ▶ [block_parser] parserConcurrencyMode: 8500397 500
2023-03-20 09:07:01.933013286 INFO block_parser/block_parser.go:213 ▶ [block_parser] parserConcurrencyMode: 8500397 0x4b9da7acacdfcbb5a5328819ffe9dffe9ae6a3e2d4a654a56f0e0590d372d7e7 0xfee0813aed813541be72d693b73a4de3405a4403821b11bc50cf601f5ce78eda
2023-03-20 09:07:01.93716231 INFO block_parser/block_parser.go:116 ▶ [block_parser] parsingBlockData txHash: 0x9b7bc45781c021c7e055215b7b04a97ee72b595ebbcd563ac39bd47dfb4c61a5
2023-03-20 09:07:01.937209668 WARN block_parser/block_parser.go:119 ▶ [block_parser] ActionDataBuilderFromTx err: not exist action data
2023-03-20 09:07:01.937219837 INFO block_parser/block_parser.go:116 ▶ [block_parser] parsingBlockData txHash: 0x154312a99a8e45061c872cf697724afd0ab819cbd79ac12697bed029d0a0abf8
2023-03-20 09:07:01.937237915 INFO block_parser/block_parser.go:131 ▶ [block_parser] other handle: 0x154312a99a8e45061c872cf697724afd0ab819cbd79ac12697bed029d0a0abf8 pre_register
2023-03-20 09:07:01.937250588 INFO block_parser/block_parser.go:116 ▶ [block_parser] parsingBlockData txHash: 0x13bcd32840f527aa9b33580eabc92ee3e6b28f63c126288be8a1d8e3210fce98
2023-03-20 09:07:01.937267441 INFO block_parser/block_parser.go:131 ▶ [block_parser] other handle: 0x13bcd32840f527aa9b33580eabc92ee3e6b28f63c126288be8a1d8e3210fce98 propose
2023-03-20 09:07:01.937276972 INFO block_parser/block_parser.go:116 ▶ [block_parser] parsingBlockData txHash: 0x5c3fb75b4624b77f65eec7798d5aaec07f441f61298cc8deaa81e44750d71022
2023-03-20 09:07:01.937304887 INFO block_parser/action_propose_cell.go:18 ▶ [block_parser] das tx: confirm_proposal 0x5c3fb75b4624b77f65eec7798d5aaec07f441f61298cc8deaa81e44750d71022
panic: runtime error: index out of range [0] with length 0
goroutine 69 [running]:
github.com/dotbitHQ/das-lib/core.(*DasAddressFormat).halfArgsToHex(0xc000618340, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/core/address.go:275 +0x77b
github.com/dotbitHQ/das-lib/core.(*DasAddressFormat).ArgsToHex(0xc000618340, 0xc0004dc0f0, 0x2a, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/core/address.go:244 +0x1cb
das-account-indexer/block_parser.(*BlockParser).ActionConfirmProposal(0xc00007ef00, 0xc00017c4c0, 0x8a7901, 0xc0005aab50)
/mnt/server/das-account-indexer/das-account-indexer/block_parser/action_propose_cell.go:35 +0x63d
das-account-indexer/block_parser.(*BlockParser).parsingBlockData(0xc00007ef00, 0xc000616fa0, 0x4, 0x4)
/mnt/server/das-account-indexer/das-account-indexer/block_parser/block_parser.go:134 +0x3cf
das-account-indexer/block_parser.(*BlockParser).parserConcurrencyMode(0xc00007ef00, 0x438b697b, 0x1668c80)
/mnt/server/das-account-indexer/das-account-indexer/block_parser/block_parser.go:215 +0x355
das-account-indexer/block_parser.(*BlockParser).RunParser.func1(0xc00007ef00)
/mnt/server/das-account-indexer/das-account-indexer/block_parser/block_parser.go:78 +0x445
created by das-account-indexer/block_parser.(*BlockParser).RunParser
/mnt/server/das-account-indexer/das-account-indexer/block_parser/block_parser.go:65 +0x12b
你好,我运行了 indexer 版本是 v1.10.0
,日志里面提示有错误
报错信息如下:
2024-04-01 15:29:20.533172403 ERROR block_parser/block_parser.go:136 ▶ [block_parser] action handle resp: fulfill_approval 11785485 0x8c973869625f2e190bba49d8ccfac3cf36ccc15b77bc7834989d432518425773 account_id is not exist
2024-04-01 15:29:20.533213038 ERROR block_parser/block_parser.go:79 ▶ [block_parser] parserConcurrencyMode err: parsingBlockData err: account_id is not exist 11785485
比如这是 ETH.LIMO 项目为 .eth 维护的 DoH 服务器:
https://dns.eth.limo/dns-query
如果发起一个这样的请求:
curl --http2 -H "accept: application/dns-json" "https://dns.eth.limo/dns-query?name=vitalik.eth"
就可以拿到这样的一个结果:
{
"Status": "0",
"RD": false,
"RA": false,
"AD": false,
"CD": false,
"TC": false,
"Question": [
{
"type": 16,
"name": "vitalik.eth"
}
],
"Answer": [
{
"type": 16,
"name": "vitalik.eth",
"data": "dnslink=/ipfs/QmWxRwMg3bHyJxfAuPnUky2yNgNt51qmZqC99Ffenjxa94/",
"ttl": 600
}
]
}
如果 .bit 的 Indexer HTTP Server 上也有这样的一个可以把 DWeb Record 返回为 TXT DNSLink 的服务器,那么把这个服务器配置进 Kubo,Kubo 就可以实现用 IPFS Gateway 解析和访问 .bit 上的 IPFS DWeb 网站。
相关文档:
Hi. There were some errors after I started the server and I couldn't find the problem.
2022-01-21 13:12:55.480654815 DEBUG cmd/main.go:30 ▶ [main] Start service:
2022-01-21 13:12:55.553157034 INFO config/config.go:20 ▶ [main] config file path: conf/config.yaml
2022-01-21 13:12:55.558226545 INFO config/config.go:24 ▶ [main] config file info: {"server":{"net":1,"http_server_addr":":8121","http_server_addr_indexer":":8122","http_server_addr_reverse":":8123"},"chain":{"ckb_url":"http://127.0.0.1:8114","index_url":"http://127.0.0.1:8116","current_block_number":4872287,"confirm_num":4,"concurrency_num":100},"db":{"mysql":{"addr":"127.0.0.1:3306","user":"root","password":"----","db_name":"das_account_indexer","max_open_conn":100,"max_idle_conn":50}},"cache":{"redis":{"addr":"127.0.0.1:3307","password":"","db_num":0}},"das_lib":{"thq_code_hash":"0x9e537bf5b8ec044ca3f53355e879f3fd8832217e4a9b41d9994cf0c547241a79","das_contract_args":"0xc126635ece567c71c50f7482c5db80603852c306","das_contract_code_hash":"0x00000000000000000000000000000000000000000000000000545950455f4944","map_das_contract":{"account-cell-type":"0x96dc231bbbee6aa474076468640f9e0ad27cf13b1343716a7ce04b116ea18ba8","balance-cell-type":"0xbdc8f42643ccad23e8df3d2e8dbdea9201812cd1b7f84c46e69b020529629822","config-cell-type":"0x3775c65aabe8b79980c4933dd2f4347fa5ef03611cef64328685618aa7535794","das-lock":"0xda22fd296682488687a6035b5fc97c269b72d7de128034389bd03041b40309c0","reverse-record-cell-type":"0x000f3e1a89d85d268ed6d36578d474ecf91d8809f4f696dd2e5b97fe67b84a2e"}}}
2022-01-21 13:12:55.574569004 INFO cmd/main.go:66 ▶ [main] db ok
2022-01-21 13:12:55.575863586 INFO cmd/main.go:79 ▶ [main] ckb node ok
2022-01-21 13:12:55.576817904 ERROR core/contract.go:87 ▶ [das-core] GetCells err: config-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
2022-01-21 13:12:55.577170729 ERROR core/contract.go:87 ▶ [das-core] GetCells err: account-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
2022-01-21 13:12:55.577488694 ERROR core/contract.go:87 ▶ [das-core] GetCells err: balance-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
2022-01-21 13:12:55.577804497 ERROR core/contract.go:87 ▶ [das-core] GetCells err: das-lock Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
2022-01-21 13:12:55.578160582 ERROR core/contract.go:87 ▶ [das-core] GetCells err: reverse-record-cell-type Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
2022-01-21 13:12:55.580420991 FATAL cmd/main.go:43 ▶ [main] InitDasConfigCell err: GetCells err: Post "http://127.0.0.1:8116": dial tcp 127.0.0.1:8116: connect: connection refused
2023-11-23 11:21:14.076355396 ERROR block_parser/block_parser.go:257 ▶ [block_parser] contract[account-cell-type] version diff, chain[1.10.0], service[1.9.0].
2023-11-23 11:21:14.076364528 ERROR block_parser/block_parser.go:258 ▶ [block_parser] Please update the service. [https://github.com/dotbitHQ/das-account-indexer]
2023-11-23 11:21:14.076517186 ERROR block_parser/block_parser.go:87 ▶ [block_parser] parserSubMode err: parsingBlockData err: the major version of the contract is different 11518357
release 还没有 1.10.0 的版本,1.10.0 的版本什么时候发布?
1、你们似乎没有把最新的版本上传到 hub.docker.com上面
2、下载二进制文件部署,遇到如下错误
2022-07-15 15:54:37.38734819 INFO cmd/main.go:67 ▶ [main] db ok
2022-07-15 15:54:37.38790774 INFO cmd/main.go:80 ▶ [main] ckb node ok
panic: runtime error: slice bounds out of range [:4] with capacity 0
goroutine 1 [running]:
github.com/dotbitHQ/das-lib/witness.ConfigCellDataBuilderRefByTypeArgs(0xc00018a000, 0xc0005180c0, 0xe34d96, 0xa, 0x0, 0x0)
/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/witness/config_cell.go:137 +0x2b05
github.com/dotbitHQ/das-lib/witness.ConfigCellDataBuilderByTypeArgs(0xc0005180c0, 0xe34d96, 0xa, 0x0, 0x0, 0x0)
/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/witness/config_cell.go:219 +0x65
github.com/dotbitHQ/das-lib/core.(*DasCore).ConfigCellDataBuilderByTypeArgs(0xc00009a000, 0xe34d96, 0xa, 0xd217c0, 0xc00044b080, 0x0)
/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/core/config_cell.go:157 +0x1a7
github.com/dotbitHQ/das-lib/core.(*DasCore).InitDasConfigCell(0xc00009a000, 0xc0004de720, 0x1634c50)
/mnt/server/go/gopath/pkg/mod/github.com/dotbit!h!q/[email protected]/core/config_cell.go:65 +0xf0c
main.runServer(0xc00042eec0, 0x0, 0x2)
/mnt/server/das-account-indexer/das-account-indexer/cmd/main.go:95 +0x57f
github.com/urfave/cli/v2.(*App).RunContext(0xc000126b60, 0xf70790, 0xc00011c000, 0xc00013c000, 0x2, 0x2, 0x0, 0x0)
/mnt/server/go/gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:322 +0x6fe
github.com/urfave/cli/v2.(*App).Run(...)
/mnt/server/go/gopath/pkg/mod/github.com/urfave/cli/[email protected]/app.go:224
main.main()
/mnt/server/das-account-indexer/das-account-indexer/cmd/main.go:43 +0x1e5
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.