[geth]以太坊私链搭建

/ 2,942评论 / 13614阅读 / 4点赞

环境


注:


私链搭建

{
   "config":{
      "chainId":7,
      "homesteadBlock":0,
      "eip150Block":0,
      "eip155Block":0,
      "eip158Block":0,
      "byzantiumBlock":0,
      "constantinopleBlock":0,
      "petersburgBlock":0,
      "istanbulBlock":0,
       "ethhash":{}
   },
   "alloc":{},
   "coinbase":"0x0000000000000000000000000000000000000000",
   "difficulty":"0x2",
   "extraData":"",
   "gasLimit":"0xffffffff",
   "nonce":"0x0000000000000042",
"mixhash":"0x0000000000000000000000000000000000000000000000000000000000000000", "parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000",
   "timestamp":"0x00"
}
geth --datadir ./data --networkid 7  --http --http.addr 0.0.0.0 --http.vhosts "*" --http.api "admin,debug,web3,eth,txpool,personal,ethash,miner,net" --http.corsdomain "*" --snapshot --mine --miner.threads 1 --allow-insecure-unlock  console 2> 1.log
INFO [01-15|10:34:55.186] Maximum peer count                       ETH=50 LES=0 total=50
INFO [01-15|10:34:55.186] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [01-15|10:34:55.188] Sanitizing cache to Go's GC limits       provided=1024 updated=611
INFO [01-15|10:34:55.188] Set global gas cap                       cap=50,000,000
INFO [01-15|10:34:55.188] Allocated cache and file handles         database=/home/ubuntu/eth/rungeth/data/geth/chaindata cache=16.00MiB handles=16
INFO [01-15|10:34:55.213] Writing custom genesis block 
INFO [01-15|10:34:55.217] Persisted trie from memory database      nodes=1 size=149.00B time="45.27µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [01-15|10:34:55.218] Successfully wrote genesis state         database=chaindata hash=6ef04e..bd9488
INFO [01-15|10:34:55.218] Allocated cache and file handles         database=/home/ubuntu/eth/rungeth/data/geth/lightchaindata cache=16.00MiB handles=16
INFO [01-15|10:34:55.231] Writing custom genesis block 
INFO [01-15|10:34:55.232] Persisted trie from memory database      nodes=1 size=149.00B time="40.785µs" gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [01-15|10:34:55.232] Successfully wrote genesis state         database=lightchaindata hash=6ef04e..bd9488

使用remix远程连接私链并部署合约


操作命令


常见问题

      "byzantiumBlock":0,
      "constantinopleBlock":0,
  1. PhilipBup说道:

    buy medication online no prescription pharmacies without prescriptions meds online without prescription

  2. PhilipBup说道:

    canada pharmacy online no prescription buy drugs online no prescription quality prescription drugs canada

  3. MatthewDoolo说道:

    best ed meds online: erectile dysfunction drugs online – buy ed pills online

  4. Armandosed说道:

    https://edpill.top/# buy ed medication online

  5. AustinWhoto说道:

    erectile dysfunction drugs online: cheap ed meds online – erectile dysfunction medications online

  6. MatthewDoolo说道:

    ed meds online: online ed medicine – how to get ed meds online

  7. HarveyBeemi说道:

    http://edpill.top/# ed meds on line

  8. Armandosed说道:

    https://medicationnoprescription.pro/# buy prescription online

  9. MatthewDoolo说道:

    where to get ed pills: get ed meds today – how to get ed pills

  10. PhilipBup说道:

    canadian pharmacy non prescription online pharmacy with prescription pharmacy no prescription

  11. HarveyBox说道:

    http://onlinepharmacyworld.shop/# canadian pharmacy discount coupon

  12. MatthewDoolo说道:

    pills for erectile dysfunction online: erectile dysfunction pills online – ed treatment online

  13. Armandosed说道:

    http://edpill.top/# how to get ed meds online

  14. HarveyBox说道:

    http://edpill.top/# ed pills for sale

  15. MatthewDoolo说道:

    canadian online pharmacy no prescription: best no prescription pharmacy – canadian pharmacy discount coupon

  16. Armandosed说道:

    http://edpill.top/# ed treatments online

  17. PhilipBup说道:

    online drugstore no prescription prescription drugs online canada best online pharmacy no prescription

  18. HarveyBeemi说道:

    http://onlinepharmacyworld.shop/# no prescription needed canadian pharmacy

  19. PhilipBup说道:

    no prescription needed pharmacy best no prescription pharmacy canadian pharmacy without prescription

  20. MatthewDoolo说道:

    low cost ed medication: pills for erectile dysfunction online – best online ed treatment

  21. AustinWhoto说道:

    best online pharmacy no prescription: buy medication online no prescription – indian pharmacy no prescription

  22. Armandosed说道:

    https://onlinepharmacyworld.shop/# canadian online pharmacy no prescription

  23. MatthewDoolo说道:

    pharmacy coupons: online pharmacy without prescription – canadian pharmacy without prescription

  24. AustinWhoto说道:

    ed meds on line: generic ed meds online – best online ed meds

回复 Bam 取消回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注