Skip to content

Commit 410ca07

Browse files
committed
fix sector prove data struct
1 parent d4372ed commit 410ca07

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

contracts/ProveExtra.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ contract ProveExtra {
171171
gParams.ProveNum = proveNum;
172172
Challenge[] memory challenges = pdp.GenChallenge(gParams);
173173
// pre
174-
// TODO decentralized sector prove data
175-
SectorProveData memory sectorProveData;
174+
SectorProveData memory sectorProveData = sectorProve.ProveData_;
176175
PrepareForPdpVerificationParams memory pParams;
177176
pParams.SectorInfo_ = sectorInfo;
178177
pParams.ProveData = sectorProveData;

contracts/Type.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ struct SectorProveParams {
316316
address NodeAddr;
317317
uint64 SectorID;
318318
uint64 ChallengeHeight;
319-
ProveData ProveData_;
319+
SectorProveData ProveData_;
320320
}
321321

322322
struct UserSpaceOperation {

test/Prove.SectorProve.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ describe(name, function () {
104104
SectorID: 1,
105105
ChallengeHeight: 10,
106106
ProveData_: {
107+
ProveFileNum: 1,
107108
Proofs: [],
108109
BlockNum: 1,
109110
Tags: [],
110111
MerklePath_: [],
112+
PlotData: [],
111113
}
112114
});
113115
await expect(tx).to.not.be.reverted;

0 commit comments

Comments
 (0)