-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mempool: Remove returned error from ProcessOrphans #546
Conversation
Commit message typos: if an -> if a Reviewed 1 of 1 files at r1. mempool.go, line 1090 [r1] (raw file): mp.Lock()
mp.processOrphans(hash)
mp.Unlock() Comments from the review on Reviewable.io |
updated. |
Reviewed 1 of 1 files at r2. Comments from the review on Reviewable.io |
OK |
@jrick and I were talking about this and the TODO in the case where the length of missing parents is non-zero, it should be put back into the orphan pool and continue thereby skipping the relay. |
Reviewed 1 of 1 files at r3, 1 of 1 files at r4. Comments from the review on Reviewable.io |
Reviewed 1 of 1 files at r5. Comments from the review on Reviewable.io |
ProcessTransaction could have accepted a new transaction into mempool but could have returned a reject message if a no-longer-orphan transaction failed to be accepted. This would also skip any additional no-longer-orphans, keeping them in the orphan pool. Instead of returning an error incorrectly, log the error and skip the no-longer-orphan transaction. This allows the rest of the no-longer-orphans to be processed as well.
Reviewed 1 of 1 files at r6. Comments from the review on Reviewable.io |
ok |
OK |
ProcessTransaction could have accepted a new transaction into mempool
but could have returned a reject message if a no-longer-orphan
transaction failed to be accepted. This would also skip any
additional no-longer-orphans, keeping them in the orphan pool.
Instead of returning an error incorrectly, log the error and skip
the no-longer-orphan transaction. This allows the rest of the
no-longer-orphans to be processed as well.