func (b *Blockchain) StoreBlock(block *primitives.Block) error {
	err := b.DB.SetBlock(*block)
	if err != nil {
		return err
	}

	return nil
}
// StoreBlock adds a block header to the current chain. The block should already
// have been validated by this point.
StoreBlock adds a block header to the current chain. The block should already
have been validated by this point.
// StoreBlock adds a block header to the current chain . The block should already // have been validated by this point .
func (b *Blockchain) StoreBlock(block *primitives.Block) error {
	err := b.DB.SetBlock(*block)
	if err != nil {
		return err
	}
	return nil
}
func ( b * Blockchain ) StoreBlock ( block * primitives . Block ) error { err := b . DB . SetBlock ( * block ) if err != nil { return err } return nil }
StoreBlock adds a block header to the current chain.
StoreBlock adds a block header to the current chain .