Skip to content

Commit

Permalink
Update chain.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Oct 4, 2024
1 parent 1630c9f commit 316ea4b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/solana/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,11 @@ func newChain(id string, cfg *config.TOMLConfig, ks loop.Keystore, lggr logger.L
tc := func() (client.ReaderWriter, error) {
return ch.getClient()
}
cacheReader := !cfg.MultiNode.Enabled()

ch.txm = txm.NewTxm(ch.id, tc, sendTx, cfg, cacheReader, ks, lggr)
ch.txm = txm.NewTxm(ch.id, tc, sendTx, cfg, ks, lggr)
bc := func() (monitor.BalanceClient, error) {
return ch.getClient()
}

// disable caching reader for MultiNode to always get a healthy client
ch.balanceMonitor = monitor.NewBalanceMonitor(ch.id, cfg, lggr, ks, bc, cacheReader)
ch.balanceMonitor = monitor.NewBalanceMonitor(ch.id, cfg, lggr, ks, bc)
return &ch, nil
}

Expand Down

0 comments on commit 316ea4b

Please sign in to comment.