diff --git a/watchtower/wtserver/server.go b/watchtower/wtserver/server.go index a30d6f32..957b2202 100644 --- a/watchtower/wtserver/server.go +++ b/watchtower/wtserver/server.go @@ -393,6 +393,7 @@ func (s *Server) handleCreateSession(peer Peer, id *wtdb.SessionID, Policy: wtpolicy.Policy{ BlobType: req.BlobType, MaxUpdates: req.MaxUpdates, + RewardBase: req.RewardBase, RewardRate: req.RewardRate, SweepFeeRate: req.SweepFeeRate, }, diff --git a/watchtower/wtserver/server_test.go b/watchtower/wtserver/server_test.go index d8a8911c..9631f39c 100644 --- a/watchtower/wtserver/server_test.go +++ b/watchtower/wtserver/server_test.go @@ -163,6 +163,7 @@ var createSessionTests = []createSessionTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 1000, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -184,6 +185,7 @@ var createSessionTests = []createSessionTestCase{ createMsg: &wtwire.CreateSession{ BlobType: 0, MaxUpdates: 1000, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -283,6 +285,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 3, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -312,6 +315,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 4, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -335,6 +339,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 4, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -362,6 +367,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 4, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -389,6 +395,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 4, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -418,6 +425,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 4, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -446,6 +454,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 3, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, }, @@ -475,6 +484,7 @@ var stateUpdateTests = []stateUpdateTestCase{ createMsg: &wtwire.CreateSession{ BlobType: blob.TypeDefault, MaxUpdates: 3, + RewardBase: 0, RewardRate: 0, SweepFeeRate: 1, },