我正试图寄出一笔交易。
eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(5, "ether")})
eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(5, "ether")})信息08-25-21:14:21提交的交易 fullhash=0xe1b58ddcb6d8c3f3a8308e0eb275f10c0c3b7bd8807cd24ff6a315a3917ab2a5 recipient=0x939f34bc9253a62927871c889bcf62f398d264a6信息08-25 x 21:14:29提交的交易 fullhash=0x33ca6bb00a70de13bd8b1fdec5d0a7995ad09a90e416ac8ab686fc650a324331 recipient=0x939f34bc9253a62927871c889bcf62f398d264a6 INFO 08-25 x 21:14:57更新的挖掘线程threads=1 INFO 08-25 threads=1 21:57交易池价格阈值更新price=18000000000信息08-25 x 21:57开始采矿操作信息08-25 x 21:57提交新的采矿工作 number=1 txs=2 uncles=0 elapsed=73.574ms
但当我跑
eth.pendingTransactions我能够看到上面发送的交易列表,所以我的问题是什么时候会挖掘这些交易?
P.S.-我正在本地机器上运行它(私有区块链)
(预先谢谢:)
发布于 2018-10-24 14:55:49
如果使用私有区块链,则可以使用控制台运行miner.start()函数。在此之后,将需要5-6分钟,矿工将准备好选择您的交易和自动coinbase帐户余额将增加。
有一段时间,如果你发送的天然气和汽油价格非常少,你的交易与你的交易,然后可能是交易陷入僵局。所以请在你的交易中发送足够的汽油。它会被执行的。
你也可以在你的命令中发送汽油和汽油价格如下--
eth.sendTransaction({from: eth.coinbase, to: "0x154230ed91d1e711e56b9c0f88b5ba5fd2bghjgf", value: web3.toWei(5, "ether"),gas:21000,gasPrice:web3.toWei(45,"wei")})希望这能帮上忙
https://stackoverflow.com/questions/45885444
复制相似问题