mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-23 07:16:47 +00:00

* Add selected chain store and optimize block locator with it * Fix build error * Fix comments * Fix IsStaged * Rename CalculateSelectedParentChainChanges to CalculateChainPath and SelectedParentChainChanges->SelectedChainPath * Use binary.LittleEndian directly to allow compiler optimizations * Remove boolean from HeadersSelectedChainStore interface * Prevent endless loop in block locator
13 lines
350 B
Go
13 lines
350 B
Go
package externalapi
|
|
|
|
// BlockInsertionResult is auxiliary data returned from ValidateAndInsertBlock
|
|
type BlockInsertionResult struct {
|
|
VirtualSelectedParentChainChanges *SelectedChainPath
|
|
}
|
|
|
|
// SelectedChainPath is a path the of the selected chains between two blocks.
|
|
type SelectedChainPath struct {
|
|
Added []*DomainHash
|
|
Removed []*DomainHash
|
|
}
|