当前位置:网站首页>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"
}
边栏推荐
- 小程序容器到底是什么
- Cs5213 HDMI to VGA with audio signal output scheme
- 图像分割-数据标注
- High imitation Book flag novel flutter edition, learn it
- Task queue of laravel
- Bitmap load memory analysis
- Cause analysis and Countermeasures for FANUC robot srvo-050 collision detection alarm (available for personal test)
- Kotlin set list, set, map operation summary
- 对不起,你的USB走线可能搞错了!
- List中subList的add造成的死循环
猜你喜欢

嵌入式接口复习资料

不同网络结构的特征也能进行对比学习?蚂蚁&美团&南大&阿里提出跨架构自监督视频表示学习方法CACL,性能SOTA!...

How to achieve the turning effect of wechat video recording?

CTF go topic recurrence

Golang 类型断言

Task queue of laravel

HAOGE's blog Road

"Shanda Diwei Cup" the 12th Shandong ICPC undergraduate program design competition

Million message IM system technical points sharing

Kotlin 协程 异步 异步流
随机推荐
MySQL索引底层为什么用B+树?看完这篇文章,轻松应对面试。
高仿书旗小说 Flutter 版,学起来
1004. 最大连续1的个数 III ●●
微信视频号如何用 PC 电脑做直播?
STM32-------外部中断
7、STM32——LCD
Activity的onSaveInstanceState回调时机
Onsaveinstancestate callback opportunity of activity
【Try to Hack】masscan
嵌入式接口复习资料
Big guy on security privacy computing escort data security needs to pay attention to science and technology ethics at the same time
Task queue of laravel
Short video enters the hinterland of online music
How to achieve the turning effect of wechat video recording?
Several cases of index invalidation caused by MySQL
开发协同,高效管理 | 社区征文
三款很酷很骚气的底部导航
Autofac详解
Simple understanding of responsive programming
接私活必备的 6 个开源项目