| 146 | } |
| 147 | |
| 148 | type 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 | |
| 161 | type TXSET struct { |
| 162 | Txs [][]byte `cbor:"TXS"` |
nothing calls this directly
no outgoing calls
no test coverage detected