func (c *Chain) Genesis() *BlockNode {
	c.lock.Lock()
	defer c.lock.Unlock()
	if len(c.chain) > 0 {
		return c.chain[0]
	}
	return nil
}
// Genesis gets the genesis of the chain
Genesis gets the genesis of the chain
// Genesis gets the genesis of the chain
func (c *Chain) Genesis() *BlockNode {
	c.lock.Lock()
	defer c.lock.Unlock()
	if len(c.chain) > 0 {
		return c.chain[0]
	}
	return nil
}
func ( c * Chain ) Genesis ( ) * BlockNode { c . lock . Lock ( ) defer c . lock . Unlock ( ) if len ( c . chain ) > 0 { return c . chain [ 0 ] } return nil }
Genesis gets the genesis of the chain
Genesis gets the genesis of the chain