Closed greymistcube closed 2 years ago
I think GetBlockCommit(long index) should work as the following:
GetBlockCommit(long index)
Block<T>
index
null
index == Tip.Index
BlockCommit
index < Tip.Index
Block<T>.LastCommit
I'll take this for focusing and continuing the GetBlockCommit() work context.
GetBlockCommit()
Closed by #2553
I think
GetBlockCommit(long index)
should work as the following:Block<T>
of givenindex
.Block<T>
is a PoW block, returnnull
.Block<T>
is a PBFT block:index == Tip.Index
, then return theBlockCommit
cached.index < Tip.Index
, then return theBlock<T>.LastCommit
of the next block.