Developer table

From Litecoin Wiki
Jump to: navigation, search

Block structure

Field Description Size
Magic no value always 0xD9B4BEF9, see network IDs 4 bytes
Blocksize number of bytes following up to end of block 4 bytes
Blockheader Contains 6 elements, see block header 80 bytes
Transaction counter positive integer VI = VarInt 1 - 9 bytes
transactions the (non empty) list of transactions <Transaction counter>-many transactions


Field Purpose Updated when... Size (Bytes)
Version Block version number You upgrade the software and it specifies a new version 4
hashPrevBlock SHA-256d hash of the previous block header A new block comes in 32
hashMerkleRoot SHA-256d hash based on all of the transactions in the block A transaction is accepted 32
Time Current timestamp as seconds since 1970-01-01T00:00 UTC Every few seconds 4
Bits Current target in compact format The difficulty is adjusted 4
Nonce 32-bit number (starts at 0) A hash is tried (increments) 4


Associated Network NetworkID AKA Magic Number
Litecoin FBC0B6DB
Litecoin TestNet FCC1B7DC