Skip to content

Commit 22c8609

Browse files
committed
Add a comment about deleted accounts in AccountDeltas.
1 parent c58349e commit 22c8609

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ledger/ledgercore/statedelta.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ type StateDelta struct {
8484

8585
// AccountDeltas stores ordered accounts and allows fast lookup by address
8686
type AccountDeltas struct {
87-
// actual data
87+
// Actual data. If an account is deleted, `accts` contains a balance record
88+
// with empty `AccountData`.
8889
accts []basics.BalanceRecord
8990
// cache for addr to deltas index resolution
9091
acctsCache map[basics.Address]int

0 commit comments

Comments
 (0)