mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-09 16:43:10 +00:00
add some TODOs
This commit is contained in:
parent
3d80f68381
commit
e9c9e976a0
@ -26,6 +26,7 @@ class TestNode:
|
||||
def on_slot(self, slot: Slot) -> BlockHeader | None:
|
||||
parent = self.follower.tip_id()
|
||||
epoch_state = self.epoch_state(slot)
|
||||
# TODO: use the correct leader commitment set
|
||||
if leader_proof := self.leader.try_prove_slot_leader(epoch_state, slot, {self.leader.coin.commitment()}):
|
||||
orphans = self.follower.unimported_orphans(parent)
|
||||
self.leader.coin = self.leader.coin.evolve()
|
||||
@ -72,7 +73,7 @@ def mk_block(
|
||||
parent=parent,
|
||||
content_size=len(content),
|
||||
content_id=sha256(content).digest(),
|
||||
# TODO: replace with correct values if necessary
|
||||
# TODO: use the correct leader commitment set
|
||||
leader_proof=LeaderProof.new(Slot(slot), bytes(32), 2**256, 0, {coin.commitment()}, coin),
|
||||
orphaned_proofs=orphaned_proofs,
|
||||
)
|
||||
|
||||
@ -42,6 +42,7 @@ class TestLeader(TestCase):
|
||||
# interval `p +- margin_of_error` with high probabiltiy
|
||||
leader_rate = (
|
||||
sum(
|
||||
# TODO: use the correct leader commitment set
|
||||
l.try_prove_slot_leader(epoch, Slot(slot), {coin.commitment()}) is not None
|
||||
for slot in range(N)
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user