Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Collins <dave@davec.name>
  • Loading branch information
chappjc and davecgh committed Jun 17, 2023
1 parent bf4972d commit 07de838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/dcrdata/internal/api/insight/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (iapi *InsightApi) DcrToInsightBlock(inBlocks []*chainjson.GetBlockVerboseR
}

RewardAtBlock := func(blocknum int64, voters uint16) float64 {
var ssv standalone.SubsidySplitVariant = standalone.SSVOriginal
ssv := standalone.SSVOriginal
if blocknum >= dcp0012Height {
ssv = standalone.SSVDCP0012
} else if blocknum >= dcp0010Height {
Expand Down
4 changes: 2 additions & 2 deletions db/dcrpg/pgblockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -4732,7 +4732,7 @@ func (pgb *ChainDB) DCP0011ActivationHeight() int64 {

agendaInfo, found := pgb.ChainInfo().AgendaMileStones[chaincfg.VoteIDBlake3Pow]
if !found {
log.Warn("The changesubsidysplit agenda is missing.")
log.Warn("The blake3pow agenda is missing.")
return 0
}

Expand Down Expand Up @@ -4762,7 +4762,7 @@ func (pgb *ChainDB) DCP0012ActivationHeight() int64 {

agendaInfo, found := pgb.ChainInfo().AgendaMileStones[chaincfg.VoteIDChangeSubsidySplitR2]
if !found {
log.Warn("The changesubsidysplit agenda is missing.")
log.Warn("The changesubsidysplitr2 agenda is missing.")
return 0
}

Expand Down

0 comments on commit 07de838

Please sign in to comment.