Miner
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(blockchain: IBlockchain, accounts: Accounts, mempool: Mempool, time: Time, minerAddress: Address, extraData: Uint8Array) |
Member Summary
Public Members | ||
public get |
|
|
public get |
hashrate: number |
|
public get |
threads: number |
|
public set |
threads(threads: number) |
|
public get |
throttleAfter: number |
|
public set |
throttleAfter(throttleAfter: number) |
|
public get |
throttleWait: number |
|
public set |
throttleWait(throttleWait: number) |
|
public get |
working: boolean |
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 |
Public Constructors
public constructor(blockchain: IBlockchain, accounts: Accounts, mempool: Mempool, time: Time, minerAddress: Address, extraData: Uint8Array) source
Override:
Observable#constructorParams:
Name | Type | Attribute | Description |
blockchain | IBlockchain | ||
accounts | Accounts | ||
mempool | Mempool | ||
time | Time | ||
minerAddress | Address | ||
extraData | Uint8Array |
|
Listen:
* |
Mempool#transaction-added |
* |
Mempool#transaction-ready |