Skip to content
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

Removed state transition creating empty account edge case #17

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

austinabell
Copy link
Contributor

Resolves random state test failures from #13. Logic in question is referring to:

	if !self.state.Exist(f) {	
		return self.state.CreateAccount(f), nil	
	}	
	return self.state.GetAccount(f), nil

and also refactors relevant and referencing functions to not rely on this.

@austinabell austinabell merged commit 5aeb5aa into development Aug 2, 2019
@soc1c soc1c deleted the austin/15119edgecase branch August 2, 2019 15:37
soc1c pushed a commit that referenced this pull request Aug 2, 2019
@soc1c soc1c mentioned this pull request Aug 2, 2019
3 tasks
soc1c added a commit that referenced this pull request Aug 7, 2019
* Fixed state transition logic for edge case (#17)

* Update morden bootnodes (#16)

* Updates bootnodes

* what a fantastic test :)

* Core execution refactor, EIP 684, edge case fixes, starting nonce for morden (#19)

* Refactored Call

* Refactored CallCode

* Refactored DelegateCall

* Refactored StaticCall

* Added create before contract collision check

* Refactored Call

* Refactored CallCode

* Refactored DelegateCall

* Refactored StaticCall

* Added create before contract collision check

* Fixed state transition logic for edge case

* Added create collision logic

* Fix for edge case tests

* Removed outdated contract collision tests and changed format of test output to be consistent

* Rename exec function

* utilize StartingNonce from state instead of explicit 0 nonce checks for contract collision and empty objects

* Fixes morden seg fault edge case

* adding starting nonce to created contracts
@austinabell austinabell mentioned this pull request Aug 7, 2019
@soc1c soc1c added this to the 6.0 Atlantis milestone Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants