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

* [NOD-1388] Write a deterministic test that reproduces the crash. * [NOD-1388] Fix a typo. * [NOD-1388] Use isInPastOfAny in addValidTip instead of just checking the parents. * [NOD-1388] Add a json representation of the crashing DAG. * [NOD-1388] Remove crash_test.go. * [NOD-1388] Change variable name, add a comment. * [NOD-1388] Rephrase a comment.
127 lines
2.1 KiB
JSON
127 lines
2.1 KiB
JSON
{
|
|
"K": 18,
|
|
"GenesisID": "786",
|
|
"ExpectedReds": [],
|
|
"Blocks": [
|
|
{
|
|
"ID": "21d",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "786",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"786"
|
|
],
|
|
"Parents": [
|
|
"786"
|
|
]
|
|
},
|
|
{
|
|
"ID": "6ef",
|
|
"ExpectedScore": 2,
|
|
"ExpectedSelectedParent": "21d",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"21d"
|
|
],
|
|
"Parents": [
|
|
"21d"
|
|
]
|
|
},
|
|
{
|
|
"ID": "c98",
|
|
"ExpectedScore": 3,
|
|
"ExpectedSelectedParent": "6ef",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"6ef"
|
|
],
|
|
"Parents": [
|
|
"6ef"
|
|
]
|
|
},
|
|
{
|
|
"ID": "d1c",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "786",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"786"
|
|
],
|
|
"Parents": [
|
|
"786"
|
|
]
|
|
},
|
|
{
|
|
"ID": "ec9",
|
|
"ExpectedScore": 5,
|
|
"ExpectedSelectedParent": "c98",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"c98",
|
|
"d1c"
|
|
],
|
|
"Parents": [
|
|
"d1c",
|
|
"c98"
|
|
]
|
|
},
|
|
{
|
|
"ID": "154",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "786",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"786"
|
|
],
|
|
"Parents": [
|
|
"786"
|
|
]
|
|
},
|
|
{
|
|
"ID": "6c7",
|
|
"ExpectedScore": 4,
|
|
"ExpectedSelectedParent": "154",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"154",
|
|
"d1c",
|
|
"21d"
|
|
],
|
|
"Parents": [
|
|
"d1c",
|
|
"21d",
|
|
"154"
|
|
]
|
|
},
|
|
{
|
|
"ID": "015",
|
|
"ExpectedScore": 8,
|
|
"ExpectedSelectedParent": "ec9",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"ec9",
|
|
"154",
|
|
"6c7"
|
|
],
|
|
"Parents": [
|
|
"ec9",
|
|
"6c7"
|
|
]
|
|
},
|
|
{
|
|
"ID": "crash",
|
|
"ExpectedScore": 6,
|
|
"ExpectedSelectedParent": "6c7",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"6c7",
|
|
"6ef"
|
|
],
|
|
"Parents": [
|
|
"6ef",
|
|
"6c7"
|
|
]
|
|
}
|
|
]
|
|
}
|