Skip to content

Conversation

zquestz
Copy link
Contributor

@zquestz zquestz commented May 21, 2021

Just adds checks to make sure a bucket is returned in our indexers. That way if we have an issue with a nil bucket, it will throw an error and not panic! The buckets should always be present, so returning an error is correct.

Mitigates #472

@zquestz zquestz requested a review from cpacia May 21, 2021 23:56
@zquestz
Copy link
Contributor Author

zquestz commented May 22, 2021 via email

@jcramer
Copy link
Contributor

jcramer commented May 22, 2021

You call a function that needs the txindex on.

Since s.slpIndex.GraphSearchEnabled() is checked prior to calling s.fetchTransactionFromBlock(txnHash), s.txIndex must be enabled. GS requires txindex.

Even if txIndex is disabled we need this method to run because the call to isSlpValid := s.checkSlpTxOnEvent(txDesc.Tx.MsgTx(), "mempool") allows mempool txns to have slp validity performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants