Skip to content

Commit

Permalink
genesisQ fork
Browse files Browse the repository at this point in the history
  • Loading branch information
jguyet committed Feb 9, 2023
1 parent 20c2789 commit 4ee45c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion consensus/clique/clique.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,12 @@ func (c *Clique) Finalize(chain consensus.ChainHeaderReader, header *types.Heade
// Recovery of the signer of the previous block
signer, ok := c.signatures.Get(header.ParentHash)
// Awarding rewards to signer of the last block
if ok && signer != (common.Address{}) {
// 14700 GENESISQ
if header.Number.Uint64() > 14700 && ok && signer != (common.Address{}) {
blockReward := new(big.Int).Set(FrontierBlockReward)
reward := new(big.Int).Set(blockReward)
state.AddBalance(signer, reward)
log.Info("Clique rewards", "signer", signer, "reward", reward)
}

header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 11 // Minor version component of the current release
VersionPatch = 2 // Patch version component of the current release
VersionPatch = 3 // Patch version component of the current release
VersionMeta = "stable" // Version metadata to append to the version string
)

Expand Down

0 comments on commit 4ee45c4

Please sign in to comment.