func nodeFields(n *ledger.RadixNode, ledgerSequence uint32) ([]interface{}, error) { nodeId, nodeValue, err := data.Node(n.Node) if err != nil { return nil, err } return []interface{}{ledgerSequence, n.Node.GetType(), n.Depth, nodeId, nodeValue}, nil }
func outputLedger(h data.Storer) error { hash, value, err := data.Node(h) if err != nil { return err } _, err = fmt.Printf("%s,%X\n", hash, value) return err }