-
Notifications
You must be signed in to change notification settings - Fork 20.6k
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
How to get right value from "address(this).balance" in local private geth #20804
Comments
You mentioned that you deployed this on testnets too and they behave the same? Can you send us a contract address on Goerli? Would be super easy to repro that way and verify what's going wrong? |
Things that I have tested on TestNet (Ropsten, Rinkeby) were fine but local private node with genesis file in https://gist.github.com/daenamkim/d064bb1ed874d5e2477b179a97a89e93 So I just want to know about some missing configs when I run geth or wrong part of genesis file |
Aaah, I see. You might be missing the Petersburg hard fork |
Thanks! but even I added |
@karalabe leaving the new genesis block question aside for now, is there a way to specify the petersburg block for a private PoA network, without resetting the entire network? Also, the
Note the Is this expected? If so, how can we "upgrade" a currently-running PoA local blockchain? |
@karalabe any comment on the note above about the intended behaviour of |
I'm going to close this, reasoning:
|
re |
System information
Geth version:
geth version
OS & Version: Windows/Linux/OSX

Expected behaviour
Return right value from
address(this).balance
Actual behaviour
Return always 0 from
address(this).balance
Steps to reproduce the behaviour
https://gist.github.com/daenamkim/d064bb1ed874d5e2477b179a97a89e93
The text was updated successfully, but these errors were encountered: