mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-05 14:43:11 +00:00
Use plain carnot tree for carnot tree tests
This commit is contained in:
parent
3277aba5c6
commit
9afb8fb4dc
@ -1,12 +1,12 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from tree_overlay import CarnotOverlay
|
||||
from tree_overlay import CarnotOverlay, CarnotTree
|
||||
|
||||
|
||||
class TestCarnotTree(TestCase):
|
||||
def setUp(self) -> None:
|
||||
self.nodes = [int.to_bytes(i, length=32, byteorder="little") for i in range(10)]
|
||||
self.tree = CarnotOverlay(self.nodes, self.nodes[0], b"0"*32, 3).carnot_tree
|
||||
self.tree = CarnotTree(self.nodes, 3)
|
||||
|
||||
def test_parenting(self):
|
||||
root = self.tree.inner_committees[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user