Skip to content

Commit

Permalink
Removed catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire authored and wizeguyy committed Jan 25, 2023
1 parent 8c7e437 commit 80682d1
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 828 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cmd/puppeth @karalabe
consensus @karalabe
core/ @karalabe @holiman @rjl493456442
eth/ @karalabe @holiman @rjl493456442
eth/catalyst/ @gballet
graphql/ @gballet
les/ @zsfelfoldi @rjl493456442
light/ @zsfelfoldi @rjl493456442
Expand Down
13 changes: 1 addition & 12 deletions cmd/go-quai/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"gopkg.in/urfave/cli.v1"

"github.com/dominant-strategies/go-quai/cmd/utils"
"github.com/dominant-strategies/go-quai/eth/catalyst"
"github.com/dominant-strategies/go-quai/eth/ethconfig"
"github.com/dominant-strategies/go-quai/internal/ethapi"
"github.com/dominant-strategies/go-quai/log"
Expand Down Expand Up @@ -151,17 +150,7 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
if ctx.GlobalIsSet(utils.OverrideLondonFlag.Name) {
cfg.Eth.OverrideLondon = new(big.Int).SetUint64(ctx.GlobalUint64(utils.OverrideLondonFlag.Name))
}
backend, eth := utils.RegisterEthService(stack, &cfg.Eth)

// Configure catalyst.
if ctx.GlobalBool(utils.CatalystFlag.Name) {
if eth == nil {
utils.Fatalf("Catalyst does not work in light client mode.")
}
if err := catalyst.Register(stack, eth); err != nil {
utils.Fatalf("%v", err)
}
}
backend, _ := utils.RegisterEthService(stack, &cfg.Eth)

// Add the Ethereum Stats daemon if requested.
if cfg.Ethstats.URL != "" {
Expand Down
1 change: 0 additions & 1 deletion cmd/go-quai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ var (
utils.GpoIgnoreGasPriceFlag,
utils.MinerNotifyFullFlag,
configFileFlag,
utils.CatalystFlag,
utils.RegionFlag,
utils.ZoneFlag,
utils.DomUrl,
Expand Down
1 change: 0 additions & 1 deletion cmd/go-quai/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ var AppHelpFlagGroups = []flags.FlagGroup{
utils.SnapshotFlag,
utils.BloomFilterSizeFlag,
cli.HelpFlag,
utils.CatalystFlag,
},
},
{
Expand Down
7 changes: 1 addition & 6 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,6 @@ var (
Value: metrics.DefaultConfig.InfluxDBTags,
}

CatalystFlag = cli.BoolFlag{
Name: "catalyst",
Usage: "Catalyst mode (eth2 integration testing)",
}

RegionFlag = cli.IntFlag{
Name: "region",
Usage: "Quai Region flag",
Expand Down Expand Up @@ -1099,7 +1094,7 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) {
cfg.NetRestrict = list
}

if ctx.GlobalBool(DeveloperFlag.Name) || ctx.GlobalBool(CatalystFlag.Name) {
if ctx.GlobalBool(DeveloperFlag.Name) {
// --dev mode can't use p2p networking.
cfg.MaxPeers = 0
cfg.ListenAddr = ""
Expand Down
4 changes: 0 additions & 4 deletions consensus/blake3pow/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,6 @@ func (blake3pow *Blake3pow) SealHash(header *types.Header) (hash common.Hash) {
// reward. The total reward consists of the static block reward and rewards for
// included uncles. The coinbase of each uncle block is also rewarded.
func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header *types.Header, uncles []*types.Header) {
// Skip block reward in catalyst mode
if config.IsCatalyst(header.Number()) {
return
}
// Select the correct block reward based on chain progression
blockReward := misc.CalculateReward()

Expand Down
1 change: 0 additions & 1 deletion consensus/misc/eip1559_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func copyConfig(original *params.ChainConfig) *params.ChainConfig {
MuirGlacierBlock: original.MuirGlacierBlock,
BerlinBlock: original.BerlinBlock,
LondonBlock: original.LondonBlock,
CatalystBlock: original.CatalystBlock,
Blake3pow: original.Blake3pow,
}
}
Expand Down
Loading

0 comments on commit 80682d1

Please sign in to comment.