|
1 | | -//+build cgo |
| 1 | +//go:build cgo |
| 2 | +// +build cgo |
2 | 3 |
|
3 | 4 | package ffi |
4 | 5 |
|
5 | 6 | import ( |
6 | 7 | "github.com/filecoin-project/filecoin-ffi/generated" |
7 | 8 | "github.com/filecoin-project/go-state-types/abi" |
8 | | - "github.com/filecoin-project/specs-actors/v5/actors/runtime/proof" |
| 9 | + "github.com/filecoin-project/go-state-types/builtin/v8/miner" |
9 | 10 | "github.com/pkg/errors" |
10 | 11 | ) |
11 | 12 |
|
@@ -96,7 +97,7 @@ func GenerateWinningPoStWithVanilla( |
96 | 97 | minerID abi.ActorID, |
97 | 98 | randomness abi.PoStRandomness, |
98 | 99 | proofs [][]byte, |
99 | | -) ([]proof.PoStProof, error) { |
| 100 | +) ([]miner.PoStProof, error) { |
100 | 101 | pp, err := toFilRegisteredPoStProof(proofType) |
101 | 102 | if err != nil { |
102 | 103 | return nil, err |
@@ -138,7 +139,7 @@ func GenerateWindowPoStWithVanilla( |
138 | 139 | minerID abi.ActorID, |
139 | 140 | randomness abi.PoStRandomness, |
140 | 141 | proofs [][]byte, |
141 | | -) ([]proof.PoStProof, error) { |
| 142 | +) ([]miner.PoStProof, error) { |
142 | 143 | pp, err := toFilRegisteredPoStProof(proofType) |
143 | 144 | if err != nil { |
144 | 145 | return nil, err |
@@ -175,7 +176,7 @@ func GenerateWindowPoStWithVanilla( |
175 | 176 | return out, nil |
176 | 177 | } |
177 | 178 |
|
178 | | -type PartitionProof proof.PoStProof |
| 179 | +type PartitionProof miner.PoStProof |
179 | 180 |
|
180 | 181 | func GenerateSinglePartitionWindowPoStWithVanilla( |
181 | 182 | proofType abi.RegisteredPoStProof, |
@@ -228,7 +229,7 @@ func GenerateSinglePartitionWindowPoStWithVanilla( |
228 | 229 | func MergeWindowPoStPartitionProofs( |
229 | 230 | proofType abi.RegisteredPoStProof, |
230 | 231 | partitionProofs []PartitionProof, |
231 | | -) (*proof.PoStProof, error) { |
| 232 | +) (*miner.PoStProof, error) { |
232 | 233 | pp, err := toFilRegisteredPoStProof(proofType) |
233 | 234 | if err != nil { |
234 | 235 | return nil, err |
@@ -258,7 +259,7 @@ func MergeWindowPoStPartitionProofs( |
258 | 259 | return nil, err |
259 | 260 | } |
260 | 261 |
|
261 | | - out := proof.PoStProof{ |
| 262 | + out := miner.PoStProof{ |
262 | 263 | PoStProof: dpp, |
263 | 264 | ProofBytes: copyBytes(resp.Proof.ProofPtr, resp.Proof.ProofLen), |
264 | 265 | } |
|
0 commit comments