eth geth 因gas问题导致交易哈希堵塞转账失败处理
eth.resend = function (tx, gasPrice, gas) {
if (gasPrice) {
tx.gasPrice = gasPrice;
}
if (gas) {
tx.gas = gas;
}
tx.data = tx.input;
return eth.sendTransaction(tx);
};
eth.resendgwei = function (tx, gasPriceInGwei, gas) {
if (gasPriceInGwei) {
return eth.resend(tx, web3.toWei(gasPriceInGwei, 'gwei'), gas);
}
else {
return eth.resend(tx, null, gas);
}
};
eth.resendgwei(eth.pendingTransactions[0], 27);
原文
https://ethereum.stackexchange.com/questions/16269/geth-transactions-stuck-in-pending-resend-fails