-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live BTC UTXO service #638
Comments
设计草案数据库使用 KV 存储每个 BTC 区块被消耗的 utxo,其中 流程
初始化鉴于目前 RGB++ Cell 量较少,一次性查询每个 Cell 对应的 utxo 是否被消费 |
不需要存储 vin, 以及校验 OP_RETURN, commitment. 流程可以简化如下
这个服务是探测 BTC UTXO 是否消费, 无需订阅 CKB 节点 |
我之前这么考虑,每一次都全量匹配的话,未来 CKB 的 RGB++ Lock 数量越来越多,消耗也会越来越大 |
Verify output cell utxo binding status# api
POST /api/v2/bitcoin_vouts/verify
# params
{
"outpoint": {
"tx_hash": xxx,
"index": xxx,
},
"consumed_by": {
"txid": xxx,
"vin": {
"txid": xxx,
"index": xxx
}
}
}
outpoint: 用于定位需要校验的 output cell
consumed_by: 消费 utxo 的 btc txid 和 vout 对应的 index |
I think it is much better to rename the |
This issue is used to track the service of live BTC RGB++ UTXO which is also a key indicator of this issue. Meanwhile, this indicator will serve for other CKB team.
The text was updated successfully, but these errors were encountered: