发现今天更新了1.8.0RC版本,readme中说mongo插件已经废弃,马上将被删除,
Mongo DB plugin deprecated
The Mongo DB plugin has been deprecated and will be removed from the EOSIO source in a future release. Users are recommended to switch to non-deprecated history solutions such as the ones built off of the state_history_plugin.
之前一直没时间研究state_history_plugin EOSIO推荐的方案,最近抽空试一试
优点是分离了入库的逻辑, 不用replay就能自由的同步的其他数据库
源代码地址
插件源码地址:https://github.com/EOSIO/eos/tree/master/plugins/state_history_plugin
应用API:https://github.com/acoutts/EOS-state-history-API
安装依赖
安装postgresql
sudo apt-get install postgresql
待续。。
参考
https://cloud.tencent.com/developer/news/368043
https://www.jianshu.com/p/50bf6429a1ce
https://eosio.stackexchange.com/questions/3832/difference-between-history-plugin-and-state-history-plugin
https://developers.eos.io/eosio-nodeos/docs/monitoring-with-state-history
https://developers.eos.io/eosio-nodeos/docs/monitoring-with-3rd-party
https://eosio.github.io/history-tools/
https://github.com/tmuskal/jsclient-eosio-state-history-plugin
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/600.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!