mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-02 05:03:08 +00:00
rename LedgerState.head to LedgerState.block
This commit is contained in:
parent
b8966762e0
commit
1420117e9a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
.venv
|
||||
|
||||
__pycache__
|
||||
__pycache__
|
||||
|
||||
@ -143,7 +143,7 @@ class LedgerState:
|
||||
A snapshot of the ledger state up to some height
|
||||
"""
|
||||
|
||||
height: int = None
|
||||
block: Id = None
|
||||
nonce: bytes = None
|
||||
total_stake: int = None
|
||||
|
||||
@ -216,8 +216,7 @@ class Leader:
|
||||
return r < MOCK_LEADER_VRF.ORDER * phi(f, relative_stake)
|
||||
|
||||
def propose_block(self, slot: Slot, parent: BlockHeader) -> BlockHeader:
|
||||
assert self.is_leader_at(slot)
|
||||
return BlockHeader(parent=parent.id(), slot=slot, _id=Id(b"TODO"))
|
||||
return BlockHeader(parent=parent.id(), slot=slot)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user