Skip to content

Commit

Permalink
consensus, metadium, miner: enabled Pangyo and Bokbunja
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoci committed Aug 11, 2023
1 parent e2e36ea commit c58d02a
Show file tree
Hide file tree
Showing 7 changed files with 1,007 additions and 230 deletions.
3 changes: 2 additions & 1 deletion consensus/ethash/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,12 @@ func (ethash *Ethash) FinalizeAndAssemble(chain consensus.ChainHeaderReader, hea

// sign header.Root with node's private key
if !metaminer.IsPoW() {
coinbase, sig, err := metaminer.SignBlock(header.Number, header.Root)
coinbase, nodeId, sig, err := metaminer.SignBlock(header.Number, header.Root, chain.Config().IsPangyo(header.Number))
if err != nil {
return nil, err
} else {
header.Coinbase = coinbase
header.MinerNodeId = nodeId
header.MinerNodeSig = sig
}
}
Expand Down
Loading

0 comments on commit c58d02a

Please sign in to comment.