Interface IHastingsOriginator
Assembly: Catalyst.Abstractions.dll
Syntax
public interface IHastingsOriginator
Properties
|
Improve this Doc
View Source
Neighbours
A readonly list of the neighbours considered for at that stage of the node.
This list will be used to progress if any of them is valid (HasValidCandidate()).
Declaration
INeighbours Neighbours { get; }
Property Value
|
Improve this Doc
View Source
Peer
Declaration
Property Value
|
Improve this Doc
View Source
PnrCorrelationId
Every time you the walk moves forward with a new Peer, it will ask that peer for
its neighbours sending a new .
This field stores the details for that request.
Declaration
ICorrelationId PnrCorrelationId { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreateMemento()
creates a memento from current state
Declaration
IHastingsMemento CreateMemento()
Returns
|
Improve this Doc
View Source
HasValidCandidate()
Find out if the current state has any neighbour in a Responsive
Declaration
Returns
Type |
Description |
System.Boolean |
true
if Neighbours contains a Responsive neighbour,
false
otherwise.
|
|
Improve this Doc
View Source
RestoreMemento(IHastingsMemento)
Restores the state from a memento
Declaration
void RestoreMemento(IHastingsMemento hastingsMemento)
Parameters