multi: add default conf targt in SendCoins/SendMany/OpenChannel/CloseChannel

This commit is contained in:
yyforyongyu
2024-04-26 02:34:25 +08:00
parent 2089a88f4b
commit d0441a2a29
3 changed files with 72 additions and 16 deletions

View File

@@ -815,13 +815,18 @@ func testSweepAllCoins(ht *lntest.HarnessTest) {
TargetConf: 6,
})
// TODO(yy): we still allow default values to be used when neither conf
// target or fee rate is set in 0.18.0. When future release forbidden
// this behavior, we should revive the test below, which asserts either
// conf target or fee rate is set.
//
// Send coins to a compatible address without specifying fee rate or
// conf target.
ainz.RPC.SendCoinsAssertErr(&lnrpc.SendCoinsRequest{
Addr: ht.Miner.NewMinerAddress().String(),
SendAll: true,
Label: sendCoinsLabel,
})
// ainz.RPC.SendCoinsAssertErr(&lnrpc.SendCoinsRequest{
// Addr: ht.Miner.NewMinerAddress().String(),
// SendAll: true,
// Label: sendCoinsLabel,
// })
// Send coins to a compatible address.
ainz.RPC.SendCoins(&lnrpc.SendCoinsRequest{