PartialAccountsTree
Extends:
Member Summary
Public Members | ||
public get |
complete: boolean |
|
public get |
missingPrefix: string |
Method Summary
Public Methods | ||
public |
abort(): Promise |
|
public |
commit(): Promise<boolean> |
|
public |
async pushChunk(chunk: AccountsTreeChunk): Promise<PartialAccountsTree.Status> |
|
public |
synchronousTransaction(enableWatchdog: boolean): PartialAccountsTree |
|
public |
transaction(enableWatchdog: boolean): AccountsTree |
Inherited Summary
From class Observable | ||
public static get |
WILDCARD: string: string |
|
public |
bubble(observable: Observable, types: ...string) |
|
public |
fire(type: string, args: ...*): Promise | null |
|
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
From class AccountsTree | ||
public static |
async createVolatile(): Promise<AccountsTree> |
|
public static |
async getPersistent(jdb: *): Promise<AccountsTree> |
|
public get |
|
|
public |
abort(): Promise |
|
public |
async commit(): Promise |
|
public |
|
|
public |
async getAccountsProof(addresses: Array<Address>): Promise<AccountsProof> |
|
public |
async getChunk(startPrefix: string, size: number): Promise<AccountsTreeChunk> |
|
public |
async isEmpty(): Promise<boolean> |
|
public |
async partialTree(): Promise<PartialAccountsTree> |
|
public |
|
|
public |
|
|
public |
snapshot(tx: AccountsTree): Promise<AccountsTree> |
|
public |
synchronousTransaction(enableWatchdog: boolean): Promise<SynchronousAccountsTree> |
|
public |
transaction(enableWatchdog: boolean): Promise<AccountsTree> |
|
protected |
async _init(): Promise<AccountsTree> |
From class SynchronousAccountsTree | ||
public |
|
|
public |
|
|
public |
async preloadAddresses(addresses: Array<Address>): Promise |
|
public |
|
|
public |
|
|
protected |
_insertBatch(node: AccountsTreeNode, prefix: string, account: Account, rootPath: Array<AccountsTreeNode>): * |
|
protected |
_updateHashes(node: AccountsTreeNode): * This method updates all empty hashes (and only such). |
Public Methods
public async pushChunk(chunk: AccountsTreeChunk): Promise<PartialAccountsTree.Status> source
Params:
Name | Type | Attribute | Description |
chunk | AccountsTreeChunk |
Return:
Promise<PartialAccountsTree.Status> |
public synchronousTransaction(enableWatchdog: boolean): PartialAccountsTree source
Override:
AccountsTree#synchronousTransactionParams:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|
public transaction(enableWatchdog: boolean): AccountsTree source
Override:
AccountsTree#transactionParams:
Name | Type | Attribute | Description |
enableWatchdog | boolean |
|