This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gravity
committed
Aug 21, 2016
1 parent
f19daf9
commit 2d24c9b
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package fork | ||
|
||
import ( | ||
"math/big" | ||
) | ||
|
||
type Fork struct { | ||
Name string | ||
// TestNetBlock is the block number where a hard-fork commences on | ||
// the Ethereum test network. It's enforced nil since it was decided not to do a | ||
// testnet transition. | ||
TestNetBlock *big.Int | ||
// MainNetBlock is the block number where the hard-fork commences on | ||
// the Ethereum main network. | ||
MainNetBlock *big.Int | ||
// ForkBlockExtra is the block header extra-data field to set for a fork | ||
// point and a number of consecutive blocks to allow fast/light syncers to correctly | ||
ForkBlockExtra []byte | ||
// ForkExtraRange is the number of consecutive blocks from the fork point | ||
// to override the extra-data in to prevent no-fork attacks. | ||
ForkExtraRange *big.Int | ||
} |