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
Show file Open project: TangibleCryptography/BitSharper Class Usage Examples

Public Methods

Method 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

Method Description
AllPeers ( ) : IEnumerable
ConvertAddress ( uint seed ) : IPAddress
NextPeer ( ) : EndPoint

Method Details

GetPeer() public method

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
return System.Net.EndPoint

GetPeers() public method

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

SeedPeers() public method

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