示例#1
0
文件: rdb.go 项目: rubblelabs/rocksdb
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
}
示例#2
0
文件: rdb.go 项目: rubblelabs/rocksdb
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
}