区块链
block
struct block: public block_header
{
private:
// hash cash
mutable std::atomic<bool> hash_valid;
public:
transaction miner_tx;
std::vector<crypto::hash> tx_hashes;
// hash cash
mutable crypto::hash hash;
};block_header
struct block_header
{
uint8_t major_version;
uint8_t minor_version; // now used as a voting mechanism, rather than how this particular block is built
uint64_t timestamp;
crypto::hash prev_id;
uint32_t nonce;
};transaction
transaction_prefix
txin_v
tx_out
inputs
txout_target_v
outputs
cryptonote
Last updated
Was this helpful?