MCPcopy Create free account
hub / github.com/deroproject/derohe / Block_Chunk

Struct Block_Chunk

p2p/wire_structs.go:148–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148type Block_Chunk struct {
149 Type uint16 `cbor:"T"` // used for denote object type
150 HHash [32]byte `cbor:"BLH"` // used for checks
151 BLID [32]byte `cbor:"BLID"` // blid for which this chunk belongs
152 DSIZE uint `cbor:"DSIZE"` // Datasize in bytes
153 BLOCK []byte `cbor:"BL"` // block itself,together with miniblock, and txhashes, txs are part of data
154 CHUNK_COUNT uint `cbor:"CC"` // total chunks
155 CHUNK_NEED uint `cbor:"CN"` // chunks needed to decode the data
156 CHUNK_HASH []uint64 `cbor:"CH"` // all chubk hashes truncated to 8 bytes
157 CHUNK_ID uint `cbor:"CID"` // this chunkid, 0 based
158 CHUNK_DATA []byte `cbor:"CD"` // chunkdata
159}
160
161type TXSET struct {
162 Txs [][]byte `cbor:"TXS"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected