mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-03-21 15:49:23 +00:00
commit3830df34b2Merge:46dc2e97717e7819c2Author: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 16:29:51 2020 +0200 Merge pull request #1170 from kaspanet/tal-ghost-fix Fix GhostDAG tests and jsons commit17e7819c27Author: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 16:24:01 2020 +0200 Remove non-json ghostdag tests commit4bebb1d96aAuthor: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 13:26:06 2020 +0200 Add a coment above tal's ghostdag2 impl commitfaf21a042eAuthor: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 13:20:08 2020 +0200 fix the interfaces after merge commita8b7a25b2eMerge:af91b69b2f1c6df48cAuthor: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 13:19:08 2020 +0200 Merge branch 'v0.8.2-dev' into tal-ghost-fix commitaf91b69b20Author: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 13:18:41 2020 +0200 Fix the non-json tests commitc56f34b73bAuthor: Elichai Turkel <elichai.turkel@gmail.com> Date: Tue Dec 1 13:18:17 2020 +0200 Fix the jsons commit46dc2e9773Author: tal <tal@daglabs.com> Date: Mon Nov 30 17:15:20 2020 +0200 [NOD - 1143] Cosmetics changes. commitb28e5ce816Author: tal <tal@daglabs.com> Date: Mon Nov 30 15:48:08 2020 +0200 [#1126] Place selectedParent to be first on blueMergeSet. commit4b56ed2da9Author: tal <tal@daglabs.com> Date: Mon Nov 30 14:51:50 2020 +0200 [#1126] Change pacement between blockRight and blockLeft . commitb09f31be93Merge:e17a98b7b0db39833fAuthor: talelbaz <63008512+talelbaz@users.noreply.github.com> Date: Mon Nov 30 14:30:22 2020 +0200 Merge pull request #1162 from kaspanet/new-jsons Update the dag json tests commite17a98b7baAuthor: tal <tal@daglabs.com> Date: Mon Nov 30 14:08:25 2020 +0200 [#1126] Use WALK function in tests & cosmetic changes. commit0db39833f3Author: Elichai Turkel <elichai.turkel@gmail.com> Date: Mon Nov 30 12:20:13 2020 +0200 Update the dag json tests commit5a3da43dd4Author: tal <tal@daglabs.com> Date: Sun Nov 29 12:03:37 2020 +0200 [NOD-1433] Remove unneccessry code. commita6cde558acAuthor: tal <tal@daglabs.com> Date: Mon Nov 23 17:05:56 2020 +0200 [NOD-1433] Change "Stage" sig function according to the new interface - added error as a return type. commit07859b6218Author: tal <tal@daglabs.com> Date: Mon Nov 23 17:03:26 2020 +0200 [NOD-1433] Print formats changed & Cosmetics code changes. commite1a851664eAuthor: tal <tal@daglabs.com> Date: Sun Nov 15 17:34:59 2020 +0200 [NOD-1433] Travers the tests dir and run each test. commit4c7474edc1Author: tal <tal@daglabs.com> Date: Mon Nov 9 12:44:53 2020 +0200 [NOD-1433] Travers the tests dir and run each test. commit89dd1e61d3Author: tal <tal@daglabs.com> Date: Mon Nov 9 11:48:36 2020 +0200 [NOD-1433] Change implementation to adjust genesis's score 0. Also, keep changing the test file to fit the new implementation. commit6acdcd17deAuthor: tal <tal@daglabs.com> Date: Sun Nov 8 17:07:22 2020 +0200 [NOD-1433] New test was added(Test 6). commitbf23889317Author: tal <tal@daglabs.com> Date: Sun Nov 8 14:59:36 2020 +0200 Fix golint errors commit79ff990b5fAuthor: tal <tal@daglabs.com> Date: Sun Nov 8 14:47:12 2020 +0200 added "Optimize imports". commit73d0128f63Author: tal <tal@daglabs.com> Date: Sun Nov 8 13:03:22 2020 +0200 Added an implementation factory. commit61ca8b2e7eAuthor: tal <tal@daglabs.com> Date: Thu Nov 5 16:03:18 2020 +0200 1. impl - choose the highest hash. 2. test - changed the test accordingly. commitef0943ca29Author: tal <tal@daglabs.com> Date: Thu Oct 29 18:00:45 2020 +0200 Update Tests commit6e5936abffAuthor: tal <tal@daglabs.com> Date: Tue Oct 27 10:22:45 2020 +0200 Change to the new API commit5a70dc48b3Author: tal <tal@daglabs.com> Date: Mon Oct 26 18:35:31 2020 +0200 1. Added tests for ori commit2b9f78353fAuthor: tal <tal@daglabs.com> Date: Mon Oct 26 13:04:37 2020 +0200 1. Added structure "isolatedTest" {k, test} 2. Added for loop on the tests. 3. New test - Test 5. commitc026d7b7a2Author: tal <tal@daglabs.com> Date: Thu Oct 22 17:35:56 2020 +0300 Fix bugs in the GHOSTDAG : counters, conntains and isAncestorOf. Added more tests. commit74493b27d2Author: tal <tal@daglabs.com> Date: Thu Oct 22 16:49:27 2020 +0300 added compare between Hashes commitf689253463Author: tal <tal@daglabs.com> Date: Thu Oct 22 11:49:01 2020 +0300 added compare between Hashes commit66be07f616Author: tal <tal@daglabs.com> Date: Mon Oct 19 18:42:40 2020 +0300 First test - pass. commit327f34f2dcAuthor: tal <tal@daglabs.com> Date: Mon Oct 19 15:20:27 2020 +0300 Add alternative implementation for ghostdag. change all function's signatures (add error type) commitfd2ea3d84aAuthor: tal <tal@daglabs.com> Date: Mon Oct 19 11:57:05 2020 +0300 add alternative implementation for ghostdag
253 lines
5.5 KiB
JSON
253 lines
5.5 KiB
JSON
{
|
|
"K": 4,
|
|
"GenesisID": "A",
|
|
"ExpectedReds": [
|
|
"Q",
|
|
"H",
|
|
"I"
|
|
],
|
|
"Blocks": [
|
|
{
|
|
"ID": "B",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "A",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"A"
|
|
],
|
|
"Parents": [
|
|
"A"
|
|
]
|
|
},
|
|
{
|
|
"ID": "C",
|
|
"ExpectedScore": 2,
|
|
"ExpectedSelectedParent": "B",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"B"
|
|
],
|
|
"Parents": [
|
|
"B"
|
|
]
|
|
},
|
|
{
|
|
"ID": "D",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "A",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"A"
|
|
],
|
|
"Parents": [
|
|
"A"
|
|
]
|
|
},
|
|
{
|
|
"ID": "E",
|
|
"ExpectedScore": 4,
|
|
"ExpectedSelectedParent": "C",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"C",
|
|
"D"
|
|
],
|
|
"Parents": [
|
|
"C",
|
|
"D"
|
|
]
|
|
},
|
|
{
|
|
"ID": "F",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "A",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"A"
|
|
],
|
|
"Parents": [
|
|
"A"
|
|
]
|
|
},
|
|
{
|
|
"ID": "G",
|
|
"ExpectedScore": 2,
|
|
"ExpectedSelectedParent": "F",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"F"
|
|
],
|
|
"Parents": [
|
|
"F"
|
|
]
|
|
},
|
|
{
|
|
"ID": "H",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "A",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"A"
|
|
],
|
|
"Parents": [
|
|
"A"
|
|
]
|
|
},
|
|
{
|
|
"ID": "I",
|
|
"ExpectedScore": 1,
|
|
"ExpectedSelectedParent": "A",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"A"
|
|
],
|
|
"Parents": [
|
|
"A"
|
|
]
|
|
},
|
|
{
|
|
"ID": "J",
|
|
"ExpectedScore": 7,
|
|
"ExpectedSelectedParent": "E",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"E",
|
|
"F",
|
|
"G"
|
|
],
|
|
"Parents": [
|
|
"E",
|
|
"G"
|
|
]
|
|
},
|
|
{
|
|
"ID": "K",
|
|
"ExpectedScore": 8,
|
|
"ExpectedSelectedParent": "J",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"J"
|
|
],
|
|
"Parents": [
|
|
"J"
|
|
]
|
|
},
|
|
{
|
|
"ID": "L",
|
|
"ExpectedScore": 9,
|
|
"ExpectedSelectedParent": "K",
|
|
"ExpectedReds": ["I"],
|
|
"ExpectedBlues": [
|
|
"K"
|
|
],
|
|
"Parents": [
|
|
"I",
|
|
"K"
|
|
]
|
|
},
|
|
{
|
|
"ID": "M",
|
|
"ExpectedScore": 10,
|
|
"ExpectedSelectedParent": "L",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"L"
|
|
],
|
|
"Parents": [
|
|
"L"
|
|
]
|
|
},
|
|
{
|
|
"ID": "N",
|
|
"ExpectedScore": 11,
|
|
"ExpectedSelectedParent": "M",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"M"
|
|
],
|
|
"Parents": [
|
|
"M"
|
|
]
|
|
},
|
|
{
|
|
"ID": "O",
|
|
"ExpectedScore": 11,
|
|
"ExpectedSelectedParent": "M",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"M"
|
|
],
|
|
"Parents": [
|
|
"M"
|
|
]
|
|
},
|
|
{
|
|
"ID": "2",
|
|
"ExpectedScore": 11,
|
|
"ExpectedSelectedParent": "M",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"M"
|
|
],
|
|
"Parents": [
|
|
"M"
|
|
]
|
|
},
|
|
{
|
|
"ID": "Q",
|
|
"ExpectedScore": 11,
|
|
"ExpectedSelectedParent": "M",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"M"
|
|
],
|
|
"Parents": [
|
|
"M"
|
|
]
|
|
},
|
|
{
|
|
"ID": "R",
|
|
"ExpectedScore": 11,
|
|
"ExpectedSelectedParent": "M",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"M"
|
|
],
|
|
"Parents": [
|
|
"M"
|
|
]
|
|
},
|
|
{
|
|
"ID": "S",
|
|
"ExpectedScore": 12,
|
|
"ExpectedSelectedParent": "R",
|
|
"ExpectedReds": [],
|
|
"ExpectedBlues": [
|
|
"R"
|
|
],
|
|
"Parents": [
|
|
"R"
|
|
]
|
|
},
|
|
{
|
|
"ID": "T",
|
|
"ExpectedScore": 16,
|
|
"ExpectedSelectedParent": "S",
|
|
"ExpectedReds": ["Q"],
|
|
"ExpectedBlues": [
|
|
"S",
|
|
"2",
|
|
"N",
|
|
"O"
|
|
],
|
|
"Parents": [
|
|
"N",
|
|
"O",
|
|
"2",
|
|
"Q",
|
|
"S"
|
|
]
|
|
}
|
|
]
|
|
}
|