Skip solving the block if SkipProofOfWork (#1741)

This commit is contained in:
Ori Newman 2021-06-08 15:44:27 +03:00 committed by GitHub
parent 43e6467ff1
commit 3b0394eefe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}