func getHeight() { height, err := factom.GetDBlockHeight() if err != nil { errorln(err) return } fmt.Printf("DirectoryBlockHeight=%d\n", height) }
// 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 }