@argonprotocol/mainchain 1.1.0-rc.5 → 1.1.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.cjs +4 -4
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.js +4 -4
- package/lib/cli.js.map +1 -1
- package/lib/clis/index.cjs +4 -4
- package/lib/clis/index.cjs.map +1 -1
- package/lib/clis/index.js +4 -4
- package/lib/clis/index.js.map +1 -1
- package/lib/index.cjs +4 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +266 -247
- package/lib/index.d.ts +266 -247
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/cli.cjs
CHANGED
|
@@ -649,10 +649,10 @@ var MiningRotations = class {
|
|
|
649
649
|
}));
|
|
650
650
|
this.genesisTick ??= await client.query.ticks.genesisTick().then((x) => x.toNumber());
|
|
651
651
|
const ticksBetweenSlots = this.miningConfig.ticksBetweenSlots;
|
|
652
|
-
const
|
|
653
|
-
if (tick <
|
|
654
|
-
const
|
|
655
|
-
return Math.floor(
|
|
652
|
+
const slot1StartTick = this.genesisTick + this.miningConfig.slotBiddingStartAfterTicks + ticksBetweenSlots;
|
|
653
|
+
if (tick < slot1StartTick) return 0;
|
|
654
|
+
const ticksSinceSlot1 = tick - slot1StartTick;
|
|
655
|
+
return Math.floor(ticksSinceSlot1 / ticksBetweenSlots) + 1;
|
|
656
656
|
}
|
|
657
657
|
async getForHeader(client, header) {
|
|
658
658
|
if (header.number.toNumber() === 0) return 0;
|