Skip to content

Commit

Permalink
fix(compat): remove unused whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanswrt committed Mar 22, 2021
1 parent 0e56028 commit 8dbf443
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lightnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,6 @@ func New(options Options, ctx context.Context, logger logrus.FieldLogger, sqlDB
bindings,
)

whitelistedHostChains := map[multichain.Chain][]tx.Selector{}
for _, sel := range options.Whitelist {
// only support configured chains
if _, ok := options.Chains[sel.Destination()]; !ok {
continue
}
if sel.IsMint() {
whitelistedHostChains[sel.Destination()] =
append(whitelistedHostChains[sel.Destination()], sel)
}
}

watchers := map[multichain.Chain]map[multichain.Asset]watcher.Watcher{}
ethGateways := bindings.EthereumGateways()
ethClients := bindings.EthereumClients()
Expand Down

0 comments on commit 8dbf443

Please sign in to comment.