mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
[DEV-62] add comments to new phantom constructs in blocknode
This commit is contained in:
parent
9be0474913
commit
c8db39e7d9
@ -75,6 +75,7 @@ type blockNode struct {
|
|||||||
parents blockSet
|
parents blockSet
|
||||||
|
|
||||||
// selectedParent is the selected parent for this node.
|
// 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
|
selectedParent *blockNode
|
||||||
|
|
||||||
// children are the all the blocks that refer to this block as a parent
|
// children are the all the blocks that refer to this block as a parent
|
||||||
@ -83,10 +84,10 @@ type blockNode struct {
|
|||||||
// diffChild is the child that UTXODiff will be built from
|
// diffChild is the child that UTXODiff will be built from
|
||||||
diffChild *blockNode
|
diffChild *blockNode
|
||||||
|
|
||||||
// TODO: Explain shortly what is blues
|
// blues are all blue blocks in this block's worldview that are in its selected parent anticone
|
||||||
blues blockSet
|
blues blockSet
|
||||||
|
|
||||||
// TODO: Explain shortly what is blue score
|
// blueScore is the count of all the blue blocks in this block past (including itself)
|
||||||
blueScore int64
|
blueScore int64
|
||||||
|
|
||||||
// utxoDiff is the UTXO of the block represented as a diff to the virtual block
|
// utxoDiff is the UTXO of the block represented as a diff to the virtual block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user