C# Class BitSharper.Discovery.SeedPeers

SeedPeers stores a pre-determined list of Bitcoin node addresses. These nodes are selected based on being active on the network for a long period of time. The intention is to be a last resort way of finding a connection to the network, in case IRC and DNS fail. The list comes from the Bitcoin C++ source code.
Inheritance: IPeerDiscovery
Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Méthode Description
GetPeer ( ) : EndPoint

Acts as an iterator, returning the address of each node in the list sequentially. Once all the list has been iterated, null will be returned for each subsequent query.

GetPeers ( ) : IEnumerable

Returns an array containing all the Bitcoin nodes within the list.

SeedPeers ( NetworkParameters @params ) : System.Collections.Generic

Private Methods

Méthode Description
AllPeers ( ) : IEnumerable
ConvertAddress ( uint seed ) : IPAddress
NextPeer ( ) : EndPoint

Method Details

GetPeer() public méthode

Acts as an iterator, returning the address of each node in the list sequentially. Once all the list has been iterated, null will be returned for each subsequent query.
public GetPeer ( ) : EndPoint
Résultat System.Net.EndPoint

GetPeers() public méthode

Returns an array containing all the Bitcoin nodes within the list.
public GetPeers ( ) : IEnumerable
Résultat IEnumerable

SeedPeers() public méthode

public SeedPeers ( NetworkParameters @params ) : System.Collections.Generic
@params NetworkParameters
Résultat System.Collections.Generic