我成功地打开了一个完整的节点(我成功地从eth_getTransactionByHash获得数据)。我想得到所有待定的交易,但我得到:
> txpool.content
{
pending: {},
queued: {}
}
> txpool.status
{
pending: 0,
queued: 0
}我试图尽可能地同步服务器,但是我总是得到0的结果。我在运行服务器时:
geth console --http --http.addr <myip> --http.port "8584" --syncmode fast --cache 8096 --cache.database 100 --cache.trie 100 --cache.gc 100 --cache.snapshot 100 --cache.trie.rejournal 0h0m10s --txpool.rejournal 0h0m10s --txpool.globalslots 50000如何获得挂起的事务?
发布于 2021-07-06 09:09:13
问题可能是您没有启用txpool,您可以使用以下标志来实现:
-http.api personal,eth,net,web3,txpool
https://ethereum.stackexchange.com/questions/101636
复制相似问题