liuqinglqlq
liuqinglqlq
新版本geth,出于安全考虑,默认禁止了HTTP通道解锁账户 相关issue:https://github.com/ethereum/go-ethereum/pull/17037 第5章中的“转账与收款” 需要以下面的命令来启动节点,才能使用personal.unlockAccount() geth --datadir ./db/ --http --http.addr=127.0.0.1 --http.port 8545 --http.corsdomain "*" \ --http.api "eth,net,web3,personal,admin,shh,txpool,debug,miner" \ --nodiscover --maxpeers 30 --networkid 198989 --port 30303 \ --mine --miner.threads 1 \ --miner.etherbase...
第5章中的“启动一条以太坊私链” 其中geth命令的多个参数已经过时,得用新的参数名称 --rpc 改为 --http --rpcaddr 改为 --http.addr --rpcport 改为 --http.port --rpccorsdomain 改为 --http.corsdomain --rpcapi 改为 --http.api --minerthreads 改为 --miner.threads --etherbase 改为 --miner.etherbase 修改过后的命令行是这样 geth --datadir ./db/ --http --http.addr=127.0.0.1 --http.port...
现在创世配置和以前不一样了 必须加上 eip150Block 不然初始化时会报错 "Fatal: Failed to write genesis block: unsupported fork ordering: eip150Block not enabled, but eip155Block enabled at 0" 修正后的配置是这样 { "config": { "chainId": 987, "homesteadBlock": 0, "eip150Block":...