区块链
xuperchain 标签描述

1.将所有节点停止 暂时没有停止命令,所以使用ps-ef|grepxchain查找到进程号,然后kill。 ps-ef|grepxchain   2.修改配置 cd/xuper/xuperchain/output vimconf/xchain.yaml 修改为   bcname为要剪枝的区块链 targetBlockid为你要裁剪到的目标区块的block_id,启动之后连续裁剪,直到当前tipBlockId=该指定ID,通过下面的命令查询   3.重启当前节点 在重启前,可以先看一下原来的账本数据有多少 重启当前节点 nohup./xchain&...

  DJsdk34H4Gbu   2023年11月02日   31   0   0 xuperchain区块链

1.统计依据 根据xchain.log中的txCount进行统计,如日志 t=2021-06-21T19:24:51+0800lvl=infomsg="starttoconfirmblock"module=xchainblockid=649a6f7848e7103aa64f0b7c102291d972c7485717ebfd03a4c561d3e669ae54txCount=1    2.使用 bashget_tps_from_log.shxchain.log21:21:2821:21:58     3.统计脚本get_tps_from_log....

  DJsdk34H4Gbu   2023年11月02日   37   0   0 xuperchaind3bash其他ide

配置文件位置: xuperchain/output/data/config/xuper.json &nbsp;按照大小计算,不是按照交易个数,现在是128M 打包交易时会根据区块大小打包 <!-本文包含:- <!--

  DJsdk34H4Gbu   2023年11月02日   50   0   0 xuperchainJSON区块链配置文件

一、命令行xchain-cli方式 ​​7.使用事件订阅功能—xuperchain-doc文档​​ 二、sdk客户端方式 比如xuper-sdk-go,监听区块,然后解析区块,自己判断具体的交易 ​​xuper-sdk-go/event.goatmaster·xuperchain/xuper-sdk-go·GitHub​​ <!-本文包含:- <!--

配置文件位置: xuperchain/output/data/config/xuper.json &nbsp;按照大小计算,不是按照交易个数,现在是128M 打包交易时会根据区块大小打包 <!-本文包含:- <!--

  DJsdk34H4Gbu   2023年11月02日   32   0   0 xuperchainJSON区块链配置文件

./xchain-cli--version 这就是在master上编译的,如果是5.1会显示5.1版本 <!-本文包含:- <!--

  DJsdk34H4Gbu   2023年11月02日   25   0   0 xuperchain区块链其他

一、命令行xchain-cli方式 ​​7.使用事件订阅功能—xuperchain-doc文档​​二、sdk客户端方式 比如xuper-sdk-go,监听区块,然后解析区块,自己判断具体的交易 &nbsp; ​​xuper-sdk-go/event.goatmaster·xuperchain/xuper-sdk-go·GitHub​​ <!-本文包含:- <!--

./xchain-cli--version 这就是在master上编译的,如果是5.1会显示5.1版本 <!-本文包含:- <!--

  DJsdk34H4Gbu   2023年11月02日   77   0   0 xuperchain区块链

一、环境 1.Ubuntu虚拟机4台 name ip role node1 192.168.92.129 bootNode node2 192.168.92.130 node3 192.168.92.131 node4 192.168.92.132 2.安装golang 版本为1.11或更高 因为sudoaptinstallgolang目前安装的版本是1.10,所以需要通过手动安装,若之前已经通过apt安装了golang,则可以参考​​​​。 下载wgethttps://dl.google.com/go/go1.15.3.linux-amd6...

  DJsdk34H4Gbu   2023年11月02日   33   0   0 xuperchaingolanggit区块链