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

Homestead Release Candidate #2258

Merged
merged 20 commits into from
Feb 29, 2016
Merged

Homestead Release Candidate #2258

merged 20 commits into from
Feb 29, 2016

Conversation

obscuren
Copy link
Contributor

The homestead release candidate

PLEASE NOTE: Block number is NOT final

This is a cherry picked release and include the PR listen on the 1.3.4 milestone

@obscuren obscuren added this to the 1.3.4 milestone Feb 24, 2016
@robotally
Copy link

❗ Pull request against master

Vote Count Reviewers
👍 0
👎 0

Updated: Wed Feb 24 12:22:45 UTC 2016

@codecov-io
Copy link

Current coverage is 48.52%

Merging #2258 into master will increase coverage by +1.64% as of 77ff5c7

Powered by Codecov. Updated on successful CI builds.

fjl and others added 12 commits February 24, 2016 13:44
The s2 parameter was not actually written to the MAC.
Conflicts:
	p2p/discover/udp_test.go
…han-buffer packets

On Windows, UDPConn.ReadFrom returns an error for packets larger
than the receive buffer. The error is not marked temporary, causing
our loop to exit when the first oversized packet arrived. The fix
is to treat this particular error as temporary.

Fixes: ethereum#1579, ethereum#2087
Updates: ethereum#2082

Conflicts:
	p2p/discover/udp_test.go
…otocol changes

* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code

Conflicts:
	core/vm/environment.go
	crypto/crypto.go
	crypto/secp256k1/secp256.go
	eth/api.go
* Removed some strange code that didn't apply state reverting properly
* Refactored code setting from vm & state transition to the executioner
* Updated tests

Conflicts:
	common/registrar/ethreg/api.go
	core/tx_pool.go
	core/vm/jit_test.go
…or selfish mining

Assuming the following scenario where a miner has 15% of all hashing
power and the ability to exert a moderate control over the network to
the point where if the attacker sees a message A, it can't stop A from
propagating, but what it **can** do is send a message B and ensure that
most nodes see B before A. The attacker can then selfish mine and
augment selfish mining strategy by giving his own blocks an advantage.

This change makes the time at which a block is received less relevant
and so the level of control an attacker has over the network no longer
makes a difference.

This change changes the current td algorithm `B_td > C_td` to the new
algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
@obscuren obscuren self-assigned this Feb 24, 2016
// secp256k1 eliptic curve and an error if it failed deriving or upon an
// incorrect signature.
//
// FromFrantier uses the frontier consensus rules to determine whether the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo on line 182, should be FromFrontier

Great work and congrats on the RC!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

obscuren and others added 7 commits February 29, 2016 13:24
This commit increases the artificial gas floor to 4712388
(cherry picked from commit f954a8b)
When a block is queried for retrieval we should add a check whether the
block falls within the frontier rules. If we'd always use `From`
retrieving transaction might fail. This PR temporarily changes
everything to `FromFrontier` (safe!).

This is a backport of c616391
Turns out we actually don't need it, USE_NUM_NONE works
because we also set USE_FIELD_INV_BUILTIN.

Conflicts:
	Makefile
	crypto/secp256k1/secp256.go
… and GPO to 20 shannon

(cherry picked from commit ab92678)
(cherry picked from commit e22fd22c97b4f5d4af118dca3fb2cb6292a520a6)

Conflicts:
	cmd/utils/flags.go
obscuren added a commit that referenced this pull request Feb 29, 2016
@obscuren obscuren merged commit 4044a8c into ethereum:master Feb 29, 2016
@obscuren obscuren removed the review label Feb 29, 2016
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants