Replies: 5 comments
-
|
或者有没有其他形式的新高度通知,类似btc的zmq等。 |
Beta Was this translation helpful? Give feedback.
-
|
首先需要在 ckb.toml 配置 然后通过 rpc 订阅,具体文档: |
Beta Was this translation helpful? Give feedback.
-
还有一种方式是 ckb .toml 配置 notifier 里面的 new_block_notify_script: |
Beta Was this translation helpful? Give feedback.
-
最理想的情况是可以通过subscribe订阅最新的get_block_template,请问目前有这个打算吗? |
Beta Was this translation helpful? Give feedback.
-
|
你是在做挖矿的相关功能?你可以订阅 new_tip_header,一旦有新的 header 通知,就再去调用一下 get_block_template 或者通过 new_block_notify_script 这个脚本去回调你自己的服务,让它去刷新 get_block_template 这样都能让 miner 第一时间工作在最新的 block template 上 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如题
Beta Was this translation helpful? Give feedback.
All reactions