Geth
Version: 1.6.1-stable
Git Commit: 021c3c281629baf2eae967dc2f0a7532ddfdc1fb
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.8.1
Operating System: windows
GOPATH=
GOROOT=c:\go以上是我的第一次安装,我需要用某些地址的默认余额初始化testnet --我怎么做呢?我尝试使用genesis.json from https://github.com/ethereum/go-ethereum/wiki/Private-network并初始化私有块链,创建一个帐户,用它替换自定义成因文件中的地址,然后重新运行init,但是它失败了。
Fatal: Failed to write genesis block: database already contains an incompatible genesis block (have 15ecff6ddb9d4db4, new 834a88447f2091cc)我怎样才能给地址加上一些余额呢?
发布于 2017-05-17 14:46:08
您可以运行以下命令:
miner.start()在控制台里。这将开始挖掘并将以太添加到默认帐户中。
发布于 2017-05-18 18:53:51
看起来您正在试图在您的计算机上设置geth私有网络节点,我今天在另一个问题中发布了这些步骤。这会帮你的,请看一下。
在执行这些步骤之前,删除现有的datadir和成因文件。
注意- datadir文件夹有keystore,必须删除它才能从头开始。
一旦您设置了私有网络,那么您可以使用eth.SendTransaction({from: accounthash_sender, to: accounthash_reciever, value: the_amount})从默认帐户向其他帐户发送一些余额。您的默认帐户将从成因块实例化中获得平衡。
https://ethereum.stackexchange.com/questions/16253
复制相似问题