Solidity创建以太坊智能合约(一)

$ ./build/bin/geth --datadir=~/Library/Ethereum/privatechain/chaindata/ init ~/Library/Ethereum/privatechain/genesis.json

INFO [03-11|18:45:18] Maximum peer count                       ETH=25 LES=0 total=25
INFO [03-11|18:45:18] Allocated cache and file handles         database=/Users/zhenbing/Library/Ethereum/privatechain/chaindata/geth/chaindata cache=16 handles=16
INFO [03-11|18:45:18] Writing custom genesis block
INFO [03-11|18:45:18] Persisted trie from memory database      nodes=0 size=0.00B time=7.283µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [03-11|18:45:18] Successfully wrote genesis state         database=chaindata                                                              hash=2fb1a7…f0181a
INFO [03-11|18:45:18] Allocated cache and file handles         database=/Users/zhenbing/Library/Ethereum/privatechain/chaindata/geth/lightchaindata cache=16 handles=16
INFO [03-11|18:45:18] Writing custom genesis block
INFO [03-11|18:45:18] Persisted trie from memory database      nodes=0 size=0.00B time=1.467µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [03-11|18:45:18] Successfully wrote genesis state         database=lightchaindata                                                              hash=2fb1a7…f0181a


$ ./build/bin/geth --datadir=~/Library/Ethereum/privatechain/chaindata/

$ open -a /Applications/Mist.app --args --rpcport "8001" --rpc  <node path>/geth.ipc$ open -a /Applications/Mist.app --args --rpcport "8001" --rpc ~/Library/Ethereum/privatechain/chaindata/geth.ipc

启动console$ ./build/bin/geth attach ipc://Users/zhenbing/Library/Ethereum/privatechain/chaindata/geth.ipc

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值