From 26f413110233e954498aa62c06461b8858938325 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 31 Jan 2019 18:16:03 -0800 Subject: [PATCH] watchtower/wtpolicy: add RewardBase to Policy --- watchtower/wtpolicy/policy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/watchtower/wtpolicy/policy.go b/watchtower/wtpolicy/policy.go index 65e4b4a9b..3336b07c5 100644 --- a/watchtower/wtpolicy/policy.go +++ b/watchtower/wtpolicy/policy.go @@ -48,6 +48,11 @@ type Policy struct { // for this session. MaxUpdates uint16 + // RewardBase is the fixed amount allocated to the tower when the + // policy's blob type specifies a reward for the tower. This is taken + // before adding the proportional reward. + RewardBase uint32 + // RewardRate is the fraction of the total balance of the revoked // commitment that the watchtower is entitled to. This value is // expressed in millionths of the total balance.