From a12e5884abe3bb2f7c7ca283452d25e934f8c6ea Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Fri, 10 Jul 2020 15:24:13 -0400 Subject: [PATCH] fix: add TODO about lane merging --- paychmgr/state.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paychmgr/state.go b/paychmgr/state.go index 2c7ca73dc..7d06a35a4 100644 --- a/paychmgr/state.go +++ b/paychmgr/state.go @@ -121,6 +121,11 @@ func (pm *Manager) laneState(state *paych.State, ch address.Address) (map[uint64 // Get the total redeemed amount across all lanes, after applying the voucher func (pm *Manager) totalRedeemedWithVoucher(laneStates map[uint64]*paych.LaneState, sv *paych.SignedVoucher) (big.Int, error) { + // TODO: merges + if len(sv.Merges) != 0 { + return big.Int{}, xerrors.Errorf("dont currently support paych lane merges") + } + total := big.NewInt(0) for _, ls := range laneStates { total = big.Add(total, ls.Redeemed)