我有一个geth节点,并且使用了块菌-hd-钱包。我试图在coinbase和hd创建的帐户之间创建一个交易,创建一个原始交易并与coinbase的私钥签名。事务被困在txpool中,处于挂起状态。事务对象创建为:
{
'from': <coinbase account>,
'to': <acc created by hdwallet>,
'value':1,
'chainId': <net.getId()>,
'gasPrice': <eth.getGasPrice>,
'gasLimit': 2000000
}与,web3I.eth.accounts.signTransaction(tx, privateKey)签署
web3.txpool.content如下所示,
{
pending: {
0x0C0Df324C081fAF1c9fE6BF98379e0614181d254: {
0: {
blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
blockNumber: null,
from: "0x0c0df324c081faf1c9fe6bf98379e0614181d254",
gas: "0x1e8480",
gasPrice: "0x430e23400",
hash: "0x6c525ad1ed8b128ba04e12e990e762697d9ac093c5342d7a4835318e74bb518f",
input: "0x",
nonce: "0x0",
r: "0x346c40bd758c67f5082976d9e5523f0b171b397d53b30ff6183d31e3314b7ff1",
s: "0x68bd289133fcf966f71d51fdbe282c176a6b7739f8532d347471183e056352e8",
to: "0x74f59f7f123fa71a8d0b71d792a6d040bbdd2fdd",
transactionIndex: "0x0",
v: "0x9c7",
value: "0x5"
}
}
},
queued: {}
}我甚至尝试过增加gasPrice,也使用ethereumjs tx,但是结果是一样的。
发布于 2018-06-20 01:55:26
通过从tx对象中移除“chainId”:来解决这个问题。不清楚为什么'chainId‘使tx处于挂起状态。
https://ethereum.stackexchange.com/questions/51383
复制相似问题