Skip to content

Commit 237313a

Browse files
committed
server: enable ExtraBudgetForInputs to be called before full server start up
This is a pure function that just returns what's basically a static value. There's no risk of deadlock if a caller calls into this function before the server has fully started up.
1 parent 4ffe39f commit 237313a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,10 +1262,6 @@ func (s *Server) ExtraBudgetForInputs(
12621262
srvrLog.Tracef("ExtraBudgetForInputs called, inputs=%v",
12631263
lnutils.SpewLogClosure(inputs))
12641264

1265-
if err := s.waitForReady(); err != nil {
1266-
return lfn.Err[btcutil.Amount](err)
1267-
}
1268-
12691265
return s.cfg.AuxSweeper.ExtraBudgetForInputs(inputs)
12701266
}
12711267

0 commit comments

Comments
 (0)