cmd/lncli: rename --draw to --render for describegraph
This commit is contained in:
parent
1ee4c661bc
commit
07f8dab560
@ -803,7 +803,7 @@ var DescribeGraphCommand = cli.Command{
|
|||||||
Usage: "describegraph",
|
Usage: "describegraph",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "draw",
|
Name: "render",
|
||||||
Usage: "If true, then an image of graph will be generated and displayed. The generated image is stored within the current directory with a file name of 'graph.svg'",
|
Usage: "If true, then an image of graph will be generated and displayed. The generated image is stored within the current directory with a file name of 'graph.svg'",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -823,7 +823,7 @@ func describeGraph(ctx *cli.Context) error {
|
|||||||
|
|
||||||
// If the draw flag is on, then we'll use the 'dot' command to create a
|
// If the draw flag is on, then we'll use the 'dot' command to create a
|
||||||
// visualization of the graph itself.
|
// visualization of the graph itself.
|
||||||
if ctx.Bool("draw") {
|
if ctx.Bool("render") {
|
||||||
return drawChannelGraph(graph)
|
return drawChannelGraph(graph)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -795,7 +795,7 @@ func testMultiHopPayments(net *networkHarness, t *harnessTest) {
|
|||||||
// Carol's routing table should show a path from Carol -> Alice -> Bob,
|
// Carol's routing table should show a path from Carol -> Alice -> Bob,
|
||||||
// with the two channels above recognized as the only links within the
|
// with the two channels above recognized as the only links within the
|
||||||
// network.
|
// network.
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second * 2)
|
||||||
req := &lnrpc.ChannelGraphRequest{}
|
req := &lnrpc.ChannelGraphRequest{}
|
||||||
chanGraph, err := carol.DescribeGraph(ctxb, req)
|
chanGraph, err := carol.DescribeGraph(ctxb, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -1508,6 +1508,7 @@ func testHtlcErrorPropagation(net *networkHarness, t *harnessTest) {
|
|||||||
Dest: carol.PubKey[:],
|
Dest: carol.PubKey[:],
|
||||||
Amt: payAmt,
|
Amt: payAmt,
|
||||||
}
|
}
|
||||||
|
time.Sleep(time.Millisecond * 500)
|
||||||
if err := alicePayStream.Send(sendReq); err != nil {
|
if err := alicePayStream.Send(sendReq); err != nil {
|
||||||
t.Fatalf("unable to send payment: %v", err)
|
t.Fatalf("unable to send payment: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user