0%

POS POW的出块属性是无过程性的,不论试多少次,它都不会影响挖出下个块的概率。下一个块的出块者,还是需要经历大量的计算。影响当前这个区块的哈希

Optimizer in solidity 合约设计及实现变迁 v1.x版本实现,每次创建同样的合约 v2.x版本实现, 逻辑单独抽象成library,每次创建合约仅包含storage

this变量 library MathLib { function multiply(uint a, uint b) public view returns (uint, address) { return (a * b, address(this)); } } contract Example { using MathLib for uint; address public owner = address(this); address public retAddr; function multiplyExample(uint _a, uint _b) public view returns (uint, address) { uint a; (a, retAddr) = _a.multiply(_b); return (a, retAddr); } } resource https://jeancvllr.medium.com/solidity-tutorial-all-about-libraries-762e5a3692f9

Protocol Permit2 Signature based transfer use ordered, non-monotonic nonces so that signed permits do not need to be transacted in any particular order. PermitTransferFrom结构体中amount和SignatureTransferD

Resource go mod使用: https://www.jianshu.com/p/760c97ff644c https://liujiacai.net/blog/2019/10/24/go-modules/?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io 发展历史 GOPATH go env -w GO111MODULE="off" GOROOT=/usr/local/go GOPATH=/home/dev/project/go /* 按如下路径+导包路径寻找所需要的包 /usr/local/go/src/ */ go build main.go go编译项目时,只会在GOROOT和GOPATH下找

设计原则SOLID Single Responsibility Principle 表明一个类只具备一个职责 Open Close Principle 一个类应该对扩展开发,修改关闭 //设计一个关于api请求数相关告警类 public class Alert { private AlertRule rule; private Notification

Resource prometheus docs: https://prometheus.io/docs/introduction/overview/ pushgateway数据上报: https://www.cnblogs.com/xiaobaozi-95/p/10684524.html

memory allocate in golang Resource https://tonybai.com/2020/03/10/visualizing-memory-management-in-golang/ Golang什么时候会触发GC: https://www.jianshu.com/p/96a52a8127d9

超时处理 我们要探讨的问题是:如果我们遇到一个非常非常慢的API调用最终超时,并且我们假设(a)它成功或(b)失败,我们就会遇到错误。超时(或

库存服务设计 需求收集 方案评审 浏览器优化, 限流器使用,监控告警提前预报 设计难点在于库存更新和超时处理 库存更新, mysql+redis: 先更新,再删除缓存 超时处理,m