Skip to content

Commit

Permalink
fix: fix issues after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lastminutedev committed Nov 20, 2023
1 parent 24f9020 commit 49ecf53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prover/core/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,13 @@ func (p *ProverCore) proveBatch(chunkInfosByt []byte, chunkProofsByt []byte) ([]
return result.Message, nil
}

func (p *ProverCore) proveChunk(chunkTraceByt []byte) ([]byte, error) {
func (p *ProverCore) proveChunk(chunkTraceByt []byte, prevLastAppliedL1Block uint64, l1BlockRangeHash []byte) ([]byte, error) {
chunkTraceBytStr := C.CString(string(chunkTraceByt))
defer C.free(unsafe.Pointer(chunkTraceBytStr))

l1BlockRangeHashStr := C.CString(string(l1BlockRangeHash))
defer C.free(unsafe.Pointer(l1BlockRangeHashStr))

log.Info("Start to create chunk proof ...")
cProof := C.gen_chunk_proof(tracesStr, C.uint64_t(prevLastAppliedL1Block), l1BlockRangeHashStr)
defer C.free_c_chars(cProof)
Expand Down

0 comments on commit 49ecf53

Please sign in to comment.