mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
Skip solving the block if SkipProofOfWork (#1741)
This commit is contained in:
parent
43e6467ff1
commit
3b0394eefe
@ -193,7 +193,10 @@ func mineOnTips(client *rpc.Client) (appmessage.RejectReason, error) {
|
||||
if err != nil {
|
||||
return appmessage.RejectReasonNone, err
|
||||
}
|
||||
mine.SolveBlock(domainBlock)
|
||||
|
||||
if !activeConfig().NetParams().SkipProofOfWork {
|
||||
mine.SolveBlock(domainBlock)
|
||||
}
|
||||
|
||||
return client.SubmitBlock(domainBlock)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user