Exemple #1
0
func getHeight() {
	height, err := factom.GetDBlockHeight()
	if err != nil {
		errorln(err)
		return
	}
	fmt.Printf("DirectoryBlockHeight=%d\n", height)
}
Exemple #2
0
// Height transactions <address list>
func (Height) Execute(state IState, args []string) (err error) {
	h, err := factom.GetDBlockHeight()
	if err != nil {
		return fmt.Errorf("Failed to contact the Factom Network")
	} else {
		fmt.Printf("DirectoryBlockHeight=%d\n", h)
	}
	return nil
}