Commit c5d14421 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

style(merkle): move var dec closer to use

parent a604200d
......@@ -308,14 +308,12 @@ func (ds *dagService) GetDAG(ctx context.Context, root *Node) <-chan *Node {
sig := make(chan *Node)
go func() {
var keys []u.Key
nodes := make([]*Node, len(root.Links))
for _, lnk := range root.Links {
keys = append(keys, u.Key(lnk.Hash))
}
blkchan := ds.Blocks.GetBlocks(ctx, keys)
nodes := make([]*Node, len(root.Links))
next := 0
for blk := range blkchan {
i, err := FindLink(root, blk.Key(), nodes)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment