-
Notifications
You must be signed in to change notification settings - Fork 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
Bad conversion from hex to decimal with eth_getBlockByNumber after tx #2600
Comments
Did you test it also directly with a real node? Btw: I wouldn't send my transactions over a centralized point. |
@nivida yes, you are right. The |
I tested with web3.js: 1.0.0-beta.51, I no longer have the error but the I never receive the receipt, it's just hanging for ever. |
@tclairet This got already fixed and will be released this week. Thanks for testing it again! |
Description
This issue may be related to this issue but I think I found a bug not fixed by the fix.
There is a bad conversion from hex to decimal with eth_getBlockByNumber done by web3 after tx. I found that because I have a middleware in php before my node.
I have a simple script which do a tx on my private network.
Actual behavior
Got an error
And the last log, before the error, caught by the middleware are :
The interesting information is that the last call
eth_getBlockByNumber
request block0x282a
but the actual last block is0xb0d
. Moreover0xb0d
in decimal is2829
and if we consider it as a hex0x2829
+0x1
=0x282a
.Versions
The text was updated successfully, but these errors were encountered: