Skip to content

Commit 4ee45c4

Browse files
author
jguyet
committed
genesisQ fork
1 parent 20c2789 commit 4ee45c4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

consensus/clique/clique.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,10 +578,12 @@ func (c *Clique) Finalize(chain consensus.ChainHeaderReader, header *types.Heade
578578
// Recovery of the signer of the previous block
579579
signer, ok := c.signatures.Get(header.ParentHash)
580580
// Awarding rewards to signer of the last block
581-
if ok && signer != (common.Address{}) {
581+
// 14700 GENESISQ
582+
if header.Number.Uint64() > 14700 && ok && signer != (common.Address{}) {
582583
blockReward := new(big.Int).Set(FrontierBlockReward)
583584
reward := new(big.Int).Set(blockReward)
584585
state.AddBalance(signer, reward)
586+
log.Info("Clique rewards", "signer", signer, "reward", reward)
585587
}
586588

587589
header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
const (
2424
VersionMajor = 1 // Major version component of the current release
2525
VersionMinor = 11 // Minor version component of the current release
26-
VersionPatch = 2 // Patch version component of the current release
26+
VersionPatch = 3 // Patch version component of the current release
2727
VersionMeta = "stable" // Version metadata to append to the version string
2828
)
2929

0 commit comments

Comments
 (0)