clerkb-lumos-integrator
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -12,2 +12,3 @@ import { Cell, CellDep, Hash, Indexer, HexNumber, Script } from "@ckb-lumos/base"; | ||
constructor(ckbAddress: string, indexer: Indexer, cellDeps: CellDep[], logger?: (message: string) => void); | ||
cancelIssueBlock(): Promise<void>; | ||
shouldIssueNewBlock(medianTimeHex: HexNumber, tipCell: Cell): Promise<State>; | ||
@@ -14,0 +15,0 @@ fixTransactionSkeleton(medianTimeHex: HexNumber, txSkeleton: TransactionSkeletonType): Promise<TransactionSkeletonType>; |
@@ -29,2 +29,5 @@ "use strict"; | ||
} | ||
async cancelIssueBlock() { | ||
this.roundStartSubtime = undefined; | ||
} | ||
async shouldIssueNewBlock(medianTimeHex, tipCell) { | ||
@@ -31,0 +34,0 @@ const medianTime = BigInt(medianTimeHex) / 1000n; |
{ | ||
"name": "clerkb-lumos-integrator", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Integrator between clerkb and lumos", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -64,2 +64,6 @@ import { Reader } from "ckb-js-toolkit"; | ||
async cancelIssueBlock(): Promise<void> { | ||
this.roundStartSubtime = undefined; | ||
} | ||
async shouldIssueNewBlock( | ||
@@ -66,0 +70,0 @@ medianTimeHex: HexNumber, |
Sorry, the diff of this file is not supported yet
60961
904