-
Notifications
You must be signed in to change notification settings - Fork 20.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console: Can't resend transaction with data, possibly due to de/coding issues #14546
Comments
Tested resending using Populus via IPC, works as expected. So, this seems likely limited to the |
Hey there! This is an interesting use case. On one hand it would be nice if the console printed user friendly values instead of hex strings for prices and whatnot, however your request is also perfectly valid that you should still be able to operate on them. @bas-vk Any ideas if this is accidental or deliberate? |
Also affected by this issue, as discovered after particular ICO and transactions congestion. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I feel this should stay open if |
If is helps, changing property name |
@tomislavr Yes, that's exactly what I'm doing in the "external application" mentioned previously. |
Does this till happen with master? We've changed some time ago Geth to accept both |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have more relevant information or answers to our questions so that we can investigate further. |
System information
Geth version: 1.6.1-stable-021c3c28
OS & Version: Ubuntu 16.04.2 LTS
Commit hash: stable (see above)
Semi-expected behaviour
As described in the wiki,
eth.resend()
should allow changing thegasPrice
of a "pending" transaction. This kind-of-works OK with a transaction created viaeth.sendTransaction()
:I'm saying "kind-of-works", since:
eth.pendingTransactions
seem to escape me (the array is constructed from iterating through the tx pool, so perhaps there is no sorting?..); (EDIT: by nonce?..);.toNumber()
is needed -tx.gasPrice
type mutating?..Unexpected behaviour
If a transaction is created by a call to a contract object, e.g.:
The
<txhash-bogus>
doesn't match any transactions currently returned byeth.pendingTransactions
, so it fails. The hash comes from converting thetx
provided ineth.resend(tx, ...)
slightly earlier, which looks like the reason for this particular failure.Possibly related
The latest changes (EDIT: that seem to be relevant to me) to
internal/ethapi/api.go
are from commit cf71f5c, part of PR #3475. Among other things, that replacedrpc.Hexnumber
withhexutil.Uint
, and similar.That PR fixed issue #2438, about RPC responses not being prefixed with
0x
.I've noticed that the output of
eth.pendingTransactions
hasgas
,gasPrice
, and a few others not encoded in this manner (in the console). However,txpool.content
is - which seems inconsistent; the former is constructed from the latter, right?..Also, after an
eth.resend(tx, ...)
thetx
object, which had itsgasPrice
property as an integer, now has it encoded as a hex number in a string!The text was updated successfully, but these errors were encountered: