Skip to content

Commit e70538b

Browse files
committed
fix debug code
1 parent 36b0bb1 commit e70538b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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,

hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const config: HardhatUserConfig = {
5151
},
5252
local: {
5353
url: "http://127.0.0.1:8545",
54-
accounts:["492dcf3b28c9096fb134ae75286b34650ff6b00e27ff3b7afea4141c44183150"],
54+
accounts:["d85ca052fa6b54affef2ad21cc677e31507696a9b5bc0efea866b19cc5f34cbe"],
5555
},
5656
ganache: {
5757
url: `http://127.0.0.1:7545/`,

0 commit comments

Comments
 (0)