Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 952 Bytes

File metadata and controls

19 lines (15 loc) · 952 Bytes

Timelocks

All about Timelocks you can find here: Timelocks

There are some changes we have implemented on Kaspa:

  • Locktime: (absolute locktimes)

    • 0                                  No locktime
    • < 500 billion                 Block DAA score
    • >= 500 billion               Unix timestamp (milliseconds)
  • Sequence: (relative locktimes)

    • bit 63:
      • 0 - sequence lock enabled
      • 1 - sequence lock disabled
    • bits 0-31: actual relative locktime, unsigned int32
  • Disable relative time-based timelocks (Ignoring the type flag)

  • Adds special functions to support timelocks when building a script: AddLockTimeNumber, AddSequenceNumber.