Repository navigation
Conversation
…et_transaction_pool_status mina 4.0.4 adds the bootstrapStatus and transactionPoolStatus root fields; the specification's BootstrapStatus and TransactionPoolStatus operations read them. get_bootstrap_status returns BootstrapStatus (phase, attempts, and the LedgerSync list with each sync's LedgerSyncProgress); get_transaction_pool_status returns TransactionPoolStatus (size, max size, and the minimum fee per weight unit as the daemon's string, None when the pool is empty). Both need daemon 4.0.4; an older daemon answers with a GraphQLError, as the specification says. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FPK7KVU2LzZ8WtexqTg5Zm
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the two operations that o1-labs/mina-sdk-spec#7 adds for mina 4.0.4.
spec/is set tov0.4.0-rc.3; the spec CI job passes once that tag exists on the spec repository.What changes
get_bootstrap_status()→BootstrapStatus: the daemon's bootstrap phase, when it began, attempts, the last failure, and oneLedgerSyncper ledger with itsLedgerSyncProgress. Tells a stalled ledger sync from a slow one.get_transaction_pool_status()→TransactionPoolStatus: pool size, capacity andminimum_fee_per_weight_unit(kept astr | None: a decimal integer or a fractionn/d,Nonewhen the pool is empty).Cannot query field, which is aGraphQLErrorand not retried, like every GraphQL error. A test covers that.X | None = Nonefor nullable fields, asDaemonStatus.phaseandledgerare plainstrlikeDaemonStatus.sync_status, with the allowed values in the docstrings.tests/test_spec.pynow covers 24 documents.Verification
ruff check,ruff format --check,mypy src/,bandit, and the CI pytest set (79 passed, coverage 92.9%) all pass. Integration tests skipped (no daemon).Note for maintainers:
uv runin project mode cannot resolve the dev dependencies becauserequires-python = ">=3.8"whilebandit>=1.8needs 3.9. Pre-existing; the checks above were run withuv run --no-project --with-editable ..🤖 Generated with Claude Code
https://claude.ai/code/session_01FPK7KVU2LzZ8WtexqTg5Zm