基于区块链的毕业设计Ethereum Reorg Monitor – 以太坊Reorg监视器

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Ethereum Reorg Monitor – 以太坊Reorg监视器 是一篇很好的国外资料

Ethereum Reorg Monitor

Detect Ethereum reorgs with the depth, and print replaced and new blocks.

  • Can save reorg summaries and block info in a Postgres database
  • Can query a mev-geth instance for block value

Getting started

  • Clone this repository
  • Create a .env file based on .env.example
  • Start the monitor
$ go run cmd/monitor/main.go -h   -db         save reorgs to database   -debug         print debug information   -eth string         Geth node URI   -mevgeth string         mev-geth node URI   -sim         simulate blocks in mev-geth

The code needs a subscription to a geth node, either a local IPC connection or a ws:// URI. You can set the geth node with -eth <geth_node_url> or use an ETH_NODE environment variable.

Notes:

  • You can find more infos about the children of uncles via AlchemyApi: https://composer.alchemyapi.io/

Helpers

# Show AddBlock from logs grep -v "AddBlock" output/monitor-new/run13.txt   # Get depth: 2 and higher reorgs grep "Reorg " output/monitor-new/run13.txt | grep -v "depth: 1"

Mermaid:

  • https://mermaid-js.github.io/mermaid/#/stateDiagram
  • https://mermaid-js.github.io/mermaid-live-editor

See also:

  • https://etherscan.io/blocks_forked

以太坊ethReorg监视器

用深度检测以太坊ethreorgs,并打印替换块和新块

  • 克隆此存储库
  • 基于.env.example

入门

  • 启动监视器
  • 您可以通过AlchemyApi找到有关叔叔子女的更多信息:https://composer.alchemyapi.io/
  • Start the monitor
$ go run cmd/monitor/main.go -h   -db         save reorgs to database   -debug         print debug information   -eth string         Geth node URI   -mevgeth string         mev-geth node URI   -sim         simulate blocks in mev-geth

代码需要订阅geth节点,可以是本地IPC连接,也可以是ws://URI。您可以使用-eth&lt;设置geth节点;获取节点url&gt;或者使用ETH_节点环境变量

注意事项:

  • https://mermaid-js.github.io/mermaid/#/stateDiagram

Helpers

# Show AddBlock from logs grep -v "AddBlock" output/monitor-new/run13.txt   # Get depth: 2 and higher reorgs grep "Reorg " output/monitor-new/run13.txt | grep -v "depth: 1"

美人鱼:

  • https://mermaid-js.github.io/mermaid/#/stateDiagram
  • https://mermaid-js.github.io/mermaid-live-editor

另请参见:

  • https://etherscan.io/blocks_forked

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/24026.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Ethereum Reorg Monitor – 以太坊Reorg监视器

提供最优质的资源集合

立即查看 了解详情