Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
core/fork New data type
Browse files Browse the repository at this point in the history
  • Loading branch information
gravity committed Aug 21, 2016
1 parent f19daf9 commit 2d24c9b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions core/fork/fork.go
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
}

0 comments on commit 2d24c9b

Please sign in to comment.