您当前的位置: 首页 > 
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Chainmaker 查询当前区块高度

软件工程小施同学 发布时间:2021-07-29 10:25:12 ,浏览量:0

进入log目录,查看日志文件 筛选 put block即可

cat system.log|grep "ERROR\|put block"

其中一行解释如下:

2021-04-22 13:50:56.647 [INFO] [Storage] @chain1 store/blockstore_impl.go:241 chain[chain1]: put block[12] (txs:1 bytes:8078), time used (mashal:0, log:2, commit:5, total:7)

时间 [日志级别] [模块] @链名称 文件名.go:行数 链chain[链名称]:put block[区块高度](txs:交易个数 bytes:区块大小), 使用时间毫秒(mashal:0, log:2, commit:5, total:7)

日志位置自己搜索一下

find system.log .

可能在

./build/release/chainmaker-V1.0.0-wx-org.chainmaker.org/log/system.log

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.0405s