2

I'm running my own private network - I have 3 pending tx in the pool that are still there 6000 blocks later. I have the miner gas threshold at 0. Any idea why the tx's arent getting mined?

enter image description here

2

I'm assuming these are the first transactions submitted by the account. If so, your nonce should be starting at 0. The image shows that the first pending transactions with a nonce of 1. Those transactions won't be processed until a transaction with nonce 0 is submitted.

  • 1
    No, the account nonce. If you've run transactions through MetaMask for an account and then recreated your private network, MetaMask will still have the transaction count cached. Getting MetaMask to sync back up can be problematic. You can try switching networks, but you may even have to reinstall MetaMask. You can also try just using a new account. – Adam Kipnis Apr 7 '18 at 0:37
  • Ya, I realized how dumb of a question that was and deleted it. Not fast enough I guess. Not sure how the nonce got off though. WIll the miner pick tx with lower gas than the miner gas limit if there are no other tx's in the pool? also is there a way to check your nonce? – Deekor Apr 7 '18 at 0:39
  • I'm not sure I understand your question. Txs for the same account must be processed in order (pretty sure you've got that part). If 2 txs show up with the same nonce, then typically the one with the higher gas price will be mined and the other will fail. – Adam Kipnis Apr 7 '18 at 0:42
  • 1
    use eth.getTransactionCount(address) to get the current nonce. – Adam Kipnis Apr 7 '18 at 0:43
  • In the console you can set a miner gas limit: miner.setGasPrice() im wondering if i only have one miner and there were tx's in the pool that were under gas limit, would the miner ever mine them? – Deekor Apr 7 '18 at 0:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.