NetworkAgent
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(blockchain: IBlockchain, addresses: PeerAddressBook, networkConfig: NetworkConfig, channel: PeerChannel) |
Member Summary
Public Members | ||
public get |
|
|
public get |
|
Method Summary
Public Methods | ||
public |
|
|
public |
requestAddresses(maxResults: *) |
Inherited Summary
From class Observable | ||
public static get |
WILDCARD: string: string |
|
public |
bubble(observable: Observable, types: ...string) |
|
public |
fire(type: string, args: ...*): Promise |
|
public |
off(type: string, id: number) |
|
public |
on(type: string, callback: Function): number |
Public Constructors
public constructor(blockchain: IBlockchain, addresses: PeerAddressBook, networkConfig: NetworkConfig, channel: PeerChannel) source
Override:
Observable#constructorParams:
Name | Type | Attribute | Description |
blockchain | IBlockchain | ||
addresses | PeerAddressBook | ||
networkConfig | NetworkConfig | ||
channel | PeerChannel |
Listen:
* |
PeerChannel#version |
* |
PeerChannel#verack |
* |
PeerChannel#addr |
* |
PeerChannel#getAddr |
* |
PeerChannel#ping |
* |
PeerChannel#pong |
* |
PeerChannel#close |