網(wǎng)易GoGolangBeego微服務(wù)基礎(chǔ)實戰(zhàn)
block的數(shù)據(jù)結(jié)構(gòu)(包括header,和body的數(shù)據(jù)結(jié)構(gòu))
type Header struct {
? ?ParentHash string //父hash
? ?Coinbase ? []byte //miner
? ?Timestamp ?int64 ?//區(qū)塊產(chǎn)生的時間戳
? ?Blockhash ?string //區(qū)塊hash
? ?Number ? ? int ? ?//區(qū)塊號
? ?Extradata ?[]byte //額外信息
? ?//todo:difficulty\gaslimit\gasused\nonce\totaldifficulty
? ?//todo:uncle\stateroot\Txhash\receipthash\bloom\}
?
標(biāo)簽: