make sure abandons spend from default account only

This commit is contained in:
Niko Storni 2019-12-16 04:53:15 +01:00
parent 68c0fd9ed7
commit 65c4f99c1c

View file

@ -96,11 +96,11 @@ func abandonSupports(s *Sync) (float64, error) {
if !more { if !more {
return return
} else { } 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 err != nil {
if strings.Contains(err.Error(), "Client.Timeout exceeded while awaiting headers") { if strings.Contains(err.Error(), "Client.Timeout exceeded while awaiting headers") {
log.Errorf("Support abandon for %s timed out, retrying...", claimID) 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 { if err != nil {
//TODO GUESS HOW MUCH LBC WAS RELEASED THAT WE DON'T KNOW ABOUT, because screw you SDK //TODO GUESS HOW MUCH LBC WAS RELEASED THAT WE DON'T KNOW ABOUT, because screw you SDK
abandonRspChan <- abandonResponse{ abandonRspChan <- abandonResponse{