当前位置:网站首页>log Network Execution Time
log Network Execution Time
2022-06-23 22:15:00 【blockchain_yhj】
关闭旧网络
ps -ef | grep geth
kill -9
/opt/gopath/src/github.com/go-ethereum/build/bin/geth removedb
rm -rf /root/Ethereumdata
重新启动:
/opt/gopath/src/github.com/go-ethereum/build/bin/geth --datadir "/root/Ethereumdata" init /opt/gopath/src/github.com/genesis.json
nohup /opt/gopath/src/github.com/go-ethereum/build/bin/geth --identity "myethereum" --http --http.addr "0.0.0.0" --http.corsdomain "*" --http.api "eth,net,web3,personal,admin,shh,txpool,debug,miner" --port 30303 --http.port "7545" --nodiscover --maxpeers '5' --networkid '123456' --datadir '/root/Ethereumdata' --txpool.accountslots '16' --txpool.globalslots '5120' --txpool.accountqueue '64' --txpool.globalqueue '1024' --miner.gaslimit '30000000' --miner.gasprice '10' --miner.recommit '13s' --log.json --trace --vmdebug --allow-insecure-unlock >> geth.log 2>&1 &
/opt/gopath/src/github.com/go-ethereum/build/bin/geth attach geth.ipc
personal.newAccount('yhj123')
personal.unlockAccount(eth.accounts[0],'yhj123',0)
miner.setEtherbase(eth.accounts[0])
设置钱包账户为miner账户
miner.setEtherbase('0xA98D40001cf6f3859dE29fbFDFE13eBa2C940601')
balanse=web3.fromWei(eth.getBalance(eth.accounts[0]),'ether')
miner.start()
miner.stop()
genesis 配置文件
```handlebars
{
"config": {
"chainId": 10086,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"berlinBlock": 0,
"londonBlock": 0
},
"alloc": {
},
"coinbase": "0x0000000000000000000000000000000000000000",
"difficulty": "0x20000",
"extraData": "",
"gasLimit": "0x1c9c380",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp": "0x00"
}
边栏推荐
- 高仿斗鱼 APP
- Telecommuting: how to become a master of time management| Community essay solicitation
- 开发协同,高效管理 | 社区征文
- Bilibili × Blue bridge cloud course | online programming practice competition is new!
- Install using snap in opencloudos NET 6
- 6 大完整开源项目,一次学个够
- Androidkotlin comprehensive and detailed class usage grammar learning guide
- Million message IM system technical points sharing
- AUTOCAD——总结CAD画圆角的三种方式
- Talking about the knowledge of digital transformation
猜你喜欢

7、STM32——LCD

HDLBits-> Circuits-> Arithmetic Circuitd-> 3-bit binary adder

Bilibili × Blue bridge cloud course | online programming practice competition is new!

AutoCAD -- summarize three methods of drawing rounded corners in CAD

6 大完整开源项目,一次学个够
Androidkotlin comprehensive and detailed class usage grammar learning guide

网站ssl证书

laravel之任务队列

网站如何在Google建立索引

Postman return value Chinese garbled????
随机推荐
思考(八十六):主从实现思路
Preliminary understanding of 3D printing and laser cutting process
企业网站的制作流程是什么?设计和制作一个网站需要多长时间?
腾讯会议号设计的几种猜测
Come on, touch and write a hook
微信录制视频转圈效果如何实现?
How to achieve the turning effect of wechat video recording?
High imitation Book flag novel flutter edition, learn it
To ensure the safety of groups with special difficulties, Guangzhou Civil Affairs made every effort to do a good job in the three prevention work
IDEA 自动生成单元测试,效率倍增!
Is the geTx status management in the flutter really so good to use?
Task queue of laravel
One person even broke up a Netease cloud music Cloud Village
一个人竟然撸了一个网易云音乐云村
ORB_SLAM3环境搭建及demo演示
AutoCAD -- summarize three methods of drawing rounded corners in CAD
Some explanations of Tim timer of embedded interface and STM32 template library function of NVIC
Fabric.js 手动加粗文本iText
What is an applet container
对不起,你的USB走线可能搞错了!