mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
watchtower/multi: use sane sweep fee rate in unit tests
This commit is contained in:
@@ -172,7 +172,7 @@ var createSessionTests = []createSessionTestCase{
|
||||
MaxUpdates: 1000,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
expReply: &wtwire.CreateSessionReply{
|
||||
Code: wtwire.CodeOK,
|
||||
@@ -194,7 +194,7 @@ var createSessionTests = []createSessionTestCase{
|
||||
MaxUpdates: 1000,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
expReply: &wtwire.CreateSessionReply{
|
||||
Code: wtwire.CodeOK,
|
||||
@@ -218,7 +218,7 @@ var createSessionTests = []createSessionTestCase{
|
||||
MaxUpdates: 1000,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
expReply: &wtwire.CreateSessionReply{
|
||||
Code: wtwire.CodeOK,
|
||||
@@ -240,7 +240,7 @@ var createSessionTests = []createSessionTestCase{
|
||||
MaxUpdates: 1000,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
expReply: &wtwire.CreateSessionReply{
|
||||
Code: wtwire.CreateSessionCodeRejectBlobType,
|
||||
@@ -355,7 +355,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 3,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -385,7 +385,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 4,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 2, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -409,7 +409,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 4,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -437,7 +437,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 4,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -465,7 +465,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 4,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -495,7 +495,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 4,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -525,7 +525,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 4,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -556,7 +556,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 3,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 1, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -586,7 +586,7 @@ var stateUpdateTests = []stateUpdateTestCase{
|
||||
MaxUpdates: 3,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
},
|
||||
updates: []*wtwire.StateUpdate{
|
||||
{SeqNum: 0, LastApplied: 0, EncryptedBlob: testBlob},
|
||||
@@ -723,7 +723,7 @@ func TestServerDeleteSession(t *testing.T) {
|
||||
MaxUpdates: 1000,
|
||||
RewardBase: 0,
|
||||
RewardRate: 0,
|
||||
SweepFeeRate: 1,
|
||||
SweepFeeRate: 10000,
|
||||
}
|
||||
|
||||
const timeoutDuration = 100 * time.Millisecond
|
||||
|
||||
Reference in New Issue
Block a user