import { SKChainLibBase } from './../base'; import { SKChain } from './../../skChain'; import BigNumber from 'bignumber.js'; import { Block } from 'mate/block'; import { Slice } from './slice'; interface PossibleChain { contribute: BigNumber; blockMap: Map; possibleChain: PossibleChain; } export declare class Consensus extends SKChainLibBase { constructor(chain: SKChain); blockPrefix: string; slice: Slice; private ready; possibleChainMap: Map; setIsReady: (ready: boolean) => void; isReady: () => boolean; init: () => Promise; /** * 广播新区块 * @param nextBlock */ pubNewBlock: (nextBlock: Block) => Promise; subNewBlock: () => Promise; compareContribute: (block: Block) => Promise; } export {};