Skip to content
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

feat: improve mempool error msg when mempool out of sync #6618

Conversation

hansieodendaal
Copy link
Contributor

Description

Improved mempool error message when mempool falls behind the persisted blockchain db.

Motivation and Context

This error will occur in an edge case when the mempool is in the process of finalizing a block template and just before it is done, a new block has been added to the blockchain db. As the two processes are asynchronous, the resolution implemented in the code is to return an error message so that the client can issue a new request. Meanwhile, the mempool has time to react to the updated blockchain db state.

How Has This Been Tested?

Compile succeed.

What process can a PR reviewer use to test or verify this change?

Code review.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Improved mempool error msg when mempool falls behind the persisted blockchain db
@hansieodendaal hansieodendaal requested a review from a team as a code owner October 9, 2024 12:48
Copy link

github-actions bot commented Oct 9, 2024

Test Results (CI)

    3 files    129 suites   37m 10s ⏱️
1 326 tests 1 326 ✅ 0 💤 0 ❌
3 976 runs  3 976 ✅ 0 💤 0 ❌

Results for commit 1c8f321.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Oct 9, 2024
Copy link

github-actions bot commented Oct 9, 2024

Test Results (Integration tests)

36 tests  +36   36 ✅ +36   15m 33s ⏱️ + 15m 33s
11 suites +11    0 💤 ± 0 
 2 files   + 2    0 ❌ ± 0 

Results for commit 1c8f321. ± Comparison against base commit b3ea19a.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Oct 9, 2024
@SWvheerden SWvheerden merged commit 8f1b888 into tari-project:development Oct 10, 2024
17 checks passed
sdbondi added a commit to sdbondi/tari that referenced this pull request Oct 10, 2024
* development:
  chore(ci): remove ledger nanos and update ledger key gif resources (tari-project#6617)
  feat: improve mempool error msg when mempool out of sync (tari-project#6618)
  feat: exit logic for pre-mine spend (tari-project#6615)
  chore: new release esme v1.6.0-pre.0 (tari-project#6614)
  feat: enable identity grpc method by default (tari-project#6613)
  feat: pre-mine introduce temp ban and add counters (tari-project#6612)
  chore: changes mainnet default network (tari-project#6610)
  chore(ci): add riscv64 builds and misc script fixes (tari-project#6611)
  feat!: esme test pre-mine with immediate spend (tari-project#6609)
  feat!: add context to ffi callbacks (tari-project#6608)
  feat: add default exclude dial (tari-project#6607)
  feat!: add input mr into genesis block (tari-project#6601)
  feat: update pre_mine specification (tari-project#6606)
@hansieodendaal hansieodendaal deleted the ho_improve_mempool_error_msg branch October 11, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants