You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
616 B

package blocks
import (
"io"
)
// BlockHeader
type BlockHeader struct {
Name string
Height uint64
Version uint8
Fees uint64
Time uint64
PrevBlockHash []byte
ValidationHash []byte
DataHash []byte
}
func (self *BlockHeader) WriteTo(w io.Writer) (n int64, err error) {
return 0, nil
}
// Block
type Block struct {
Header *BlockHeader
Validation *BlockValidation
Data *BlockData
//Checkpoint *BlockCheckpoint
}
func (self *Block) Validate() bool {
return false
}