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
This commit is contained in:
ionutboangiu
2024-01-26 12:58:11 -05:00
committed by Dan Christian Bogos
parent 823b1ac37a
commit 050af6032c

View File

@@ -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 {