Skip to content
CryptoManiac edited this page Feb 18, 2014 · 1 revision

Kernel structure

Coinstake kernel it's a virtual structure which created during proof-of-stake block validation attempt. This structure exists in database and memory, but not on the network. The kernel parameters are described in the following table.

Field Type sizeof Description
nStakeModifier unsigned long int 8 Deterministic [[modifier
nTimeBlockFrom unsigned int 4 Timestamp for block which provided previous transaction, prevent nodes from guessing a good timestamp to generate transaction for future advantage.
nTxPrevOffset unsigned int 4 Offset of previous transaction inside the block, used to reduce the chance of nodes generating kernel coinstake at the same time.
nTxPrevTime unsigned int 4 Timestamp of previous transaction, used to reduce the chance of nodes generating coinstake kernel at the same time.
nPrevoutNum unsigned int 4 Output number of previous transaction, used to reduce the chance of nodes generating coinstake kernel at the same time.
nTimeTx unsigned int 4 Current timestamp
Clone this wiki locally