buildGroupMap creates a map for tracking unprocessed transaction groups. Parameters: - groupedTxns: The grouped transactions. Returns: - map[string]bool: A map with group keys as true, indicating that they have not yet been processed.
(groupedTxns map[string][]*model.Transaction)
| 929 | // Returns: |
| 930 | // - map[string]bool: A map with group keys as true, indicating that they have not yet been processed. |
| 931 | func (s *LedgerForge) buildGroupMap(groupedTxns map[string][]*model.Transaction) map[string]bool { |
| 932 | groupMap := make(map[string]bool) |
| 933 | for key := range groupedTxns { |
| 934 | groupMap[key] = true |
| 935 | } |
| 936 | return groupMap |
| 937 | } |
| 938 | |
| 939 | // groupInternalTransactions groups internal transactions based on the specified criteria for reconciliation. |
| 940 | // Parameters are the same as `groupExternalTransactions`. |