Skip to content

Commit

Permalink
Fixed 'BlockVersionKHashV2' in debug output and removed linebreak
Browse files Browse the repository at this point in the history
  • Loading branch information
lemois-1337 committed Aug 27, 2024
1 parent 98b0730 commit 03a8258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain/consensus/utils/pow/pow.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ func (state *State) CalculateProofOfWorkValue() *big.Int {
//log.Infof("Hash b3-1: %x", powHash.ByteSlice())
finalHash := powHash
if state.blockVersion == constants.BlockVersionKHashV1 {
log.Debugf("Using khashv1 %d %d\n", state.blockVersion, constants.BlockVersionKHashV1)
log.Debugf("Using khashv1 %d %d", state.blockVersion, constants.BlockVersionKHashV1)
finalHash = state.mat.HeavyHash(powHash)
} else {
log.Debugf("Using khashv2 %d %d\n", state.blockVersion, constants.BlockVersionKHashV1)
log.Debugf("Using khashv2 %d %d", state.blockVersion, constants.BlockVersionKHashV2)
middleHash := fishHashPlus(&state.context, powHash)
writer2 := hashes.NewPoWHashWriter()
writer2.InfallibleWrite(middleHash.ByteSlice())
Expand Down

0 comments on commit 03a8258

Please sign in to comment.