logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

go mod指定版本

背景golang依赖包有时会因为版本问题,导致接口不匹配解决可以在go.mod中指定版本,例如:replace google.golang.org/grpc => google.golang.org/grpc v1.26.0

docker stats show a wrong value of block I/O when using dd if=/dev/zero in a container

问题:在做对container监控时,查看磁盘的大小情况,发现docker stats的BLOCK I/O与用dd if=/dev/zero命令测试的结果有出入。docker stats解析:一般来说,对于docker的监控,有三种最主要的方式去获取性能指标,分别是:cgroup、docker命令行(docker stats)以及docker的API。对于cgroup方式,就是通过...

linux文件系统出错:Read-only file system

问题root@xx:/opt/gopath/src/github.com/hyperledger/fabric# mkdir -p testttmkdir: cannot create directory ‘testtt’: Read-only file system分析可能是异常关机导致文件系统出现问题。解决1、查看机器的文件系统类型:root@xxx:...

#文件系统#linux
vscode golint 报警太多

vscode golint报警太多解决降低golint检查规范1、在vscode设置go.lint选项添加:["-min_confidence=.8"]如图:

docker volumes 文件映射

背景在做区块链日志模块时,如果容器运行,需要把日志文件映射到宿主机上以方便查看。下面介绍一下我的实现方式。实现通过docker-compose配置文件volumes参数配置文件示例:volumes:- /var/run/:/host/var/run/- ./channel-artifacts:/var/hyperledger/configs

树图区块链相关说明

背景最近在寻求提升区块链交易TPS的方案,注意到目前有采用DAG结构来实现出块并发的方案来实现提高交易TPS。这里发现Conflux项目的树图区块链采用的就是DAG结构,在这里把方案的出发点,解决之道进行相关阐述。相关阐述为何全序?所谓交易全序指的是交易在所有节点上的顺序是确定的、一致的。例如A有10个币,转给B 7个币,转给C 5个币,这两个交易如果顺序不确定则得到的结果也是不确定的,这...

Failed to connect to github.com port 443: Operation timed out

问题在git clone 时出现:Failed to connect to github.com port 443: Operation timed out错误解决主要是在/etc/hosts里把github.com域名与IP绑定。具体配置为:140.82.113.3 githuh.com199.232.69.194 github.global.ssl.fastly.net185.199.108.

#github#git
fabric 1.2运行出错:Unable to decode a Kafka packet

fabric 1.2运行示例e2e时报错:Unable to decode a Kafka packet. Usually, this indicates that the Kafka.Version specified in the orderer configuration is incorrectly set to a version which is newer than the ...

到底了