首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >块密封等待事务失败

块密封等待事务失败
EN

Ethereum用户
提问于 2018-03-16 14:21:54
回答 1查看 2.2K关注 0票数 1

在本地机器上运行节点有问题。

我已经通过运行以下命令brew install ethereum从Homebrew安装了Geth

每当我在终端中调用这个命令geth --dev --mine时,我都会得到以下日志:

INFO [03-16|17:40:15] Maximum peer count ETH=25 LES=0 total=25 INFO [03-16|17:40:17] Using developer account address=0x9637858cA3f5B1761DfC5aD5d76539e44B128614 INFO [03-16|17:40:17] Starting peer-to-peer node instance=Geth/v1.8.2-stable/darwin-amd64/go1.10 INFO [03-16|17:40:17] Writing custom genesis block INFO [03-16|17:40:17] Persisted trie from memory database nodes=12 size=2.26kB time=19.413µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B INFO [03-16|17:40:17] Initialised chain configuration config="{ChainID: 1337 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: <nil> Engine: clique}" INFO [03-16|17:40:17] Initialising Ethereum protocol versions="[63 62]" network=1 INFO [03-16|17:40:17] Loaded most recent local header number=0 hash=d529a9…d91f92 td=1 INFO [03-16|17:40:17] Loaded most recent local full block number=0 hash=d529a9…d91f92 td=1 INFO [03-16|17:40:17] Loaded most recent local fast block number=0 hash=d529a9…d91f92 td=1 INFO [03-16|17:40:17] Starting P2P networking INFO [03-16|17:40:17] RLPx listener up self="enode://6601a763fa9cfb8bde516a1e68fc71bc7e6d30bc85400d5de61ef59459cd95289a598e48e5f1d41dba561e209224d51090933f8ff5b9a679895ce7b63023ed70@[::]:60117?discport=0" INFO [03-16|17:40:17] started whisper v.5.0 INFO [03-16|17:40:17] Transaction pool price threshold updated price=18000000000 INFO [03-16|17:40:17] Etherbase automatically configured address=0x9637858cA3f5B1761DfC5aD5d76539e44B128614 INFO [03-16|17:40:17] Starting mining operation INFO [03-16|17:40:17] IPC endpoint opened url=/var/folders/gt/l9r08rns0dxf_zz733dq9dsm0000gn/T/geth.ipc INFO [03-16|17:40:17] Commit new mining work number=1 txs=0 uncles=0 elapsed=68.51µs WARN [03-16|17:40:17] Block sealing failed err="waiting for transactions"

主要错误似乎是这个WARN Block sealing failed err="waiting for transactions"

Geth版本:1.8.2-稳定

EN

回答 1

Ethereum用户

回答已采纳

发布于 2018-03-16 15:15:09

您所看到的警告是因为--dev标志创建了授权链的证据(而不是工作链的证明)。来自CLI文档

代码语言:javascript
复制
DEVELOPER CHAIN OPTIONS:
--dev               Ephemeral proof-of-authority network with a pre-funded developer account, mining enabled

看着clique代码库,您将看到这是一种缩小网络规模的优化:

代码语言:javascript
复制
// errWaitTransactions is returned if an empty block is attempted to be sealed
// on an instant chain (0 second period). It's important to refuse these as the
// block reward is zero, so an empty block just bloats the chain... fast.
errWaitTransactions = errors.New("waiting for transactions")

看起来这个警告不是什么好担心的.

票数 2
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/42955

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档