Skip to content

Commit 28b6d8a

Browse files
committed
fix: update toMintBlockNumber assignment in mint-pow.ts
1 parent 0753cc9 commit 28b6d8a

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,12 +60,12 @@ This mining user configuration was not found!
6060
let timer = Date.now(),
6161
startTimer = timer,
6262
mineCount = 0;
63+
toMintBlockNumber = blockNumber;
6364
setInterval(() => {
6465
toMintBlockNumber += 1;
6566
}, 1000 * 12);
6667
while (true) {
6768
mineCount += 1;
68-
toMintBlockNumber = blockNumber + 5;
6969
const transaction = {
7070
type: 2,
7171
chainId: network.chainId,
@@ -82,7 +82,7 @@ This mining user configuration was not found!
8282
tick: tick,
8383
// use_point: '0',
8484
block: String(toMintBlockNumber),
85-
nonce: `${generateNonce()}${unique++}`,
85+
nonce: `${generateNonce()}`,
8686
})}`
8787
),
8888
};

0 commit comments

Comments
 (0)