Skip to content

Commit 6cc0c6c

Browse files
committed
only extended and shared nodesets
1 parent 52864dc commit 6cc0c6c

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

framework/components/simple_node_set/node_set.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,6 @@ type Output struct {
2121
CLNodes []*clnode.Output `toml:"cl_nodes"`
2222
}
2323

24-
// NewNodeSet creates a simple set of CL nodes
25-
func NewNodeSet(in *Input, bcOut *blockchain.Output, fakeUrl string) (*Output, error) {
26-
if in.Out.UseCache {
27-
return in.Out, nil
28-
}
29-
nodeOuts := make([]*clnode.Output, 0)
30-
for i := 0; i < in.Nodes; i++ {
31-
net, err := clnode.NewNetworkCfgOneNetworkAllNodes(bcOut)
32-
if err != nil {
33-
return nil, err
34-
}
35-
newIn := in.NodeSpec
36-
newIn.Node.TestConfigOverrides = net
37-
newIn.DataProviderURL = fakeUrl
38-
newIn.Out = nil
39-
o, err := clnode.NewNodeWithDB(newIn)
40-
if err != nil {
41-
return nil, err
42-
}
43-
nodeOuts = append(nodeOuts, o)
44-
}
45-
out := &Output{
46-
UseCache: true,
47-
CLNodes: nodeOuts,
48-
}
49-
in.Out = out
50-
return out, nil
51-
}
52-
5324
func NewSharedDBNodeSet(in *Input, bcOut *blockchain.Output, fakeUrl string) (*Output, error) {
5425
if in.Out.UseCache {
5526
return in.Out, nil

0 commit comments

Comments
 (0)