我使用p乙基a和web3.js在专用网络上进行交易。
var to = "1152a50b91887591a2447b233105f392dbae72ce";
var from = "4dfd7cb92bca796821d5fc4512a6a02cc98d833d";
var json_data = {"Hi!" : "Hello World!!!"};
var tx_hash = web3.eth.sendTransaction({from: from_addr, to: to_addr, value: web3.toWei(10000, 'wei'), data: web3.toHex(json_data), gas:90000});一切都进行得很顺利,交易正在由pyethapp签署。但是,没有将事务添加到区块链中。对其进行签名时,控制台中的输出如下(在运行p乙基应用程序时):
INFO:p2p.peermgr waiting for bootstrap
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=ddcb1d6ad36c172fe077f0cbf4b7e889339ba8effbcbc9472866e8ac9c4724e1
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=c32c7a78781a65cab4fa9b5d9faa6926fc58b626fa7fa88d351f629228dfb379
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=697a2cb3c9b07e97114eca5eb0077258d05ce8b6d1a6f528083f3c768d6880fc
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=7a7697bfd0416b29360a2fb675b8c760aa8b90a54dde307cbde91e4c0cd3d8e1
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=8f19ee2ee4d8814ec9c172037d274f3a7f9df28b32a7e585610969dd06c240ed
INFO:accounts signing tx account=<Account(address=4dfd7cb92bca796821d5fc4512a6a02cc98d833d, id=None)> tx=<Transaction(7236)>
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=19f3d9615f961c7a2351a2460393476f22ddbaa79bbfe3bac3acd3eedab14676
WARNING:pow mining_hash does not match
INFO:pow.subprocess nonce found
INFO:pow.subprocess sending nonce
INFO:pow nonce found mining_hash=4daad5461707f1c29fc88c5929fd5c50b423159601181587e89d189d5f50329d我还注意到了这句话:
mining_hash=19f3d9615f961c7a2351a2460393476f22ddbaa79bbfe3bac3acd3eedab14676
WARNING:pow mining_hash does not match我不确定它是否与事务有关(我在私有网络上只进行了一次事务)。所有地址在区块链内都有预定义的余额,这不是一个与气体/以太不足有关的问题。
成因块还使用一个非常低的难度级别(<100),以便更快地挖掘事务。
为什么没有将事务添加到块链中?
我正在使用(来自这里的)函数来查询收件人地址的区块链。
奇怪的是,交易有收据:
blockHash:"0x10b5c028b21e42104de61ba943ce14d11bcf01812ec675b10373d80316da481"
blockNumber:2
contractAddress:null
cumulativeGasUsed:21952
gasUsed:21952
logs:Array[0]
transactionHash:"0xcbd5db525f2b592d3d16f332747f22c50f1632e5629f5fe497673efc5d2b7a5a"
transactionIndex:0发布于 2016-07-12 08:48:27
最初,gas:90000过低。在增加它之后,收据表明事务现在在块链中,块#2。
https://ethereum.stackexchange.com/questions/7030
复制相似问题