multi: rename key_send, key-send and key send to keysend
This commit is contained in:
13 files changed
+638
-637
No files matched your search
@@ -140,7 +140,7 @@ func testSingleHopInvoice(net *lntest.NetworkHarness, t *harnessTest) {
|
||||
t.Fatalf(err.Error())
|
||||
}
|
||||
|
||||
// Next send a key send payment.
|
||||
// Next send a keysend payment.
|
||||
keySendPreimage := lntypes.Preimage{3, 4, 5, 11}
|
||||
keySendHash := keySendPreimage.Hash()
|
||||
|
||||
@@ -162,7 +162,7 @@ func testSingleHopInvoice(net *lntest.NetworkHarness, t *harnessTest) {
|
||||
t.Fatalf("error when attempting recv: %v", resp.PaymentError)
|
||||
}
|
||||
|
||||
// The key send payment should also have succeeded, with the balances
|
||||
// The keysend payment should also have succeeded, with the balances
|
||||
// being update accordingly.
|
||||
err = wait.NoError(
|
||||
assertAmountSent(3*paymentAmt, net.Alice, net.Bob),
|
||||
|
||||
+4
-4
@@ -228,7 +228,7 @@ func (cfg NodeConfig) genArgs() []string {
|
||||
}
|
||||
|
||||
if cfg.AcceptKeySend {
|
||||
args = append(args, "--accept-key-send")
|
||||
args = append(args, "--accept-keysend")
|
||||
}
|
||||
|
||||
return args
|
||||
@@ -317,9 +317,9 @@ func newNode(cfg NodeConfig) (*HarnessNode, error) {
|
||||
|
||||
cfg.P2PPort, cfg.RPCPort, cfg.RESTPort, cfg.ProfilePort = generateListeningPorts()
|
||||
|
||||
// Run all tests with accept key send. The key send code is very
|
||||
// isolated and it is highly unlikely that it would affect regular
|
||||
// itests when enabled.
|
||||
// Run all tests with accept keysend. The keysend code is very isolated
|
||||
// and it is highly unlikely that it would affect regular itests when
|
||||
// enabled.
|
||||
cfg.AcceptKeySend = true
|
||||
|
||||
numActiveNodesMtx.Lock()
|
||||
|
||||
Reference in new issue
Block a user