³µÍס§Ethereum ¤Î¥í¡¼¥«¥ë´Ä¶ºîÀ®ÊýË¡¡¡windows ÈÇ
ʬÎࡧEthereum
´Ä¶¡§windows7 / Geth v1.5.9(64bit)
Ethereum¤Î¥¹¥Þ¡¼¥È¥³¥ó¥È¥é¥¯¥È¤ò¤ª»î¤·¤·¤¿¤¤¡£
¥Æ¥¹¥È¥Í¥Ã¥È¥ï¡¼¥¯¤â¤¢¤ë¤¬¡¢¤ªµ¤·Ú¤Ë»î¤¹¤¿¤á¤Ë¥í¡¼¥«¥ë¤Ë´Ä¶¤òºî¤ë
Geth¤Ï¡¢
Go¸À¸ì¤ÇºîÀ®¤µ¤ì¤¿¡¢¥¯¥é¥¤¥¢¥ó¥È(?)¥½¥Õ¥È¡£
¢£¥¤¥ó¥¹¥È¡¼¥ë
¤Þ¤º¤Ï¡¢
¥À¥¦¥ó¥í¡¼¥É¥Ú¡¼¥¸¤«¤é¡¢ºÇ¿·ÈǤò¥À¥¦¥ó¥í¡¼¥É¡£
¢¨Windows(64bit)ÈǤκǿ·¡Ögeth-windows-amd64-1.5.9-a07539fb.exe¡×¤òÁª¤ó¤ÇŬÅö¤Ê¾ì½ê¤Ë¥À¥¦¥ó¥í¡¼¥É¡£
¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥â¥¸¥å¡¼¥ë¤ò¼Â¹Ô¡£
¡½ô¡¹¤ÎÃí°Õ»ö¹à¤ä¤é¡ÖI Agree¡×¥¯¥ê¥Ã¥¯
¢¥¤¥ó¥¹¥È¡¼¥ëÆâÍƤγÎǧ¡£¥Ç¥Õ¥©¥ë¥È¤Ï"Geth" ¤Ë¤Î¤ß¥Á¥§¥Ã¥¯¤¬¤Ä¤¤¤Æ¤¤¤ë¡£
¡¡Ç°¤Î¤¿¤á¡ÉDevelopment tools¡É ¤Ë¤â¥Á¥§¥Ã¥¯¤·¤Æ¡ÖNext¡×¥¯¥ê¥Ã¥¯
£¥¤¥ó¥¹¥È¡¼¥ëÀè¤ÎÀßÄê¡£¥Ç¥Õ¥©¥ë¥È¤Î¡¡¡ÖC:\Program Files\Geth¡×¤Î¤Þ¤Þ¤Ë¤¹¤ë
¡ÖInstall¡×¥¯¥ê¥Ã¥¯
¤¥¤¥ó¥¹¥È¡¼¥ë¤Ï¿Ê¤ß¡£ºÇ¸å¤Ë¥Ñ¥¹¤¬¹¹¿·¤Ç¤¤Ê¤¤¤Èɽ¼¨¡£µ¤¤Ë¤»¤º¡¢¡ÖOK¡×
¥¤¥ó¥¹¥È¡¼¥ë¤Ï´°Î»¡£
¢£½é´üÀßÄê
¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤òµ¯Æ°¤·¡¢
¡äGeth.exe
¼ºÇÔ¤¹¤ë¡£¡¡¥¤¥ó¥¹¥È¡¼¥ë¤ÎºÇ¸å¤Ë¥Ñ¥¹¤Î¹¹¿·¤Ë¼ºÇÔ¤Èɽ¼¨¤¬¤¢¤Ã¤¿¤â¤Î¤Î±Æ¶Á¤È»×¤ï¤ì¤ë¡£
Geth ¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¤Ë°ÜÆ°¤·
>Geth.exe
¤ò¼Â¹Ô¡£ÆäËÈ¿±þ¤Ï¤Ê¤¤¡£¢¨¤ª¤½¤é¤¯½é´ü²½¤¬¤µ¤ì¤Æ¤¤¤Ê¤¤°Ù¤È»×¤ï¤ì¤ë¡£
¥×¥é¥¤¥Ù¡¼¥È¥Í¥Ã¥È¤Î¡ØGenesis¡Ù¥Ö¥í¥Ã¥¯¤òºîÀ®¤¹¤ë¤¿¤á¤Ë¡¢¡ØGenesis¡Ù¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¡£
¡¡¢¨Genesis ¥Ö¥í¥Ã¥¯¤È¤Ï¡¢Ethereum¤ÎºÇ½é¤Î¥Ö¥í¥Ã¥¯
ŬÅö¤Ê¾ì½ê¤ËEthereum¥×¥é¥¤¥Ù¡¼¥È¥Í¥Ã¥È¥ï¡¼¥¯ÍѤΥե©¥ë¥À¤òºîÀ®¤¹¤ë¡£
¡¡C:\Ethereum\eth_private_net
¤òºîÀ®¡£ÆüËܸì¤Î¥Õ¥©¥ë¥À¤ÏÈò¤±¤¿¡£
ºîÀ®¤·¤¿¥Õ¥©¥ë¥À¤Ë¡¢¡ÖmyGenesis.json¡×¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¢ÆâÍƤòÊÔ½¸¡£
{
"nonce": "0x0000000000000042",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
"gasLimit": "0x8000000",
"difficulty": "0x4000",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {}
}
¾åµ¤ÎÆâÍƤÇÊݸ¤·¤¿¤é¡¢½é´ü²½¤Îgeth¥³¥Þ¥ó¥É¤ò¼Â¹Ô
¡ägeth --datadir C:\Ethereum\eth_private_net init C:\Ethereum\eth_private_net\myGenesis.json
I0221 11:25:17.332969 node/config.go:445] Failed to start Ledger hub, disabling: libusb: not found [code -5]
I0221 11:25:17.376973 cmd/utils/flags.go:613] WARNING: No etherbase set and no accounts found as default
I0221 11:25:17.377974 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to C:\Ethereum\eth_private_net\geth\chaindata
I0221 11:25:17.385974 ethdb/database.go:176] closed db:C:\Ethereum\eth_private_net\geth\chaindata
I0221 11:25:17.385974 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to C:\Ethereum\eth_private_net\geth\chaindata
I0221 11:25:17.417978 cmd/geth/chaincmd.go:132] successfully wrote genesis block and/or chain rule set: 3b3326d56983eec74bcd3c5757801dcd42e0bf2f169fc0c5d695e28e20f217d7
´°Î»¸å¡¢¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê¡ÖC:\Ethereum\eth_private_net¡×°Ê²¼¤Î¤è¤¦¤Ê¹½À®¤¬½ÐÍè¾å¤¬¤Ã¤¿
\gets\chaindata\000006.log
\CURRENT
\LOCK
\LOG
\MANIFEST-000007
\keystore\¶õ
\myGenesis.json
¢£Gethµ¯Æ°
¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ç°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô
geth --networkid "10" --nodiscover --datadir "C:\Ethereum\eth_private_net" console 2>> C:\Ethereum\eth_private_net\geth_err.log
Welcome to the Geth JavaScript console!
instance: Geth/v1.5.9-stable/windows/go1.7.4
modules: admin1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
Àµ¾ï¤Ë²ÔƯ¤·¤Æ¤¤¤ë¤«¡¢
eth.getBlock(0)
{
difficulty: 16384,
extraData: "0x00",
gasLimit: 134217728,
gasUsed: 0,
hash: "0x3b3326d56983eec74bcd3c5757801dcd42e0bf2f169fc0c5d695e28e20f217d7",
logsBloom: "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0
0
000000000000000000000000000000000000000000000000",
miner: "0x3333333333333333333333333333333333333333",
mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
nonce: "0x0000000000000042",
number: 0,
parentHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
receiptsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
size: 507,
stateRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
timestamp: 0,
totalDifficulty: 16384,
transactions: [],
transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
uncles: []
}
ÌäÂê¤Ê¤¯¡¢²ÔƯ¤·¤Æ¤¤¤ëÌÏÍÍ¡£