From 65c4f99c1c2f86390d417dd1ddf2bde8ba31ce99 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Mon, 16 Dec 2019 04:53:15 +0100 Subject: [PATCH] make sure abandons spend from default account only --- manager/transfer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/transfer.go b/manager/transfer.go index dfd94ab..08a5c41 100644 --- a/manager/transfer.go +++ b/manager/transfer.go @@ -96,11 +96,11 @@ func abandonSupports(s *Sync) (float64, error) { if !more { return } else { - summary, err := s.daemon.SupportAbandon(&claimID, nil, nil, nil, nil) + summary, err := s.daemon.SupportAbandon(&claimID, nil, nil, nil, &defaultAccount) if err != nil { if strings.Contains(err.Error(), "Client.Timeout exceeded while awaiting headers") { log.Errorf("Support abandon for %s timed out, retrying...", claimID) - summary, err = s.daemon.SupportAbandon(&claimID, nil, nil, nil, nil) + summary, err = s.daemon.SupportAbandon(&claimID, nil, nil, nil, &defaultAccount) if err != nil { //TODO GUESS HOW MUCH LBC WAS RELEASED THAT WE DON'T KNOW ABOUT, because screw you SDK abandonRspChan <- abandonResponse{