Skip to content

Commit b408580

Browse files
committed
fix: update mining error message to include block height difference
1 parent 28b6d8a commit b408580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/mint-pow.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ This mining user configuration was not found!
6060
let timer = Date.now(),
6161
startTimer = timer,
6262
mineCount = 0;
63-
toMintBlockNumber = blockNumber;
63+
toMintBlockNumber = blockNumber + 3;
6464
setInterval(() => {
6565
toMintBlockNumber += 1;
6666
}, 1000 * 12);
@@ -118,7 +118,7 @@ This mining user configuration was not found!
118118
const currentBlockNumber = await provider.getBlockNumber();
119119
if (Math.abs(currentBlockNumber - toMintBlockNumber) > 5) {
120120
spinnies.fail("mining", {
121-
text: `The block height is too high, please try again later`,
121+
text: `The current block height is ${currentBlockNumber}, the expected block height is ${toMintBlockNumber}, the difference is too large, and the mining is stopped.`,
122122
color: "red",
123123
});
124124
return;

0 commit comments

Comments
 (0)