Commit e3979676 authored by 董子豪's avatar 董子豪

Modified format

parent f015e2ea
...@@ -7,11 +7,11 @@ package ffi ...@@ -7,11 +7,11 @@ package ffi
// #include "./filcrypto.h" // #include "./filcrypto.h"
import "C" import "C"
import ( import (
"encoding/binary"
"math"
"os" "os"
"runtime" "runtime"
"unsafe" "unsafe"
"math"
"encoding/binary"
// "fmt" // "fmt"
commcid "github.com/filecoin-project/go-fil-commcid" commcid "github.com/filecoin-project/go-fil-commcid"
...@@ -20,8 +20,8 @@ import ( ...@@ -20,8 +20,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/xerrors" "golang.org/x/xerrors"
"github.com/filecoin-project/filecoin-ffi/generated"
spproof "fil_integrate/build/proof" spproof "fil_integrate/build/proof"
"github.com/filecoin-project/filecoin-ffi/generated"
) )
// VerifySeal returns true if the sealing operation from which its inputs were // VerifySeal returns true if the sealing operation from which its inputs were
...@@ -188,7 +188,7 @@ func VerifyWindowPoSt(info spproof.WindowPoStVerifyInfo) (bool, error) { ...@@ -188,7 +188,7 @@ func VerifyWindowPoSt(info spproof.WindowPoStVerifyInfo) (bool, error) {
return resp.IsValid, nil return resp.IsValid, nil
} }
func VerifyAggregateWindowPostProofs(aggregateInfo spproof.AggregateWindowPostInfos)(bool, error) { func VerifyAggregateWindowPostProofs(aggregateInfo spproof.AggregateWindowPostInfos) (bool, error) {
if len(aggregateInfo.ChallengedSectors) == 0 { if len(aggregateInfo.ChallengedSectors) == 0 {
return false, xerrors.New("no seal verify infos") return false, xerrors.New("no seal verify infos")
} }
...@@ -541,7 +541,6 @@ func SealCommitPhase2( ...@@ -541,7 +541,6 @@ func SealCommitPhase2(
return copyBytes(resp.ProofPtr, resp.ProofLen), nil return copyBytes(resp.ProofPtr, resp.ProofLen), nil
} }
// aggregateInfo{ // aggregateInfo{
// minerID, // minerID,
// RegisteredSealProof || PoStProof, // RegisteredSealProof || PoStProof,
......
...@@ -5,9 +5,9 @@ import ( ...@@ -5,9 +5,9 @@ import (
"encoding/json" "encoding/json"
"sort" "sort"
spproof "fil_integrate/build/proof"
"github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/abi"
"github.com/ipfs/go-cid" "github.com/ipfs/go-cid"
spproof "fil_integrate/build/proof"
) )
// BLS // BLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment