Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,12 @@ func (a *onchainAllowlist) updateAllowedSendersBatch(
for _, addr := range allowedSendersBatch {
currentAllowedSenderList[addr] = struct{}{}
}
a.allowlist.Store(&currentAllowedSenderList)

snapshot := make(map[common.Address]struct{}, len(currentAllowedSenderList))
for k, v := range currentAllowedSenderList {
snapshot[k] = v
Comment thread
mchain0 marked this conversation as resolved.
}
a.allowlist.Store(&snapshot)
a.lggr.Infow("allowlist updated in batches successfully", "len", len(currentAllowedSenderList))

// persist each batch to the underalying orm layer
Expand Down
Loading