当前位置:网站首页>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"
}
边栏推荐
- Some explanations of Tim timer of embedded interface and STM32 template library function of NVIC
- 2022年信息安全工程師考試知識點:訪問控制
- 2022 information security engineer examination knowledge point: access control
- 完整开源项目之诗词吧 APP
- 思考(八十六):主从实现思路
- 文言文能编程???
- Flutter中的GetX状态管理用起来真的那么香吗?
- “山大地纬杯”第十二届山东省ICPC大学生程序设计竞赛
- 对不起,你的USB走线可能搞错了!
- Why can't the netherworld fortress machine be remotely connected to the server? What are the ways to solve such problems?
猜你喜欢

PyQt5_QTableWidget分页单选右键菜单控件

高仿斗鱼 APP

完整开源项目之诗词吧 APP

牛客网:接雨水的双指针问题

Several guesses about the design of Tencent conference number

CVPR2019/图像翻译:TransGaGa: Geometry-Aware Unsupervised Image-to-Image Translation几何感知的无监督图像到图像的翻译

C WinForm custom progress bar ProgressBar

IDEA 自动生成单元测试,效率倍增!

The lower left corner of vs QT VTK displays the synchronized minor coordinate axis

Task queue of laravel
随机推荐
Several guesses about the design of Tencent conference number
Which securities dealers recommend? Is online account opening safe?
6. STM32 - serial port data transceiver Foundation
BroadcastReciver 和LocalBroadcastManager区别
Math. Max() method obtains the maximum value in the array and returns Nan problem analysis
Bitmap load memory analysis
Develop synergy and efficiently manage | community essay solicitation
Some explanations of Tim timer of embedded interface and STM32 template library function of NVIC
How can wechat video numbers be broadcast live on a PC?
再见,2020,这碗毒鸡汤,我先干了
Onsaveinstancestate callback opportunity of activity
Androidkotlin comprehensive and detailed class usage grammar learning guide
网站如何在Google建立索引
STM32-------定时器
思考(八十六):主从实现思路
Stm32 - - - - interruption externe
PyQt5_ Qtablewidget paging radio right-click menu control
HAOGE's blog Road
6、STM32——串口数据收发基础
The lower left corner of vs QT VTK displays the synchronized minor coordinate axis