mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Merge pull request #34 from daglabs/dev-62-add-phantom-constructs-to-blocknode
Dev 62 add phantom constructs to blocknode
This commit is contained in:
commit
ba0b4f61f3
@ -75,8 +75,24 @@ type blockNode struct {
|
||||
parents blockSet
|
||||
|
||||
// selectedParent is the selected parent for this node.
|
||||
// The selected parent is the parent that if chosen will maximize the blue score of this block
|
||||
selectedParent *blockNode
|
||||
|
||||
// children are all the blocks that refer to this block as a parent
|
||||
children blockSet
|
||||
|
||||
// diffChild is the child that UTXODiff will be built from
|
||||
diffChild *blockNode
|
||||
|
||||
// blues are all blue blocks in this block's worldview that are in its selected parent anticone
|
||||
blues blockSet
|
||||
|
||||
// blueScore is the count of all the blue blocks in this block's past (including itself)
|
||||
blueScore int64
|
||||
|
||||
// utxoDiff is the UTXO of the block represented as a diff to the virtual block
|
||||
utxoDiff UtxoViewpoint
|
||||
|
||||
// hash is the double sha 256 of the block.
|
||||
hash daghash.Hash
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user