Skip to content

Commit

Permalink
updates to support calling hash less often
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina committed Dec 9, 2024
1 parent 25a732c commit 9ccfbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (fes *APIServer) SubmitBlock(ww http.ResponseWriter, req *http.Request) {
// The optimal solution is to check signatures in a way that doesn't acquire the
// ChainLock, which is what Bitcoin Core does.
isMainChain, isOrphan, _, err := fes.blockchain.ProcessBlock(
blockFound, true /*verifySignatures*/)
blockFound, nil, true /*verifySignatures*/)
glog.V(1).Infof("Called ProcessBlock/ConnectBlock: isMainChain=(%v), isOrphan=(%v), err=(%v)",
isMainChain, isOrphan, err)
if err != nil {
Expand Down

0 comments on commit 9ccfbc6

Please sign in to comment.