mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-15 22:10:12 +00:00

* [NOD-1579] Rename AcceptedTxIDs to AcceptedTransactionIDs. * [NOD-1579] Add InsertBlockResult to ValidateAndInsertBlock results. * [NOD-1593] Rename InsertBlockResult to BlockInsertionResult. * [NOD-1593] Add SelectedParentChainChanges to AddBlockToVirtual's result. * [NOD-1593] Implement findSelectedParentChainChanges. * [NOD-1593] Implement TestFindSelectedParentChainChanges. * [NOD-1593] Fix a string. * [NOD-1593] Finish implementing TestFindSelectedParentChainChanges. * [NOD-1593] Fix merge errors. * [NOD-1593] Fix merge errors. * [NOD-1593] Rename findSelectedParentChainChanges to calculateSelectedParentChainChanges. * [NOD-1593] Expand TestCalculateSelectedParentChainChanges.
13 lines
369 B
Go
13 lines
369 B
Go
package externalapi
|
|
|
|
// BlockInsertionResult is auxiliary data returned from ValidateAndInsertBlock
|
|
type BlockInsertionResult struct {
|
|
SelectedParentChainChanges *SelectedParentChainChanges
|
|
}
|
|
|
|
// SelectedParentChainChanges is the set of changes made to the selected parent chain
|
|
type SelectedParentChainChanges struct {
|
|
Added []*DomainHash
|
|
Removed []*DomainHash
|
|
}
|