Class BlockCandidateTable<T>
Inheritance
BlockCandidateTable<T>
Assembly: Libplanet.Net.dll
Syntax
public class BlockCandidateTable<T> : object where T : IAction, new()
Type Parameters
Name |
Description |
T |
An IAction type. It should match
to Block<T>'s type parameter.
|
Constructors
|
Improve this Doc
View Source
BlockCandidateTable()
Declaration
public BlockCandidateTable()
Properties
|
Improve this Doc
View Source
Count
Declaration
public long Count { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(BlockHeader, IEnumerable<Block<T>>)
Declaration
public void Add(BlockHeader blockHeader, IEnumerable<Block<T>> blocks)
Parameters
Type |
Name |
Description |
BlockHeader |
blockHeader |
This is the header of the BlockChain<T>
tip at the time of downloading the blocks.
|
IEnumerable<Block<T>> |
blocks |
List of downloaded Block<T>.
|
|
Improve this Doc
View Source
Any()
Declaration
Returns
|
Improve this Doc
View Source
Cleanup(Func<IBlockExcerpt, Boolean>)
Declaration
public void Cleanup(Func<IBlockExcerpt, bool> predicate)
Parameters
|
Improve this Doc
View Source
GetCurrentRoundCandidate(BlockHeader)
Get the Block<T>s which are in the table.
Declaration
public SortedList<long, Block<T>>? GetCurrentRoundCandidate(BlockHeader thisRoundTip)
Parameters
Returns
|
Improve this Doc
View Source
TryRemove(BlockHeader)
Declaration
public bool TryRemove(BlockHeader header)
Parameters
Returns