Skip to content

Commit

Permalink
Run() sets the network backend, don't set it from main
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Jan 27, 2025
1 parent ef2b8b3 commit 9a3f9d7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dcrwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ func spvLoop(ctx context.Context, w *wallet.Wallet) {
if len(cfg.SPVConnect) > 0 {
syncer.SetPersistentPeers(cfg.SPVConnect)
}
w.SetNetworkBackend(syncer)
err := syncer.Run(ctx)
if err == nil || done(ctx) {
loggers.SyncLog.Infof("SPV synchronization stopped")
Expand Down

0 comments on commit 9a3f9d7

Please sign in to comment.