Home Reference Source
public class | source

SavingManager

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
Private Members
private

_factor: *

private
private
private

Method Summary

Public Methods
public

addBlockToSave(block: *, height: *): boolean

public

async saveAllBlocks()

Private Methods
private

async _saveManager()

private

async _saveNextBlock(): *

Public Constructors

public constructor() source

Public Members

public blockchain: * source

Private Members

private _factor: * source

private _isBeingSavedAll: boolean source

private _pendingBlocksList: {} source

private _timeoutSaveManager: * source

Public Methods

public addBlockToSave(block: *, height: *): boolean source

Params:

NameTypeAttributeDescription
block *
height *

Return:

boolean

public async saveAllBlocks() source

Private Methods

private async _saveManager() source

private async _saveNextBlock(): * source

Return:

*