- 博客(3)
- 收藏
- 关注
原创 mongo和mongoose基本语法
mongo:1. distinctdb.getCollection('tokentransfer').distinct('from',{"$and": [{"blockNumber": {$gte: 370000}}, {"blockNumber": {$lte: 373085}}]}).length2. update:(更新满足条件的所有,multi设置true)db.getCol...
2018-07-31 17:49:33 756
原创 erc20 智能合约各方法对应的签名编码(transfer / 0xa9059cbb)
erc20智能合约常见方法对应的签名编码:常见例如:transfer(address,uint256)编码为:web3.sha3("transfer(address,uint256)").substring(0,10) -> "0xa9059cbb"balanceOf(address)编码为:web3.sha3("balanceOf(address)").substring...
2018-07-17 23:53:58 7875 1
原创 linux和mac修改max_user_processes和open_file最大值
1. 进入/etc/security/limits.conf,编辑:* soft nproc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535nofile对应open_files,nproc对应max_user_processes2. 进入/etc/security/limits.d/90-nproc.conf(没有conf...
2018-07-10 10:42:10 3801
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人