Skip to content

Commit

Permalink
fix(nodemgr): shutdown was hanging if a gated validator wasn't being …
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
pbennett committed Oct 23, 2024
1 parent e72f1ab commit f61fe35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion nodemgr/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,17 @@ func (d *Daemon) start(ctx context.Context, wg *sync.WaitGroup, cancel context.C

wg.Add(1)
go func() {
defer wg.Done()
info := App.retiClient.Info()
if info.Config.EntryGatingType == reti.GatingTypeNone {
return
}
defer wg.Done()
d.StakerEvictor(ctx)
}()

wg.Add(1)
go func() {
defer d.logger.Info("Exiting HTTP server")
defer wg.Done()
http.Handle("/ready", isReady())
http.Handle("/metrics", promhttp.Handler())
Expand Down
12 changes: 5 additions & 7 deletions ui/src/api/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1189,13 +1189,11 @@ export async function linkPoolToNfd(
appIndex: nfdAppId,
from: activeAddress,
suggestedParams: await ParamsCache.getSuggestedParams(),
...algokit.getAppArgsForTransaction({
appArgs: [
new TextEncoder().encode('update_field'),
new TextEncoder().encode('u.cav.algo.a'),
algosdk.decodeAddress(poolAppAddress).publicKey,
],
}),
appArgs: [
new TextEncoder().encode('update_field'),
new TextEncoder().encode('u.cav.algo.a'),
algosdk.decodeAddress(poolAppAddress).publicKey,
],
})

// Check balance
Expand Down

0 comments on commit f61fe35

Please sign in to comment.