From 050af6032cdaab562b80ab75c5491b8ba059bdd5 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Fri, 26 Jan 2024 12:58:11 -0500 Subject: [PATCH] Include DestinationIDs and Factor when cloning balances This fixes an issue where, if data_db is of type *internal, the Factor value is lost on GetAccount --- engine/balances.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/balances.go b/engine/balances.go index 0428ee87b..21689dc4d 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -178,6 +178,8 @@ func (b *Balance) Clone() *Balance { Timings: b.Timings, // should not be a problem with aliasing Blocker: b.Blocker, Disabled: b.Disabled, + DestinationIDs: b.DestinationIDs, + Factor: b.Factor, dirty: b.dirty, } if b.DestinationIDs != nil {