-
Notifications
You must be signed in to change notification settings - Fork 114
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
Very high values when eth.estimateGas requested #642
Comments
@AionJayT might be important for us to check that we can reproduce this. From my side: I was unable to reproduce this issue with a locally synced node (as suggested by Gurdeep). I also was informed by another colleague that it seemed to have to do with his keystore being placed in the keystore folder vs not. I tried this as well and was not able to reproduce the error. |
@gurdeepakjoshi Just to be clear, when you say fully synced, are you referring to |
@qoire , I meant mastery. |
I was able to reproduce this issue with importing the keystore and config when I apply to a brand new mainnet kernel(aion-v0.3.1.dcaf9e8-2018-08-30) |
I was able to reproduce this on mastery using both v0.3.0.17d0f332, as well as the latest dev. I did not need to sync to completion in order to reproduce the bug. I stepped through the code, and it looks like the wonky behaviour is happening inside the VM. @AionJayT is following up with the VM team. |
Was debugging this issue, found the root cause is that the Code:
|
Quick fix would be updating the Sine this issue won't affect consensus, put it at low-to-median priority. |
some of the contract calls do need to verify the sender, therefore, I think the better solution is putting an address when the call doesn't have the sender address or just return an error in the API layer. |
I thought the transaction would be signed by a random address. If we don't set the |
that's correct, the problem is if the contract function call requires the sender's address (let assume modifier), but this API doesn't require the sender's signature for the constant call. Then the getfrom() won't work. |
PR #646 adds the Zero Address if no address is provided, resolves the issue. |
Which Aion version?: 0.3.1.46f09bac
Which operating system?: Linux
Which distributor and version?: Ubuntu 16.04 LTS 64 bit
How installed?: binaries
Are you fully synchronized?: yes
Did you try to restart the node?: yes
Actual Behaviour
13914991129094744000
It returns a very high estimate which makes the contract deployment infeasible.
Expected Behaviour
estimateGas should return realistic estimate such as 2000000
FYI
If you run same node locally (private) without syncing with external nodes then this issue doesn't occur. This issue is only occuring on fully synced node.
The text was updated successfully, but these errors were encountered: