1
0

wallet: randomise locktime of transactions a bit. also check if stale. (#4967)

This commit is contained in:
ghost43
2019-01-16 18:51:59 +01:00
committed by GitHub
parent d5c8a0e0d0
commit dc19cf1fa1
3 changed files with 33 additions and 7 deletions

View File

@@ -426,6 +426,11 @@ class Blockchain(util.PrintError):
return None
return deserialize_header(h, height)
def header_at_tip(self) -> Optional[dict]:
"""Return latest header."""
height = self.height()
return self.read_header(height)
def get_hash(self, height: int) -> str:
def is_height_checkpoint():
within_cp_range = height <= constants.net.max_checkpoint()