Skip to content

Commit

Permalink
Increase the time for txindex to catch up
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondhands0 committed Sep 18, 2024
1 parent a19a6a0 commit 96b5e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (fes *APIServer) GetTxn(ww http.ResponseWriter, req *http.Request) {
// committed tip height. Otherwise we'll be missing ~2 blocks in limbo.
coreChainTipHeight := fes.TXIndex.CoreChain.BlockTip().Height
for fes.TXIndex.TXIndexChain.BlockTip().Height < coreChainTipHeight {
if time.Since(startTime) > 30*time.Second {
if time.Since(startTime) > 90*time.Second {
_AddBadRequestError(ww, fmt.Sprintf("GetTxn: Timed out waiting for txindex to sync."))
return
}
Expand Down

0 comments on commit 96b5e37

Please sign in to comment.