Skip to content

Commit f02b2d2

Browse files
committed
fix un prove list
1 parent 85c75c2 commit f02b2d2

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

contracts/PDP.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ contract PDP is Initializable, IPDP, IFsEvent {
181181
SaveChallenge(key, chgs);
182182
SaveMerklePath(key, mp);
183183
ProofRecord memory pr;
184+
pr.Proof = vParams;
184185
pr.State = false;
185186
proofsPool.insert(key, pr);
186187
emit PDPVerifyEvent(FsEvent.PROOF_REQUEST);

contracts/Prove.sol

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ contract Prove is Initializable, IProve, IFsEvent {
236236
return;
237237
}
238238
Setting memory setting = config.GetSetting();
239-
if (block.number < sectorInfo.NextProveHeight) {
240-
emit FsError("SectorProve", "SectorProveNotExpired");
241-
return;
242-
}
243-
if (sectorProve.ChallengeHeight != sectorInfo.NextProveHeight) {
244-
emit FsError("SectorProve", "SectorProveChallengeHeightNotMatch");
245-
return;
246-
}
239+
// if (block.number < sectorInfo.NextProveHeight) {
240+
// emit FsError("SectorProve", "SectorProveNotExpired");
241+
// return;
242+
// }
243+
// if (sectorProve.ChallengeHeight != sectorInfo.NextProveHeight) {
244+
// emit FsError("SectorProve", "SectorProveChallengeHeightNotMatch");
245+
// return;
246+
// }
247247
string memory err = proveExtra.checkSectorProve(
248248
pdp,
249249
SECTOR_PROVE_BLOCK_NUM,

0 commit comments

Comments
 (0)