openethereum / parity-ethereum

The fast, light, and robust client for Ethereum-like networks.
Other
6.83k stars 1.69k forks source link

Why my transactions with 2x normal gas price still executed very slow? ( cost 20 hours with 25% failed ) #11803

Open sg552 opened 4 years ago

sg552 commented 4 years ago

I started 4 tx (ending with: e53e, 21bf, cb92, 7fec) at 06-27 afternoon, with a very high gas price ( 64 gwei ), however I found these 4 tx were executed 20 hours later, with 1 failed.

2020-06-28 11:13:22  Imported #10351752 0xc62f…deda (187 txs, 11.93 Mgas, 1924 ms, 44.83 KiB)
2020-06-28 11:13:23  Syncing #10351752 0xc62f…deda     0.20 blk/s   37.4 tx/s    2.4 Mgas/s      0+    0 Qed  #10351752    1/25 peers      6 MiB chain  102 MiB db  0 bytes queue  157 KiB sync  RPC:  0 conn,    0 req/s, 2109 µs
2020-06-28 11:13:28  Syncing #10351752 0xc62f…deda     0.00 blk/s    0.0 tx/s    0.0 Mgas/s      0+    0 Qed  #10351753    1/25 peers      6 MiB chain  102 MiB db  0 bytes queue  157 KiB sync  RPC:  0 conn,    0 req/s, 2109 µs
2020-06-28 11:13:34  Imported #10351754 0x3b6c…fc26 (168 txs, 11.95 Mgas, 1532 ms, 45.04 KiB) + another 1 block(s) containing 218 tx(s)

# from here, we can see 1 tx failed, 3 tx executed. 
2020-06-28 11:13:34  Transaction culled (hash 0xae6f09695c7bc600d5283592c39783e444eea87e5ca8c3e69c6ea994d1e2e53e)
2020-06-28 11:13:37  Imported #10351755 0x0e65…bbdf (174 txs, 11.97 Mgas, 1616 ms, 29.55 KiB)
2020-06-28 11:13:42  Transaction mined (hash 0xe69a613afd3b1877b9ca615615dc899dc75afdd6717d47e6a79f2bf0e87c21bf)
2020-06-28 11:13:42  Transaction mined (hash 0x6742489c2630e84059b892f4db4580adabdc68a4be4f6ba1a5b9ee93cb4ccb92)
2020-06-28 11:13:42  Transaction mined (hash 0xfb7563b60dddaec2df3dba2d08420592467f4b30d651d7c52600684bd30f7fec)

In my coinbase, I have enough ETH as the gas price.

and my ETH node is syncing very fast ( even faster than ethereum.org ) .

and this case is not all the time like this. 2 days ago it works as a charm ( I can make tx in 5 minutes successfully) . but from yesterday it not works so well.

I am using a deprecated API: personal_sendTransaction

curl --data '{
          "method":"personal_sendTransaction",
          "params":[
            {
              "from":"0x7ccfaf74adba37b2ef11b4caa3ce37597074====",
              "to":"0x8255d6f2c09b64a1358ec465e0314392b500====",
              "data":"0xa9059cbb000000000000000000000000752175aaa0f0d218728782db70ca2724e225====00000000000000000000000000000000000000000000056af73378dc41240000",
              "value":"0x0",
              "gas":"0x33450",
              "gasPrice": "0xa3e9ab800"
            },   
            "my_password_here"
          ],
          "id":42644,
          "jsonrpc":"2.0"
        }' -H "Content-Type: application/json" -X POST http://172.31.aa.bb:port

please anyone give me a clue? thanks a lot!

vorot93 commented 4 years ago

Can you try with eth_sendRawTransaction API?

sg552 commented 4 years ago

Yeah, I am wondering if the problem would be solved if I switched to the api you mentioned. I will update this post once I got a result. thanks .