首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >eth.pendingTransactions vs eth.getBlock(“未决”).transactions

eth.pendingTransactions vs eth.getBlock(“未决”).transactions
EN

Ethereum用户
提问于 2016-07-01 10:13:02
回答 1查看 8K关注 0票数 24

eth.pendingTransactionseth.getBlock('pending').transactions有什么区别?

我注意到,有时eth.pendingTransactions有一些eth.getBlock('pending').transactions没有的事务。

EN

回答 1

Ethereum用户

回答已采纳

发布于 2016-07-01 12:43:01

eth.pendingTransactions是本地Geth节点所拥有的事务,这些事务尚未被挖掘到块中。

eth.getBlock('pending')是节点正在挖掘的当前块(或将在其上进行挖掘)。它不是添加到区块链中的区块。eth.getBlock('pending').transactions是包含在这个假设块中的事务。

如果您正在发送事务,您将首先在eth.pendingTransactions中看到它,然后矿工将它包含在块中。

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

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

复制
相关文章

相似问题

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