instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
BerriAI__litellm__24447
BerriAI/litellm
24,447
defect
c89496f3789b4855913c27218c22ad7f0731311a
a977cce3f6a27d1fb13b53fde5b681bb5458bd7b
feat(logging): add component and logger fields to JSON logs for 3rd p…
## Relevant issues Resolves #23884 ## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_litellm) directory, **Adding at least 1 test is...
diff --git a/litellm/_logging.py b/litellm/_logging.py index 65e6045b0b18..ac9a9557a80b 100644 --- a/litellm/_logging.py +++ b/litellm/_logging.py @@ -195,6 +195,8 @@ def format(self, record): "message": message_str, "level": record.levelname, "timestamp": self.formatTime(record),...
3
2
1
[{"id": "G0", "claim": "The test should assert the logger field equals 'proxy_server.py:123' exactly rather than only that it ends with ':123', so regressions in the filename portion or the format are caught.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
BerriAI__litellm__24611
BerriAI/litellm
24,611
defect
6f5504ab6d655a62970d589c12638030a52c8871
6a37b246bdfe0ea07ab0c1b70afdb167f605747d
feat(router): order-based fallback across deployment priority levels
## Summary - When `order=1` deployments fail (connection error, 404, 429, etc.), the router now automatically tries `order=2`, then `order=3`, and so on before falling through to external fallbacks - Removes the requirement for `enable_pre_call_checks` — order filtering now happens after cooldown filtering in `get_avai...
diff --git a/docs/my-website/docs/proxy/load_balancing.md b/docs/my-website/docs/proxy/load_balancing.md index 897c04b2b005..93f3d9443403 100644 --- a/docs/my-website/docs/proxy/load_balancing.md +++ b/docs/my-website/docs/proxy/load_balancing.md @@ -324,17 +324,43 @@ model_list: litellm_params: model: azur...
4
3
3
[{"id": "G0", "claim": "For any model group with multiple order values, the new early run_async_fallback call and return bypass the ContextWindowExceededError and ContentPolicyViolationError handlers, so context_window_fallbacks and content_policy_fallbacks are completely ignored for users who configure both.", "catego...
null
BerriAI__litellm__24831
BerriAI/litellm
24,831
defect
ead71c90ae13ac1befef1edf8a79dd5cdc8a9bef
a413c2d1dbca851043280b8f42a85c68a2dffff0
feat(proxy): Optional on_error for guardrail pipeline (API / technical failures)
## Relevant issues Cause Guardrail pipelines only exposed on_pass and on_fail. The executor already distinguishes policy intervention (fail, e.g. HTTP 400) from technical errors (error, e.g. timeouts, 503, missing callback), but both used on_fail. You could not configure “fallback to another guardrail only when t...
diff --git a/litellm/proxy/policy_engine/pipeline_executor.py b/litellm/proxy/policy_engine/pipeline_executor.py index 729b42ce638c..3c5a1d67be4a 100644 --- a/litellm/proxy/policy_engine/pipeline_executor.py +++ b/litellm/proxy/policy_engine/pipeline_executor.py @@ -74,7 +74,7 @@ async def execute_steps( ...
4
1
1
[{"id": "G0", "claim": "The test name test_on_error_next_fallback_on_api_outage_on_fail_blocks_content is misleading because the on-fail-blocks-content behaviour it names is asserted only in the companion test, not in this function's body; consider renaming it to something like test_on_error_next_routes_to_fallback_on_...
null
BerriAI__litellm__24883
BerriAI/litellm
24,883
defect
7066c895f610efbaa0a36bac22843cb05b5cf7d6
f4c1c879fc4bf363ce9ac4ead5123266dcb56104
feat: multiple concurrent budget windows per API key and team
## Relevant issues <!-- e.g. "Fixes #000" --> ## Pre-Submission checklist - [ ] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_litellm) directory, **Adding at least 1 test is a hard requirement** - [see details](https://docs.litellm.ai/docs/extras/contribu...
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260401000000_add_budget_limits/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260401000000_add_budget_limits/migration.sql new file mode 100644 index 000000000000..fdd65543a3aa --- /dev/null +++ b/litellm-proxy-extras/litellm_pr...
12
8
4
[{"id": "G0", "claim": "Redis per-window counters are keyed by list index (window:{i}), so removing, inserting or reordering a window in budget_limits misaligns existing counters with their windows (same issue in the team update path).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
BerriAI__litellm__24898
BerriAI/litellm
24,898
defect
58120537af4f3975550206a88bdf133e31832de8
8752c38b4002dcaa69bc808555f2e2149b3eb7ed
Add service_tier for Gemini API
## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_litellm) directory, **Adding at least 1 test is a hard requirement** - [see details](http...
diff --git a/docs/my-website/docs/providers/gemini.md b/docs/my-website/docs/providers/gemini.md index 87ab5ad40f4f..a60dc3323d11 100644 --- a/docs/my-website/docs/providers/gemini.md +++ b/docs/my-website/docs/providers/gemini.md @@ -65,14 +65,13 @@ response = completion( - modalities - reasoning_content - audio (f...
5
3
1
[{"id": "G0", "claim": "The `value == \"auto\"` check in `_map_service_tier_param` is case-sensitive, so a caller passing e.g. \"AUTO\" bypasses the priority mapping and the lowercased \"auto\" is forwarded to the Gemini API instead of \"priority\"; it should compare case-insensitively like the rest of the PR.", "categ...
null
BerriAI__litellm__24912
BerriAI/litellm
24,912
defect
33c3f13443eaf990ac8c6e3da78bddbc2b7d0e7a
115a1e2e238b0b73bfd91e96b927d8e7caf6c771
fix(responses): map refusal stop_reason to incomplete status in streaming
## Summary Fixes streaming responses API translation where Anthropic's `stop_reason="refusal"` was incorrectly translated to `status="completed"` instead of `"incomplete"`. ## Root Cause `build_base_response` in `streaming_chunk_builder_utils.py` was unconditionally overwriting `finish_reason` with `None` from lat...
diff --git a/litellm/litellm_core_utils/streaming_chunk_builder_utils.py b/litellm/litellm_core_utils/streaming_chunk_builder_utils.py index 1935372e5dfb..f909111a05cd 100644 --- a/litellm/litellm_core_utils/streaming_chunk_builder_utils.py +++ b/litellm/litellm_core_utils/streaming_chunk_builder_utils.py @@ -123,10 +1...
1
1
1
[{"id": "G0", "claim": "This PR removed six meaningful assertions from test_message_item_emits_content_part_added, leaving only a count check, so future regressions in event type, content, or iterator state would go undetected; the reviewer asks to restore the removed assertions or provide a justification for their rem...
null
BerriAI__litellm__24918
BerriAI/litellm
24,918
defect
33c3f13443eaf990ac8c6e3da78bddbc2b7d0e7a
724ad7cbebe3b79c7501461ebf4b86851298ad8d
feat(openai): add route_all_chat_openai_to_responses global flag
## Relevant issues <!-- e.g. "Fixes #000" --> ## Pre-Submission checklist - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_litellm) directory, **Adding at least 1 test is a hard requirement** - [see details](https://docs.litellm.ai/docs/extras/contribu...
diff --git a/docs/my-website/docs/proxy/config_settings.md b/docs/my-website/docs/proxy/config_settings.md index cc9090c2de6f..e7693953dbea 100644 --- a/docs/my-website/docs/proxy/config_settings.md +++ b/docs/my-website/docs/proxy/config_settings.md @@ -197,6 +197,7 @@ router_settings: | key_generation_settings | obj...
4
2
1
[{"id": "G0", "claim": "test_responses_api_bridge_check_global_flag_default_false relies on the env var being unset rather than explicitly patching the flag to False, leaving a test isolation gap.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "bool(os.g...
null
BerriAI__litellm__24943
BerriAI/litellm
24,943
defect
0f88968da921e17e84ac237488abbe4f26306a9b
7bad1341f0f6c0741ef4e4af802a776fcbff7dc7
fix(llm translation): redact Gemini API key from URL query params in error traces
## Summary Fixes #24902 — Gemini API keys leaked in error traces via URL query params. Gemini authenticates via `?key=<api_key>` in the request URL. When a call fails, `httpx.Response.raise_for_status()` includes the full URL in the error message, leaking the key in both exception messages and log output. **Changes:...
diff --git a/litellm/_logging.py b/litellm/_logging.py index 65e6045b0b18..fd6f64df3a59 100644 --- a/litellm/_logging.py +++ b/litellm/_logging.py @@ -1,14 +1,14 @@ import ast import logging import os -import re import sys from datetime import datetime from logging import Formatter -from typing import Any, Dict, ...
5
2
1
[{"id": "G0", "claim": "In test_redact_string_applied_to_httpx_error_message the assertions live inside the except block with no else/pytest.fail, so the test passes vacuously if raise_for_status() does not raise; it should use pytest.raises (or an explicit pytest.fail) to make the guard explicit.", "category": "testin...
null
BerriAI__litellm__24949
BerriAI/litellm
24,949
defect
7250cba3db85366346a0b2972ab2e7ca054778b9
639e23880881e61b0c35e5c7ee85029441e6b1d9
fix(auth): enforce budget for models not in cost map
## Relevant issues Fixes https://github.com/BerriAI/litellm/issues/24770 Related: https://github.com/BerriAI/litellm/issues/23714 ## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the [`tests/test_litellm/`](https://github.co...
diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index c00a351bdd8a..02a365e48f23 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -165,7 +165,17 @@ def _is_model_cost_zero( ) return False - # This ...
4
3
1
[{"id": "G0", "claim": "The new debug log lines interpolate the user-provided model_name directly into f-string log messages, allowing log injection.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "_is_cost_explicitly_configured returning True when any ...
null
BerriAI__litellm__24964
BerriAI/litellm
24,964
defect
d1df4e838b3d105ebd78865ee879ebaa7e65b6a6
3ae14bd9ffc9af9646cdb0f815278cf7559ef3d8
feat(proxy): LiteLLM headers on Google native generateContent routes
## Summary Google-native `:generateContent` and `:streamGenerateContent` previously bypassed `base_process_llm_request`, so responses omitted LiteLLM proxy headers (`x-litellm-*`, provider/rate-limit headers from hidden params, callback hooks). ## Changes - Add `build_litellm_proxy_success_headers_from_llm_response` i...
diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.py index 386b9d277239..d86872302a55 100644 --- a/litellm/proxy/common_request_processing.py +++ b/litellm/proxy/common_request_processing.py @@ -566,6 +566,71 @@ def get_custom_headers( verbose_proxy_logger.er...
4
4
1
[{"id": "G0", "claim": "On the streaming route, build_litellm_proxy_success_headers_from_llm_response is called on an AsyncGoogleGenAIGenerateContentStreamingIterator that has no _hidden_params attribute at call time, so x-litellm-model-id, x-litellm-model-api-base, x-litellm-response-cost and provider rate-limit heade...
null
BerriAI__litellm__24998
BerriAI/litellm
24,998
defect
d1df4e838b3d105ebd78865ee879ebaa7e65b6a6
3d6f7a87dfbf29f7771aca19c1ba9cd7eb5b3dbe
fix(presidio): use correct text positions in anonymize_text
## Relevant issues Fixes #24160 ## What this PR does The Presidio `/anonymize` endpoint returns `items[]` with `start`/`end` positions that reference the **anonymized output** text, not the original input text. `anonymize_text()` was applying these positions to the **original** text, producing garbled output w...
diff --git a/litellm/proxy/guardrails/guardrail_hooks/presidio.py b/litellm/proxy/guardrails/guardrail_hooks/presidio.py index 0f4ebbd48808..7c4e81026eb6 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/presidio.py +++ b/litellm/proxy/guardrails/guardrail_hooks/presidio.py @@ -485,61 +485,74 @@ async def anonymize...
3
2
0
[{"id": "G0", "claim": "The anon_item_by_entity dict is built but never used, adding noise and wasted work, and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tokens are numbered in reverse order of text appearance (the last e...
null
BerriAI__litellm__25027
BerriAI/litellm
25,027
defect
50a52f62e3ad8c903068fdd580b98eb7adc30918
bbe708b093d4fc4f59f451599eb86b991dc85b91
feat(teams): resolve access group resources in team endpoints
## Summary - Resolve access group models, MCP servers, and agents in `team_info` and `list_team_v2` endpoints so the UI can display which resources a team inherits from its access groups - Added `access_group_models`, `access_group_mcp_server_ids`, `access_group_agent_ids` fields to `TeamInfoResponseObjectTeamTable` ...
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 8faf36df4c6b..6b581957e917 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -3805,6 +3805,10 @@ class OrganizationMemberUpdateResponse(MemberUpdateResponse): class TeamInfoResponseObjectTeamTable(LiteLLM_TeamTable): team_m...
7
6
3
[{"id": "G0", "claim": "The module-level import of get_access_object from litellm.proxy.auth.auth_checks may fail with get_access_object not defined, because auth_checks cyclically imports team_endpoints before defining it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
BerriAI__litellm__25038
BerriAI/litellm
25,038
defect
50a52f62e3ad8c903068fdd580b98eb7adc30918
fe8cc100de83eb8b8064eca79c0e14cd6950812f
feat: allow adding team guardrails from the UI
## Summary - Wire the placeholder "Add Guardrail" button in the Submitted Guardrails tab to a working antd Modal + Form with team selector, guardrail name, mode, API base URL, optional extra litellm_params, and optional guardrail_info - Add `useRegisterGuardrail` React Query mutation hook that calls `POST /guardrails...
diff --git a/litellm/proxy/guardrails/guardrail_endpoints.py b/litellm/proxy/guardrails/guardrail_endpoints.py index 2b20876ba220..2b10537d8e6b 100644 --- a/litellm/proxy/guardrails/guardrail_endpoints.py +++ b/litellm/proxy/guardrails/guardrail_endpoints.py @@ -542,6 +542,7 @@ class RegisterGuardrailRequest(BaseModel)...
4
4
2
[{"id": "G0", "claim": "Making `team_id` a required request-body field on `RegisterGuardrailRequest` breaks existing callers of `POST /guardrails/register` with a 422, so it should stay optional with a fallback to the API key's team and a 400 only when both are absent.", "category": "correctness", "verdict": "supported...
null
BerriAI__litellm__25092
BerriAI/litellm
25,092
defect
d4a3a5e530422d6ccd4dff82637ca275aa4e507d
1c1173f689fa6e4776bf0e4ff5f4c0bef6b4ada3
fix(a2a): preserve JSON-RPC envelope for AgentCore A2A-native agents
Add Bedrock AgentCore A2A provider config that bypasses the completion bridge, preserving the JSON-RPC envelope instead of stripping it to `{"prompt": "..."}`. Reuses `AmazonAgentCoreConfig` for URL/auth. ## Relevant issues Fixes the `-32600: Request payload validation error` when A2A-native agents on Bedrock AgentCo...
diff --git a/litellm/a2a_protocol/litellm_completion_bridge/handler.py b/litellm/a2a_protocol/litellm_completion_bridge/handler.py index c3d2e415237d..d518e13f9ce5 100644 --- a/litellm/a2a_protocol/litellm_completion_bridge/handler.py +++ b/litellm/a2a_protocol/litellm_completion_bridge/handler.py @@ -53,15 +53,13 @@ a...
6
3
2
[{"id": "G0", "claim": "Routing every `custom_llm_provider == \"bedrock\"` request to BedrockAgentCoreA2AConfig breaks existing non-AgentCore Bedrock A2A users: for those models the ARN parsing raises an unhandled ValueError where requests previously fell through to the standard completion bridge, so the routing should...
null
BerriAI__litellm__25122
BerriAI/litellm
25,122
defect
48d4dec5c6f096fd244191528f89f3fb39036a2b
0747dcd3cddc3149655a56a72ee94c23d78b7487
[Docs] Add cosign Docker image verification steps to security blog posts
## Summary ### Problem The cosign Docker image verification steps from the release GHA workflow are not documented in the security-related blog posts, so users don't know how to verify image signatures. ### Fix Added cosign verification instructions to three blog posts: - **CI/CD v2** — new "Verify Docker image signa...
diff --git a/docs/my-website/blog/ci_cd_v2_improvements/index.md b/docs/my-website/blog/ci_cd_v2_improvements/index.md index 84f8f7bda6b2..4ad4446e5364 100644 --- a/docs/my-website/blog/ci_cd_v2_improvements/index.md +++ b/docs/my-website/blog/ci_cd_v2_improvements/index.md @@ -27,6 +27,27 @@ Building on the roadmap fr...
3
3
1
[{"id": "G2", "claim": "The claim that \"All LiteLLM Docker images are signed\" over-reaches because the verification command only covers ghcr.io/berriai/litellm while LiteLLM also publishes to Docker Hub, so the text should be scoped to the registry that is actually signed.", "category": "documentation", "verdict": "s...
null
BerriAI__litellm__25239
BerriAI/litellm
25,239
defect
39c1042258b7318dc2fefc2ce392f913a9257806
55b4929a06afce2a8f28bcd352b2d97d7dcd12fc
feat: add POST /team/permissions_bulk_update endpoint
## Summary - Adds `POST /team/permissions_bulk_update` endpoint that appends permissions to all existing teams without overwriting their current permissions - Validates permissions against the available team member permissions list, returns 400 for invalid values - Uses paginated reads + batched writes (`batch_()`) ...
diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.py index e1534573789b..5957221a9662 100644 --- a/litellm/proxy/management_endpoints/team_endpoints.py +++ b/litellm/proxy/management_endpoints/team_endpoints.py @@ -100,6 +100,7 @@ from litellm.types.p...
6
2
1
[{"id": "G0", "claim": "_append_permissions_to_specific_teams calls find_many without an order clause, so writes inside batch_() happen in non-deterministic row order, which CLAUDE.md's requirement of primary-key ordering is meant to prevent (deadlock risk on concurrent overlapping requests).", "category": "correctness...
null
BerriAI__litellm__25337
BerriAI/litellm
25,337
defect
62757ff48f59d74c0ca681feb85522f9d003a9e7
5195832df50f718135bd42a55e4b2d4ddf6a9029
fix(vertex_ai): normalize Gemini finish_reason enum through map_finis…
## What does this PR do? Fixes a case-mismatch bug in the legacy `vertex_ai` SDK streaming path that prevented `finish_reason` from being correctly reported as `"tool_calls"` when Gemini returns tool/function calls during streaming. ### Root cause In `streaming_handler.py`, the legacy code path for raw Vertex ...
diff --git a/litellm/litellm_core_utils/streaming_handler.py b/litellm/litellm_core_utils/streaming_handler.py index e402023d240d..ce4b416b9d47 100644 --- a/litellm/litellm_core_utils/streaming_handler.py +++ b/litellm/litellm_core_utils/streaming_handler.py @@ -1282,9 +1282,12 @@ def chunk_creator(self, chunk: Any): ...
2
2
0
[{"id": "G0", "claim": "The inline `from litellm.litellm_core_utils.core_helpers import map_finish_reason` block added inside `chunk_creator` is redundant because `map_finish_reason` is already imported at module scope (line 49) and violates the CLAUDE.md rule against imports within methods, so the inline import block ...
null
BerriAI__litellm__25338
BerriAI/litellm
25,338
defect
62757ff48f59d74c0ca681feb85522f9d003a9e7
db7d9dde0ea9f42ccd3b68ae96a091676da190d6
feat(mcp): expose custom x-* headers in logging callbacks
## Relevant issues Fixes #13663 ## Pre-Submission checklist - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_litellm) directory, **Adding at least 1 test is a hard requirement** - [see details](https://docs.litellm.ai/docs/extras/contributing_cod...
diff --git a/litellm/proxy/_experimental/mcp_server/rest_endpoints.py b/litellm/proxy/_experimental/mcp_server/rest_endpoints.py index c0151d47e048..156d2b071e8c 100644 --- a/litellm/proxy/_experimental/mcp_server/rest_endpoints.py +++ b/litellm/proxy/_experimental/mcp_server/rest_endpoints.py @@ -798,19 +798,37 @@ asy...
3
3
0
[{"id": "G0", "claim": "Consider adding a debug log so operators can diagnose when the metadata wiring silently skips setting requester_custom_headers because litellm_params or metadata is not a dict.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
BerriAI__litellm__25339
BerriAI/litellm
25,339
defect
62757ff48f59d74c0ca681feb85522f9d003a9e7
15a5841b546cbbf59830e5cb36d27bc5c114e477
fix: remove leading space from license public_key.pem
## Relevant issues Community report: `litellm/proxy/auth/public_key.pem` began with a leading ASCII space before `-----BEGIN`, which breaks `cryptography.load_pem_public_key` on older `cryptography` (e.g. 41.x). Related upstream change: [6f428a16](https://github.com/BerriAI/litellm/commit/6f428a16fa503a4d16bcaea6186...
diff --git a/litellm/proxy/auth/public_key.pem b/litellm/proxy/auth/public_key.pem index 0962794ac912..437befbf08fa 100644 --- a/litellm/proxy/auth/public_key.pem +++ b/litellm/proxy/auth/public_key.pem @@ -1,4 +1,4 @@ - -----BEGIN PUBLIC KEY----- +-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE...
1
1
1
[{"id": "G0", "claim": "The pull request adds no regression test for the public_key.pem fix, although CLAUDE.md and the PR checklist make a test a hard requirement, so the leading whitespace could silently reappear and go undetected; a minimal offline test in tests/test_litellm/proxy/auth/test_litellm_license.py should...
null
BerriAI__litellm__25340
BerriAI/litellm
25,340
defect
62757ff48f59d74c0ca681feb85522f9d003a9e7
52335498d7f97859699fb09f02dd7ba3dc8f1818
fix(proxy): set key_alias=user_id in JWT auth for Prometheus metrics
## Relevant issues Fixes empty `api_key_alias` Prometheus label for JWT-authenticated callers (standard JWT auth path, not virtual key mapping). ## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the [`tests/test_litellm/`](ht...
diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index 61c618eeb18f..ffca4d533bef 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -807,6 +807,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915 ...
2
1
1
[{"id": "G0", "claim": "The new test functions place imports inside the function body instead of at module level, which the project's CLAUDE.md style guide disallows for non-circular imports.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Settin...
null
BerriAI__litellm__25383
BerriAI/litellm
25,383
defect
072d4108c3252e7943cd49b4481b3205c692eee0
b48b99d4672635cda5c40cc963133d1ee33db065
change content filter status code to 400
## Relevant issues Content filter BLOCK actions now return HTTPException with status 400 instead of 403. Updates unit tests under tests/test_litellm/proxy/guardrails/guardrail_hooks/content_filter/ and the benchmark helper in guardrail_benchmarks/test_eval.py so expectations match 400. Keeps timeouts / upstream fail...
diff --git a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py index e4da1c1ae77a..5bdf3d8a7e6e 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py +++ b/litellm...
1
1
1
[{"id": "G0", "claim": "Changing the content-filter block status code from 403 to 400 is a backwards-incompatible API contract break that should be accompanied by a migration note (or release-notes warning) or guarded behind a user-controlled opt-out flag.", "category": "correctness", "verdict": "supported", "priority"...
null
BerriAI__litellm__25437
BerriAI/litellm
25,437
defect
cd9c511df65f89d2ca4c9c62cabe600e87f42e3a
f6dde296fa8a9ef4747ff5c6e4df0af808124134
fix(responses-ws): append ?model= to backend WebSocket URL
## Summary - OpenAI's WebSocket responses endpoint requires the model as a query parameter (`wss://.../v1/responses?model=gpt-4o-mini`), matching the Realtime API convention - Without it the handshake succeeds but OpenAI never sends events, causing the client to time out after 15s - Fixes `test_responses_websocket_pro...
diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py index 4c9abaad9088..4e5b7a3410b6 100644 --- a/litellm/llms/custom_httpx/llm_http_handler.py +++ b/litellm/llms/custom_httpx/llm_http_handler.py @@ -5027,6 +5027,10 @@ async def async_responses_websocket( ...
2
2
1
[{"id": "G0", "claim": "Both tests in TestNativeWebSocketUrlConstruction reimplement the handler's append-?model= logic instead of invoking the handler, so they would pass even if the handler's condition were inverted; the tests should capture the URL passed to websockets.connect instead.", "category": "testing", "verd...
null
BerriAI__litellm__25473
BerriAI/litellm
25,473
defect
42e558378809fbf482e21c6163edb95bdc8191de
26e99f22b341107ee0b26cd4224d2e51101cefa0
refactor: consolidate route auth for UI and API tokens
## Summary - Unify UI and API token authorization through the shared RBAC path - Backfill missing routes in role-based route lists so dashboard continues to work for all roles ## Test plan - [x] Unit tests pass (`test_user_api_key_auth.py`, `test_jwt.py`) - [x] Manual verification with admin, internal_user, and intern...
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 793742891fc5..364e49e62571 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -494,10 +494,12 @@ class LiteLLMRoutes(enum.Enum): "/v2/key/info", "/model_group/info", "/health", + "/health/services",...
3
2
1
[{"id": "G0", "claim": "The local variable _is_route_allowed assigned in common_checks is never used.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Deleting LiteLLMRoutes.ui_routes from the enum is backward-incompatible: JWT auth configs list...
null
BerriAI__litellm__25542
BerriAI/litellm
25,542
defect
03d97468154bf98b8af6e018a20213d936a55fbf
c7934c460d4182f5545c385429d42ae3da7faf0e
fix(spend): session-TZ-independent date filtering for spend/error log queries
## Relevant issues Fixes #22529 ### Root cause `LiteLLM_SpendLogs.startTime` and `LiteLLM_ErrorLogs.startTime` are plain `timestamp` columns. PR #17504 cast query params to `::timestamptz` for index sargability, creating a type mismatch: `timestamp` column vs `timestamptz` param. Postgres resolves this by promo...
diff --git a/litellm/proxy/analytics_endpoints/analytics_endpoints.py b/litellm/proxy/analytics_endpoints/analytics_endpoints.py index 4752593742c9..6835f0c9095a 100644 --- a/litellm/proxy/analytics_endpoints/analytics_endpoints.py +++ b/litellm/proxy/analytics_endpoints/analytics_endpoints.py @@ -1,5 +1,5 @@ #### Ana...
1
1
1
[{"id": "G0", "claim": "The AT TIME ZONE 'UTC' wrap is ineffective in _get_spend_report_for_time_range because its start_date/end_date plain strings are parsed by Postgres under the session timezone, shifting the window (e.g. four hours on EDT); convert them to tz-aware UTC datetimes before query_raw as the other endpo...
null
BerriAI__litellm__25672
BerriAI/litellm
25,672
defect
5544803b35fe0804e054427b50fe501bb120c830
f76073d622509ecddbaf7ecf258906e999366f5d
Feat(dashscope): add image generation support for qwen-image-2.0 and qwen-image-2.0-pro
## Relevant issues [Feature]: qwen-image-2.0-pro is not supported by litellm #25319 ## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test...
diff --git a/litellm/images/main.py b/litellm/images/main.py index a5ae154190a6..6fb109000cc7 100644 --- a/litellm/images/main.py +++ b/litellm/images/main.py @@ -407,6 +407,7 @@ def image_generation( # noqa: PLR0915 litellm.LlmProviders.RUNWAYML, litellm.LlmProviders.VERTEX_AI, ...
5
4
2
[{"id": "G0", "claim": "The `Union` import in litellm/llms/dashscope/image_generation/transformation.py is unused and should be removed from the typing import line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The qwen-image auto-routing path ...
null
BerriAI__litellm__25854
BerriAI/litellm
25,854
defect
e64d98f725b9115fb206df06e81e343ead006d08
5f03770fe65eef5b01dbfb01aa810397d3ae0ea1
fix(proxy): Bedrock guardrail spend logs - hook mode, match redaction, streaming request_data
## Relevant issues Fixes: - LIT-2407: incorrect **`guardrail_mode`** / spend-log labels for Bedrock when proxy hooks are **`during_call`** / **`post_call`** but Bedrock uses **`INPUT`**/**`OUTPUT`** - LIT-2405: sensitive **`match`** / **`regex`** values in spend/compliance metadata, ## Pre-Submission checklist ...
diff --git a/litellm/integrations/custom_guardrail.py b/litellm/integrations/custom_guardrail.py index 6046f1bb5818..eb821d24da28 100644 --- a/litellm/integrations/custom_guardrail.py +++ b/litellm/integrations/custom_guardrail.py @@ -2,6 +2,7 @@ from typing import ( TYPE_CHECKING, Any, + ClassVar, D...
1
1
0
[{"id": "G0", "claim": "The outer try/except in _redact_pii_matches is unreachable because redact_nested_match_and_regex_keys already handles all exceptions internally, so the wrapper can be simplified by removing the try/except and its warning call.", "category": "maintainability", "verdict": "supported", "priority": ...
null
BerriAI__litellm__25895
BerriAI/litellm
25,895
defect
b8f7d61400a907d9aeff01174e0e182cf5086c51
4d03bfc7abc80f64cf44f3e762cf334e160de308
Fix Prompt Security redaction persistence and role writeback
## Summary - preserve original message roles when applying Prompt Security `modify` results back to in-flight request messages - prevent temporary Prompt Security role transformation (`other`) from leaking into provider request `structured_messages` - extend Prompt Security guardrail tests to cover: - `structured_mes...
diff --git a/litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py b/litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py index b3e761869b03..c395408e953c 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py +++ b/litellm/proxy/guardrails/...
2
2
1
[{"id": "G0", "claim": "Silently remapping configured `during_call` hooks to `pre_call + post_call` is backwards-incompatible for existing deployments and the expansion should be guarded behind a feature flag (defaulting to True) that allows opting out.", "category": "correctness", "verdict": "supported", "priority": "...
null
BerriAI__litellm__25948
BerriAI/litellm
25,948
defect
850fe595ac54fa426bee70c367afdfe865f3b356
844e0507684dd873997beeb62d16a11df99bc1f9
fix(ovhcloud): Fix tool calling not working
## Pre-Submission checklist - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_litellm) directory, **Adding at least 1 test is a hard requirement** - [see details](https://docs.litellm.ai/docs/extras/contributing_code) - [x] My PR passes all unit test...
diff --git a/litellm/llms/ovhcloud/chat/transformation.py b/litellm/llms/ovhcloud/chat/transformation.py index 1416b782f17d..61bfcb0aca2b 100644 --- a/litellm/llms/ovhcloud/chat/transformation.py +++ b/litellm/llms/ovhcloud/chat/transformation.py @@ -7,9 +7,8 @@ from typing import Optional, Union, List import httpx...
1
1
0
[{"id": "G0", "claim": "The `from litellm.utils import get_optional_params` import inside the test method body should be moved to the module-level import block, per the project style guide (no circular-import risk).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BerriAI__litellm__25989
BerriAI/litellm
25,989
defect
c0fc4c423490c15949110777e0137364efc53bca
ea509ec6b99e87c6d23779c2c35da25906be1d0c
feat: configurable multi-threshold budget alerts for virtual keys
## Summary Adds configurable multi-threshold budget alerts for virtual keys. Users can define multiple spend thresholds (e.g. 50%, 75%, 100%) each with their own list of email recipients, replacing the single hardcoded 80% alert. ### Per-key configuration (via `/key/generate` or `/key/update` metadata): ```json { "...
diff --git a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py b/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py index 7a77898b1601..361632538396 100644 --- a/enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py +++ b/enterprise/litellm_ent...
5
4
1
[{"id": "G0", "claim": "When raw_emails is empty and the user has no email on file, recipient_emails is set to None and silently falls back to the old single-recipient path, whose DB lookup failure recurs on every request at the threshold, producing error-log spam and repeated background DB queries; the reviewer asks t...
null
BerriAI__litellm__26111
BerriAI/litellm
26,111
defect
2f22a1293e7dd30f89de7a56d9a10ca3e9852ad4
fed598de5cae1eac6c6e83df6cbe0072dff11ce5
fix(adapter): normalize reasoning effort with graceful degradation
## Relevant issues - Fixes #25079 - Competing: #25099, #25120 ## Pre-Submission checklist - [x] I have Added testing in the `tests/test_litellm/` directory - [x] My PR passes all unit tests on `make test-unit` - [x] My PR's scope is as isolated as possible, it only solves 1 specific problem - [ ] I have re...
diff --git a/litellm/llms/anthropic/experimental_pass_through/adapters/handler.py b/litellm/llms/anthropic/experimental_pass_through/adapters/handler.py index 897ca3bf893e..d16f5afb45ca 100644 --- a/litellm/llms/anthropic/experimental_pass_through/adapters/handler.py +++ b/litellm/llms/anthropic/experimental_pass_throu...
2
1
1
[{"id": "G0", "claim": "The final return \"medium\" in normalize_reasoning_effort_value is unreachable dead code (the early guard ensures effort is one of max/xhigh/minimal and every branch returns) that could mislead maintainers into thinking there is a fall-through path; delete it.", "category": "maintainability", "v...
null
BerriAI__litellm__26117
BerriAI/litellm
26,117
defect
b8f7d61400a907d9aeff01174e0e182cf5086c51
981bc3614a7e005ab249254e564e12393914d7ab
fix(mcp_semantic_tool_filter): match tools with client-side namespace prefix (#26078)
Fixes #26078. Re-opening against `litellm_oss_branch` after the main-branch guard rejected the fork-based PR ([#26116 was closed](https://github.com/BerriAI/litellm/pull/26116) for that reason). Same commit, now on the correct base. ## What was broken `SemanticMCPToolFilter._get_tools_by_names` matched the canonical...
diff --git a/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py b/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py index 0bafd7da2657..4412599dc0c9 100644 --- a/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py +++ b/litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py @...
4
3
1
[{"id": "G0", "claim": "The test test_same_tool_not_returned_twice passes the same canonical (\"read_file\") twice, so it only exercises the duplicate-input path and does not exercise the two-distinct-canonicals scenario its docstring claims; it should pass two distinct canonicals such as [\"read_file\", \"file\"].", "...
null
BerriAI__litellm__26142
BerriAI/litellm
26,142
defect
ba820160ab82e831530c4fc1659fa14f078cfc60
9deefc0f766837822e192154290091d8b57bf5bd
[Fix] MCP broker OAuth endpoint access controls
## Summary - `mcp_authorize` and `mcp_token` management endpoints now require a valid bearer token, matching the pattern used by every other management endpoint in this file. - `redirect_uri` is validated for a permitted scheme (`http`/`https`) before it is embedded in the encrypted state object, blocking non-HTTP sch...
diff --git a/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py b/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py index 65e2e3e983d6..792a9dace1ea 100644 --- a/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py +++ b/litellm/proxy/_experimental/mcp_server/discoverable_endpoi...
4
2
1
[{"id": "G0", "claim": "The /register OAuth endpoint was left unauthenticated while /authorize and /token got dependencies=[Depends(user_api_key_auth)], letting unauthenticated callers trigger server-side HTTP requests to the MCP server's registration URL; the suggested fix is to add the same auth dependency to /regist...
null
BerriAI__litellm__26144
BerriAI/litellm
26,144
defect
26fcbc93e52d8f212f818d53c6922a0fdddb4d48
c770756cf3c82292e2bc561caf27342b6287c9a8
fix(bedrock_guardrails): use Bedrock OUTPUT source for apply_guardrail when scanning model responses
Cause BedrockGuardrail.apply_guardrail always called make_bedrock_api_request with source="INPUT", even when input_type="response" (post-call / model output). Bedrock guardrails often apply different policies for input vs output (e.g. PII/name rules only on output). Sending assistant text as INPUT led to action=NONE a...
diff --git a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py index 25b46cf36412..77b2f466f2aa 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py +++ b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py @...
2
1
1
[{"id": "G0", "claim": "The PR's new OUTPUT branch of apply_guardrail has no test coverage: the existing test with input_type=\"response\" passes an empty texts list so make_bedrock_api_request is never called, and a test passing non-empty texts and asserting source=\"OUTPUT\" with a synthetic ModelResponse is requeste...
null
BerriAI__litellm__26148
BerriAI/litellm
26,148
defect
26fcbc93e52d8f212f818d53c6922a0fdddb4d48
bd15e3f38b24d4a2d658c5ba44c299e70872ff72
fix(bedrock): allowlist Bedrock Invoke body fields and filter all anthropic-beta values
## Relevant issues Fixes a 400 from Bedrock Invoke when Claude Code (or any client on a newer Anthropic extension) calls `bedrock/us.anthropic.claude-opus-4-7` through the `/v1/messages` pass-through: ``` {"type":"error","error":{"type":"invalid_request_error","message":"context_management: Extra inputs are not permi...
diff --git a/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py b/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py index 31e0e76fd9f1..dc0d214e722e 100644 --- a/litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transforma...
1
1
0
[{"id": "G0", "claim": "The allowlist of top-level fields Bedrock Invoke accepts should be defined as a type (a Bedrock Invoke request body type) rather than an inline frozenset literal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BerriAI__litellm__26150
BerriAI/litellm
26,150
defect
ba820160ab82e831530c4fc1659fa14f078cfc60
5411ebedae0f77ed0832289ae877a75a1cca836f
[Infra] CI: speed up proxy unit tests and split proxy-utils into its own matrix entry
## Relevant issues ## Summary ### Problem Proxy unit tests on every PR / internal push are slow enough to materially slow feedback: - \`Unit Tests: Proxy DB Operations\` was hitting the 30-minute job cap at 98% (the \`remaining\` matrix entry). - A single xdist worker would sit running \`test_proxy_utils.py\` while ...
diff --git a/.github/workflows/test-unit-proxy-db.yml b/.github/workflows/test-unit-proxy-db.yml index 87e7e17feb7f..a631a7c30052 100644 --- a/.github/workflows/test-unit-proxy-db.yml +++ b/.github/workflows/test-unit-proxy-db.yml @@ -31,8 +31,15 @@ jobs: test-path: "tests/proxy_unit_tests/test_auth_checks...
3
2
0
[{"id": "G0", "claim": "The new proxy-utils matrix entry's `workers: 8` wastes 7 idle xdist workers for a single-module test file, and the entry's inline comment incorrectly states that the split prevents single-worker pinning under `--dist=loadscope`.", "category": "documentation", "verdict": "uncertain", "priority": ...
null
BerriAI__litellm__26160
BerriAI/litellm
26,160
defect
2f22a1293e7dd30f89de7a56d9a10ca3e9852ad4
dff4bfd735946e1006d33adef0286e557b6f0b62
fix(image_edit): forward litellm_params to validate_environment for Vertex AI credentials
## Summary Fixes Vertex AI image-edit failing with `DefaultCredentialsError` when credentials are passed via YAML config (e.g., Open WebUI). - `/images/generations` with identical config works fine - `/images/edits` ignores `vertex_credentials` / `vertex_project` kwargs - Root cause: handlers don't forward `lit...
diff --git a/litellm/llms/azure/image_edit/transformation.py b/litellm/llms/azure/image_edit/transformation.py index f476d6a94ee2..dffa1c9eea5a 100644 --- a/litellm/llms/azure/image_edit/transformation.py +++ b/litellm/llms/azure/image_edit/transformation.py @@ -14,6 +14,8 @@ def validate_environment( headers:...
2
1
0
[{"id": "G0", "claim": "In the mock config, `api_key: str = None` assigns None to a plain str-typed parameter; update it to `Optional[str] = None` to stay consistent with the base class signature.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "G...
null
BerriAI__litellm__26183
BerriAI/litellm
26,183
defect
7cc22dbe190597b81b184b745f267273db1b5eb1
41466eb31095934e04a5133c3ac8559ca7ccd289
fix(otel): preserve Splunk Observability Cloud trace OTLP endpoint
Splunk ingest uses /v2/trace/otlp; _normalize_otel_endpoint must not append /v1/traces. - Return trace endpoints unchanged when they match Splunk OTLP path patterns - Add unit tests for observability.splunkcloud.com, signalfx.com, and /trace/otlp suffix - Set OTEL_EXPORTER_OTLP_PROTOCOL in protocol selection tests...
diff --git a/litellm/integrations/opentelemetry.py b/litellm/integrations/opentelemetry.py index ecfb42cea7b1..4e04639195e0 100644 --- a/litellm/integrations/opentelemetry.py +++ b/litellm/integrations/opentelemetry.py @@ -2281,6 +2281,12 @@ def _normalize_otel_endpoint( # Remove trailing slash endpoi...
1
1
0
[{"id": "G0", "claim": "The `endswith(\"/trace/otlp\")` branch of the Splunk guard may be unintentionally broad, since it skips normalization for any URL ending in `/trace/otlp` regardless of origin, and tightening it to require `/v2/trace/otlp` (or documenting the breadth) would be safer.", "category": "correctness", ...
null
BerriAI__litellm__26195
BerriAI/litellm
26,195
defect
165c50343484a81f66f7ea199673b85d58b367d6
e5f3e1596902ac2841a0fff2d1caff6c95d79c52
Track per-member total spend on team memberships
## Summary Adds `total_spend` to `LiteLLM_TeamMembership` — a non-resetting counter that parallels the existing cycle-scoped `spend`, incremented in the same atomic `update_many` call and untouched by the budget reset job. Gives the Teams > Members UI a way to show lifetime spend per member instead of only current-cyc...
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260421135425_add_team_membership_total_spend/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260421135425_add_team_membership_total_spend/migration.sql new file mode 100644 index 000000000000..049bd513cd8e --- /dev/null +++ b/lit...
1
1
1
[{"id": "G0", "claim": "Moving `budget_reset_at` from `LiteLLM_BudgetTableFull` into the base `LiteLLM_BudgetTable` makes it user-settable through every budget write path that allowlists on `LiteLLM_BudgetTable.model_fields.keys()` (e.g. `NewOrganizationRequest`), so a caller could set it far in the future to prevent t...
null
BerriAI__litellm__26203
BerriAI/litellm
26,203
defect
26fcbc93e52d8f212f818d53c6922a0fdddb4d48
240c061fd95b470f59c9a05e3ba670623311a991
add moonshot/kimi-k2.6 to model registry
## Relevant Issues / Related PRs Adds Kimi K2.6 (released April 20, 2026) to the LiteLLM model registry. ## Pre-Submission Checklist - [x] I have added tests in `tests/litellm/` - [x] `make test-unit` passes for the modified tests ## Changes - Added `moonshot/kimi-k2.6` to `model_prices_and_context_window.json` an...
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 04b68b8f4ece..a47f0ebd0b33 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -22872,6 +22872,20 @@ "supports_v...
4
3
3
[{"id": "G0", "claim": "The PR description quotes different prices than what is in the JSON (the JSON is correct), so the stale description should be updated.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If kimi-k2.6 supports prompt caching like...
null
BerriAI__litellm__26204
BerriAI/litellm
26,204
defect
26fcbc93e52d8f212f818d53c6922a0fdddb4d48
cb90b8b26e46b1a7c50ce49591f3b43d6fcc6ac6
Fix bugs that bypasses per-team member budget limit
## Relevant issues Should address LIT-2466 and LIT-2467, both having to do with users exceeding budget limits. Three bugs in particular: - The Redis TTL (time to live) for the budget counts was set to a minute, if the value was not accessed within that time frame, it would get deleted and the user's budget usage ...
diff --git a/docs/my-website/docs/proxy/config_settings.md b/docs/my-website/docs/proxy/config_settings.md index a886a754f5e1..87eca63d6cd3 100644 --- a/docs/my-website/docs/proxy/config_settings.md +++ b/docs/my-website/docs/proxy/config_settings.md @@ -1092,6 +1092,7 @@ router_settings: | SPEND_LOG_CLEANUP_BATCH_SIZ...
4
3
1
[{"id": "G0", "claim": "`spend:user:` and `spend:org:` counters have no branch in `_reseed_spend_from_db` and reset to just the current increment after the 5-minute TTL expiry, letting users/orgs exceed their budget caps until the next DB flush, so `spend:user:` and `spend:org:` branches should be added.", "category": ...
null
BerriAI__litellm__26345
BerriAI/litellm
26,345
defect
2bfbb142b75156cebf61cdf32d8cd9753950c63b
114eadc288f61c8a0ddf23bd4e579dfc77767f37
feat: add gpt-5.5 to model cost map
## Relevant issues N/A — adds new model entry based on public OpenAI pricing announcement. ## Pre-Submission checklist **Please complete all items before asking a LiteLLM maintainer to review your PR** - [x] I have Added testing in the [`tests/test_litellm/`](https://github.com/BerriAI/litellm/tree/main/tests/test_...
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index bd959e3103aa..1cf7c1f6c7bb 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -19273,6 +19273,42 @@ "supports_x...
3
1
0
[{"id": "G0", "claim": "The $5.00/$30.00 per-million-token prices for the unreleased gpt-5.5 are pre-release values that could change when the model officially launches, which would leave litellm cost calculations silently wrong until the entry is updated.", "category": "correctness", "verdict": "uncertain", "priority"...
null
BetterDiscord__BetterDiscord__2172
BetterDiscord/BetterDiscord
2,172
defect
7a6a071acb58b4ca603398781a570c174cffd194
ff44246701f436f34c272656c7378994f6957051
Detect declarations with a custom parser rather than acorn
Parsing the ast of every module adds a little bit of time to startup and general overhead when loading things. This PR replaces acorn with a faster and much, much hackier parser. From my testing it is somewhere between 8x and 30x faster than actually using acorn. I have created a whole bunch of tests to confirm that th...
diff --git a/bun.lock b/bun.lock index 8285f7a32..5b3b39c20 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,6 @@ "": { "name": "betterdiscord", "dependencies": { - "acorn": "^8.16.0", "buffer": "^6.0.3", "clsx": "^2.1.1", "fast-equals": "^5.2.2", @@ -229,7 +228,7 @@ ...
10
5
1
[{"id": "G0", "claim": "The module path is derived from the function's toString() prefix instead of the webpack module id, so most modules get the same name and the generated //# sourceURL becomes non-unique (colliding in DevTools) and may contain spaces/invalid characters; prefer deriving path from the id as before.",...
null
BetterStackHQ__terraform-provider-better-uptime__136
BetterStackHQ/terraform-provider-better-uptime
136
defect
66a4ed31dd325b05b58af315db52b7cb81dccfb9
3819c27420d0a2507d9d111ecebc42ab92dc11ca
U-4293 Catalog resources
Add resources for working with Uptime Catalog, planned to release as `v0.15.0`. https://betterstack.com/docs/uptime/api/list-all-catalog-relations/ These are the example data: <img width="1012" alt="image" src="https://github.com/user-attachments/assets/05cfe32f-642b-49ec-bc8d-6bb7c244bb11" /> <img width="6...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15f56b6..60f6585 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: terraform-version: ["0.14", "1.0", "1.8", "latest"] - config: [examples/basic, exampl...
2
2
2
[{"id": "G0", "claim": "The README usage instructions should tell users to cd into examples/catalog instead of examples/basic.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The README's closing instructions about opening a status page via the bet...
null
BetterStackHQ__terraform-provider-better-uptime__139
BetterStackHQ/terraform-provider-better-uptime
139
defect
e9ff40465532e748e9e1bdf928699ee97bbff604
9bc271b301b438051c362c114b5e26f692b349fc
U-4293 Update Catalog docs and example
More real-life example of catalog usage, more detailed docs on how to use v3 metadata. <img width="773" alt="image" src="https://github.com/user-attachments/assets/1c64845f-a60c-492b-844d-a16e547bacc1" />
diff --git a/docs/resources/betteruptime_catalog_record.md b/docs/resources/betteruptime_catalog_record.md index d58122b..a1ed019 100644 --- a/docs/resources/betteruptime_catalog_record.md +++ b/docs/resources/betteruptime_catalog_record.md @@ -17,12 +17,12 @@ https://betterstack.com/docs/uptime/api/catalog-integration...
1
1
0
[{"id": "G0", "claim": "In the metadataValueSchema type description, the hyphenated compound 'go-to' should be used instead of 'go to' on the email field line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BetterStackHQ__terraform-provider-better-uptime__153
BetterStackHQ/terraform-provider-better-uptime
153
defect
6ce11102bdfbc1817503a4c56024577a9820ccd9
fbc41013b762c8644df4875526562dc3a1ccfff2
[U-1396] Add `environment_variables` attribute to `betteruptime_monitor`
The attribute reflects the same attribute in the Monitor API, which was recently added.
diff --git a/docs/data-sources/betteruptime_monitor.md b/docs/data-sources/betteruptime_monitor.md index 8664e2f..f4a223a 100644 --- a/docs/data-sources/betteruptime_monitor.md +++ b/docs/data-sources/betteruptime_monitor.md @@ -30,6 +30,7 @@ Monitor lookup. - `critical_alert` (Boolean) Whether to send a critical push...
3
3
0
[{"id": "G0", "claim": "The `environment_variables` map in the advanced example should use `=` instead of `:` for its key assignment, to stay consistent with the test cases and other examples.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The a...
null
BiboyQG__WeChat-MCP__3
BiboyQG/WeChat-MCP
3
defect
142d60cffc685964fff0260bec05887360fea92c
e6e6eab8d30575e0a112145980c29a2050bf096f
feat: publish Moments post without media
## Summary - Add a new MCP tool `publish_moment_without_media` to publish text-only WeChat Moments posts (no photos or videos), with an optional `publish` flag to control whether the post is actually submitted. - Centralize shared Accessibility helpers for finding/waiting on windows and introduce a reusable long-pr...
diff --git a/README.md b/README.md index 8af3985..ac76198 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ An MCP server that automates WeChat on macOS using the Accessibility API and scr - 📨 Fetch recent messages from any chat (contact or group) - ✍️ Send automated replies based on chat history +- 📷 Pu...
8
6
1
[{"id": "G0", "claim": "The two test files are duplicates with identical content, and the new file's docstring references tests.manual_publish_moment_test instead of its own module name, which can cause confusion and maintenance issues.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
BishopFox__sliver__1397
BishopFox/sliver
1,397
defect
5c9b4a6af7162efdfaf2cc71ac09db6c9136e838
33613d25da2375bd9a033642b21678d9bad5aec0
multimanifest extension support
#### Card IDK what a Card is #### Details Allowed for extension manifests to be in an array, as well as a single json object. This should allow for a single manifest per repo in the cases where multiple BOF's (or multiple DLL's I guess) are present, and the structure of the repo might make having manifests per-fol...
diff --git a/client/command/armory/armory.go b/client/command/armory/armory.go index e575475bb3..256d84bfdc 100644 --- a/client/command/armory/armory.go +++ b/client/command/armory/armory.go @@ -141,7 +141,7 @@ func ArmoryCmd(cmd *cobra.Command, con *console.SliverConsoleClient, args []stri if cacheEntry.Pkg.IsAli...
1
1
1
[{"id": "G0", "claim": "The dependency lookup menu should be obtained as the root menu and passed directly to extensions.CmdExists instead of using sliverMenu.Command.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1006
BitcoinUnlimited/BitcoinUnlimited
1,006
defect
f7cb6ffbbd86270a062e59f2daa958aea98dbe22
330553f4a5eae6fb3b516344e4583c2a696b515f
QA Core ports
Again leveraging @dagurval's work on XT (https://github.com/bitcoinxt/bitcoinxt/pull/319) in porting a series of improvements on QA frameworks bitcoin/bitcoin#8047 - [qa] test_framework: Set wait-timeout for bitcoind procs bitcoin/bitcoin#8095 - Test framework: only cleanup on successful test runs bitcoin/bitcoin...
diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py index 989a0aed120..4c7e6234836 100755 --- a/qa/rpc-tests/test_framework/mininode.py +++ b/qa/rpc-tests/test_framework/mininode.py @@ -382,7 +382,7 @@ def got_data(self): def send_message(self, message, pushbuf=False): ...
1
1
1
[{"id": "G0", "claim": "The static proxy-credential counter added in ConnectThroughProxy should be initialized to a random value instead of defaulting to 0, so credentials are not identical at every process start.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1008
BitcoinUnlimited/BitcoinUnlimited
1,008
defect
21d56ff45b239ed65ce6b5088cbe9a2954d1bed2
75df382d609c56c16a0d25bcf5de01cd925bc154
add op_datasigverify as an optional (currently disabled) op code.
Also, refactor the common operation of message signing into a separate function.
diff --git a/doc/opdatasigverify.md b/doc/opdatasigverify.md new file mode 100644 index 00000000000..d9c7e8ddcdc --- /dev/null +++ b/doc/opdatasigverify.md @@ -0,0 +1,118 @@ +# Enable oracle-based data import via OP_DATASIGVERIFY + +Version 0.2, 2018-02-22 + +## Introduction + +OP_DATASIGVERIFY allows signed data to be...
10
9
4
[{"id": "G0", "claim": "CScript::GetSigOpCount should count OP_DATASIGVERIFY only when enableDataSigVerify is set, instead of counting it unconditionally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The two signmessage overloads in sign.cpp dupli...
null
BitcoinUnlimited__BitcoinUnlimited__1091
BitcoinUnlimited/BitcoinUnlimited
1,091
defect
162adeae3289ab41c622aa768eadfebb57b102c7
1a4b31e2ffd9253574acf290df4fc135a8c87b79
Fuzzer update
To make it easier to write fuzzing cases and so that fuzzing can potentially be used in later automated "integration-fuzzing" steps, I updated the command line driver for fuzzing. There's still a lot that can be done on the fuzzing front; IMO code that faces the network should be made "fuzzable" as much as possible ...
diff --git a/doc/fuzzing.md b/doc/fuzzing.md index 1b63830bb69..2944cfe1a19 100644 --- a/doc/fuzzing.md +++ b/doc/fuzzing.md @@ -5,6 +5,10 @@ A special test harness `test_bitcoin_fuzzy` is provided to provide an easy entry point for fuzzers and the like. In this document we'll describe how to use it with AFL. +Comp...
2
2
1
[{"id": "G0", "claim": "The new LLVM persistent-mode paragraph in doc/fuzzing.md is insufficient: the compilation it describes does not generate afl-clang-fast/afl-clang-fast++, and building with them (or the plain afl binaries) fails with linker errors, so the docs should add hints on building AFL properly (llvm_mode ...
null
BitcoinUnlimited__BitcoinUnlimited__1095
BitcoinUnlimited/BitcoinUnlimited
1,095
defect
40ea4c8106ece21d60317d0b3c092cb1e8a066eb
b35dcb7b88aa8831005054baeebf7294d8782b5f
Extend CTransactionRef into the Wallet
This PR is mainly about extending CTransationRef into the Wallet which also requires it then in ZMQ. There is also a bit of cleanup work with the C++11 range loops and also a bug fix for a missing cs_main lock. Once all this is merged we'll be better prepared for brinGing in the HD wallet.
diff --git a/src/wallet/crypter.cpp b/src/wallet/crypter.cpp index dc264454f93..0d30955e472 100644 --- a/src/wallet/crypter.cpp +++ b/src/wallet/crypter.cpp @@ -302,7 +302,7 @@ bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial &vMasterKeyIn) return false; fUseCrypto = true; - BOOST_FOREAC...
3
3
0
[{"id": "G0", "claim": "Remove the now-unused #include <boost/foreach.hpp> from src/wallet/crypter.cpp, since the pull request removed the file's last BOOST_FOREACH instance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unused #incl...
null
BitcoinUnlimited__BitcoinUnlimited__1109
BitcoinUnlimited/BitcoinUnlimited
1,109
defect
aaaf73ca9a8856fcfb20b0f96fbab4103c173bd3
ca42e07ddf43c84ef20448213bf369007d307297
Double spend relaying
Re-submit of PR https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/1018
diff --git a/src/Makefile.am b/src/Makefile.am index 71371e4b508..84db481af44 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -153,6 +153,10 @@ BITCOIN_CORE_H = \ rpc/protocol.h \ rpc/server.h \ rpc/register.h \ + respend/respendaction.h \ + respend/respendlogger.h \ + respend/respendrelayer.h \ + re...
12
2
0
[{"id": "G0", "claim": "The changes to bloom.cpp/bloom.h should be resubmitted as a separate pull request rather than being part of this one.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Applying RateLimitExceeded to the free-transaction rate li...
null
BitcoinUnlimited__BitcoinUnlimited__1111
BitcoinUnlimited/BitcoinUnlimited
1,111
defect
eb7cd1d0044511f6de20847f7f875d1b3c72095e
886bd8928a0b2b773326d0f4d33514f811837317
Ensure cs_utxo is locked by the caller when a coin reference is returned
Thanks to @dagurval for catching this bug. AccessCoin() and AccessByTxid() both return references to a coin in the dbcache. The caller of those functions has to make sure the cs_utxo locked during the time the returned coin reference is being used, so by using AssertLockHeld() at the beginning of both AccessCoin() ...
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 4fde6af1b87..7d533de29a2 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -496,6 +496,7 @@ static void MutateTxSign(CMutableTransaction &tx, const string &flagStr) CScript scriptPubKey(pkData.begin(), pkData.end()); { + ...
2
2
1
[{"id": "G0", "claim": "CheckTxInputs would be cleaner and hold cs_utxo for less time if the lock only protected copying the needed values out of \"coin\" at the top of the loop body instead of leaving and re-entering the lock inside the coinbase branch.", "category": "maintainability", "verdict": "supported", "priorit...
null
BitcoinUnlimited__BitcoinUnlimited__1176
BitcoinUnlimited/BitcoinUnlimited
1,176
defect
740bc460db49806832e626b140d53e0d4a666724
fcfbeeca798835ab274ebbe48825337dd2a0f0b5
Fixes shadowing warnings
Since #1171 and #1172 got merged, if the compiler supports it, a lot of warnings started to be raised during the build process. This PR is taking care at the most obvious warnings generated by `-Wshadow`flag, e.g. : ``` connmgr.cpp:38:46: warning: declaration shadows a variable in the global namespace [-Ws...
diff --git a/src/stat.h b/src/stat.h index f1f1f3b168f..4310ab6b425 100644 --- a/src/stat.h +++ b/src/stat.h @@ -69,9 +69,9 @@ class CStatBase virtual ~CStatBase(){}; virtual UniValue GetNow() = 0; // Returns the current value of this statistic virtual UniValue GetTotal() = 0; // Returns the cumulative v...
3
3
0
[{"id": "G0", "claim": "The stat.h parameter renames should use a leading underscore (e.g. _name) instead of the 'p' suffix, since these parameters are references, not pointers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Several commit messa...
null
BitcoinUnlimited__BitcoinUnlimited__1184
BitcoinUnlimited/BitcoinUnlimited
1,184
defect
6374175980589dfe04f0aadde5b93f0cffb031d5
8938b7a8be3f6cf80996df6792ca14a75c6848ac
Simplify RPC command registration
Also get rid of the premature optimization that is avoiding copies of the CRPCCommand structs when registering the RPCs.
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index ddd2c184b55..e44376f454d 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1141,8 +1141,8 @@ static const CRPCCommand commands[] = { {"hidden", "rollbackchain", &rollbackchain, true}, }; -void RegisterBlockchainRPCCommands(CRP...
1
1
0
[{"id": "G0", "claim": "Use `nullptr` instead of `NULL` for the null return in `CRPCTable::operator[]`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
BitcoinUnlimited__BitcoinUnlimited__1204
BitcoinUnlimited/BitcoinUnlimited
1,204
defect
1bf3cf81fe1f02f5bb65684d71fdd706ca8fcc6b
f74d296fd255db1e9cd9491907def28f80cfafb2
Allow to enter logging flags separated by comma
This allows to specify multiple logging categories separated by comma on the command line, like this: ```./bitcoind -debug=net,rpc,req```
diff --git a/src/allowed_args.cpp b/src/allowed_args.cpp index 623a58daa76..27e167b6771 100644 --- a/src/allowed_args.cpp +++ b/src/allowed_args.cpp @@ -511,8 +511,9 @@ static void addDebuggingOptions(AllowedArgs &allowedArgs, HelpMessageMode mode) DEFAULT_DESCENDANT_SIZE_LIMIT)) .add...
1
1
1
[{"id": "G0", "claim": "The new splitByCommas helper should also consume whitespace after a comma so that comma-separated logging flags entered with spaces, like \"two, three\", work.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1240
BitcoinUnlimited/BitcoinUnlimited
1,240
defect
3c916d3b7bde94c134d9cc82ca577a7471a57233
b4942177ba85969d4d22ff55ba7f60c7c1a95462
Do not relay double spends to SPV clients.
Relaying double spends to SPV clients can be easily attacked. An attacker could intially send tx1 to their own wallet. Then send a double spend (tx2) to another merchant's SPV wallet. The merchant will never see tx1 but will see and receive tx2, however, tx2 will not get mined since the miners node will see tx2 b...
diff --git a/src/net.cpp b/src/net.cpp index 0b34f468c80..8774d6077ee 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2479,15 +2479,15 @@ void NetCleanup() } -void RelayTransaction(const CTransaction &tx) +void RelayTransaction(const CTransaction &tx, bool fDoubleSpend) { CDataStream ss(SER_NETWORK, PROTOCOL_...
4
2
1
[{"id": "G0", "claim": "The new bool parameter should be named fRespend, since it is not necessarily an attempted or successful economic double-spend.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Every transaction appears to go through the IsR...
null
BitcoinUnlimited__BitcoinUnlimited__1254
BitcoinUnlimited/BitcoinUnlimited
1,254
defect
43aa7a05327acd2e4c5415d6b3779f0c154783d1
ed083493f7261da29df67e9b4eab74590ee2ca6c
Disable a debug log category if prefixed with '-'
This would be particular useful when you want to have all categories enabled but one, e.g. now you can use debug=all,-selectcoins, especially when `bitcoind` is executed automatically, e.g. via the python functional tests suite.
diff --git a/src/util.cpp b/src/util.cpp index 7e0547baa92..ba76bcadf3b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -161,7 +161,6 @@ std::string LogGetAllString() if (x.first == ALL || x.first == NONE) continue; - // ret += (std::string)x.second; if (LogAcceptCategory(x.first...
6
5
2
[{"id": "G0", "claim": "The commit message should say 'commented-out code' rather than 'dead code', since dead code normally means unreachable code.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new doc comment in src/util.h misspells 'contai...
null
BitcoinUnlimited__BitcoinUnlimited__1283
BitcoinUnlimited/BitcoinUnlimited
1,283
defect
068934ffe08f02594c4182a42e0526e6f0904cfc
e227682150a814322bd60a02f201bf6ec39ccadc
(port from giga_perf) Implement shared lock semantics for the UTXO
Implement shared lock semantics for the UTXO coins database. The Coins API calls were also returning a Coin object whose life extended beyond the lock so new objects were created that provide access to the Coin and also manage the lock. Also 2 small unrelated changes to make the QA work which we may revert.
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py index b5965ab270e..f846222ef43 100644 --- a/qa/rpc-tests/test_framework/util.py +++ b/qa/rpc-tests/test_framework/util.py @@ -323,7 +323,7 @@ def initialize_datadir(dirname, n, bitcoinConfDict=None, wallet=None, bins=None) retur...
9
8
1
[{"id": "G0", "claim": "The SaltedOutpointHasher return type should be left as uint64_t, since boost's unordered_map is no longer used and the size_t change (and its comment) is unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The com...
null
BitcoinUnlimited__BitcoinUnlimited__1300
BitcoinUnlimited/BitcoinUnlimited
1,300
defect
2385b047d3fe40dba11f342b44bf480b0a0f0d47
62e3c13407b1d15fd1e97c6af2276f7a8bbe06ed
move fastfilter from gigaperf, add unit tests
This PR does not use the fastfilter object, but use will be ported over from gigaperf soon.
diff --git a/src/.formatted-files b/src/.formatted-files index dc770157669..df686246cdf 100644 --- a/src/.formatted-files +++ b/src/.formatted-files @@ -65,6 +65,7 @@ dstencode.cpp dstencode.h expedited.cpp expedited.h +fastfilter.h globals.cpp hash.cpp hash.h @@ -284,6 +285,7 @@ test/DoS_tests.cpp test/excessiv...
4
4
1
[{"id": "G0", "claim": "The class documentation should explain how this filter differs from the usual Bloom filter and what its intended uses are.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out printf statements in the test file ...
null
BitcoinUnlimited__BitcoinUnlimited__1323
BitcoinUnlimited/BitcoinUnlimited
1,323
defect
d202c9c1701c20edab7f4456e69e0583fa50d53c
550153de0fcb95b47e3645e85a98da6559fcf931
parallelize message processing
PING/PONG can be used as network serialization points Includes changes to enable nolnet testing, and enables 1 minute nolnet blocks (we can change this back after some testing if desired) Includes changes to the QA framework for reliability
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py index bc82abd19a4..82d6e301ecb 100755 --- a/qa/pull-tester/rpc-tests.py +++ b/qa/pull-tester/rpc-tests.py @@ -451,6 +451,7 @@ def get_next(self): log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16, mode="w+") log_std...
4
3
0
[{"id": "G0", "claim": "The PR should use std::unique_lock and std::mutex instead of the boost equivalents.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "LOCK(pfrom->cs_filter) should be placed inside the newly added braces rather than before t...
null
BitcoinUnlimited__BitcoinUnlimited__1331
BitcoinUnlimited/BitcoinUnlimited
1,331
defect
c4ec64cf96ca849294b9ff708367e227be40f680
6328ca441229e97720fe609b8b4adfa979451f19
November 2018 activation code
Summary: - Activation code for May 2018 has been removed completely since all the changes (blk size, new op_codes) where never used before the fork. - EB default value changed to 32MB, before it was changed during init step - EB value can't be lower than 32MB, this was the case also before these set of change...
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py index 82d6e301ecb..a86fa4abd6a 100755 --- a/qa/pull-tester/rpc-tests.py +++ b/qa/pull-tester/rpc-tests.py @@ -186,8 +186,8 @@ def option_passed(option_without_dashes): 'cashlibtest', 'tweak', 'notify', - 'may152018_forkactivation_1...
9
6
0
[{"id": "G0", "claim": "The removed setup_network mocktime block in qa/rpc-tests/excessive.py (line 82 area) could have been condensed with a for loop to save two lines of code.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The four consecutive...
null
BitcoinUnlimited__BitcoinUnlimited__1353
BitcoinUnlimited/BitcoinUnlimited
1,353
defect
8f1e2cf841cf2f5cf795379b02fee27a69db18d6
b5a5cc539c5f0c2d81f511bfca23c6b76731f524
Fastfilter enhancements
Implement filters with K (# hashes) between 2 and 16. Add a salt to prevent hash collision attacks. Currently many filters are configured for m=4 million bits. With k=16 and n=100000 transactions, this results in a false positive rate of 1.94 × 10^-8, based on the FP rate equation (1-e^(-kn/m))^k.
diff --git a/src/fastfilter.h b/src/fastfilter.h index 99254c0f4ba..241c03cc73b 100644 --- a/src/fastfilter.h +++ b/src/fastfilter.h @@ -27,13 +27,15 @@ class uint256; * but "inserts" may be lost. However, if you are using this class as an in-ram filter before doing a more expensive * operation, a lost insert may ...
11
4
1
[{"id": "G0", "claim": "The reviewer questions why the static_assert forbids HASHES below 2 (why two as minimum).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hash-calculation code duplicated across checkAndSet, insert and contains should be replac...
null
BitcoinUnlimited__BitcoinUnlimited__1418
BitcoinUnlimited/BitcoinUnlimited
1,418
defect
a767875424de9e381f9bad2ef6251b926f913270
76f2e6d8e39d52ab2e62aa2816f7b1127457581f
Turn graphene on by default
This also required a couple of edge cases to be fixed in the request manager which were giving us trouble in the python tests. Still needs work adding test cases to the request manager if possible. Also this introduces a performance issue since now we have the check for if we have peers very frequently which lock c...
diff --git a/src/main.h b/src/main.h index 4712a12eed9..9bb7b78efe8 100644 --- a/src/main.h +++ b/src/main.h @@ -149,7 +149,7 @@ static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8; static const bool DEFAULT_PEERBLOOMFILTERS = true; static const bool DEFAULT_USE_THINBLOCKS = true; -static const bool DEFAULT_USE_GR...
1
1
0
[{"id": "G0", "claim": "The condition `!IsGrapheneBlockEnabled() || (IsGrapheneBlockEnabled() && !graphenedata.CheckGrapheneBlockTimer(obj.hash))` is redundant; a single IsGrapheneBlockEnabled() check is sufficient.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1426
BitcoinUnlimited/BitcoinUnlimited
1,426
defect
81b464ddbf61e570e278e59dfbae3c73c4effac9
72b4566a70b2e989893564b49db9977c78ae09e1
Improve Graphene decode rates by padding IBLT
Graphene block decode rates can be >10% at times and even under good conditions they typically hover around 2%. These failures greatly slow block propagation because an XThin block must be sent as a failover. The root of the problem is that the Graphene code optimistically assumes that the receiver mempool contains all...
diff --git a/src/blockrelay/graphene.cpp b/src/blockrelay/graphene.cpp index 912b0ac0005..e9f9314bb73 100644 --- a/src/blockrelay/graphene.cpp +++ b/src/blockrelay/graphene.cpp @@ -27,7 +27,7 @@ static bool ReconstructBlock(CNode *pfrom, const bool fXVal, int &missingCount, CMemPoolInfo::CMemPoolInfo(uint64_t _nTx) ...
4
2
0
[{"id": "G0", "claim": "The pull request makes two unit tests in txvalidationcache_tests fail: tx_mempool_block_doublespend (ToMemPool(spends[0]) and ToMemPool(spends[1]) return false) and uncache_coins (ToMemPool and HaveCoinInCache checks fail).", "category": "correctness", "verdict": "uncertain", "priority": "P0", "...
null
BitcoinUnlimited__BitcoinUnlimited__1472
BitcoinUnlimited/BitcoinUnlimited
1,472
defect
617fd9998c72e53b967b5d90ab8e9589ac217d46
8f48518f59d5703fb331087313d2390e7ba3741a
Extend CTransactionRef into a few more areas
Almost there, at least for the transaction ref's...just the mempool and coins are left to do.
diff --git a/src/bloom.cpp b/src/bloom.cpp index af5e60596ee..9a0ec06b77d 100644 --- a/src/bloom.cpp +++ b/src/bloom.cpp @@ -182,7 +182,7 @@ bool CBloomFilter::IsWithinSizeConstraints() const return vData.size() <= SMALLEST_MAX_BLOOM_FILTER_SIZE && nHashFuncs <= MAX_HASH_FUNCS; } -bool CBloomFilter::IsRelevantA...
1
1
0
[{"id": "G0", "claim": "The #include \"primitives/transaction.h\" this pull request adds to src/bloom.h could be replaced with a forward declaration of CTransactionRef to avoid importing the whole header (raised as a minor nit).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
BitcoinUnlimited__BitcoinUnlimited__1524
BitcoinUnlimited/BitcoinUnlimited
1,524
defect
119e8cb001cf0489409dca717c0970c7312dc190
10417d5ff5388e820b56937184087a94651a2088
Refactor tracking of thin type blocks in flight. (pre-req for compact blocks)
Move tracking of thin type block out of CNode and into a new "thintype" singleton class. This removes a great deal of redundant code from thinblock.cpp and graphene.cpp and makes the code much easier to maintain particularly in RequestBlock() in the requestManager.cpp. Consolidate the thinblock/grapheneblock time...
diff --git a/qa/rpc-tests/thinblocks.py b/qa/rpc-tests/thinblocks.py index aeda1bcbbfe..aa992d7e77e 100755 --- a/qa/rpc-tests/thinblocks.py +++ b/qa/rpc-tests/thinblocks.py @@ -22,6 +22,7 @@ def setup_network(self, split=False): node_opts1 = [ "-rpcservertimeout=0", "-debug=thin", + ...
5
4
2
[{"id": "G0", "claim": "Calling blocks encoded by xthin, compact or graphene \"thin type blocks\" is confusing because \"thin\" already means xthin-style blocks in this codebase, so another label should be considered for them.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduc...
null
BitcoinUnlimited__BitcoinUnlimited__1525
BitcoinUnlimited/BitcoinUnlimited
1,525
defect
81b464ddbf61e570e278e59dfbae3c73c4effac9
cbf73ac232e0488c429c7ebc100ca9d1b3da3f74
Improve optimization
In Graphene currently, brute force search is used to determine the optimal size for the IBLT relative to the Bloom filter. This is a reasonable choice for small blocks, but as block sizes grow it will become too inefficient. The [original Graphene](https://people.cs.umass.edu/~gbiss/graphene.pdf) paper derived a formul...
diff --git a/src/blockrelay/graphene.cpp b/src/blockrelay/graphene.cpp index 912b0ac0005..e9f9314bb73 100644 --- a/src/blockrelay/graphene.cpp +++ b/src/blockrelay/graphene.cpp @@ -27,7 +27,7 @@ static bool ReconstructBlock(CNode *pfrom, const bool fXVal, int &missingCount, CMemPoolInfo::CMemPoolInfo(uint64_t _nTx) ...
1
1
0
[{"id": "G0", "claim": "Rename APPROX_NITEMS_THRESH to APPROX_ITEMS_THRESH and APPROX_NEXCESS_RATE to APPROX_EXCESS_RATE, since the N in the names is not needed and dropping it is clearer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1551
BitcoinUnlimited/BitcoinUnlimited
1,551
defect
736db440b53d5fac8e3f1080f73f5aa93424e22c
113a6f133ece183355fee89e249280b3f2ae233c
Use SipHash for cheap hashes in Graphene
This PR replaces all calls to GetCheapHash with a 64 bit SipHash. Some of the SipHash setup was taken from work that was done on Compact Blocks by @TheBlueMatt. SipHashes are used only when graphene sender and receiver versions are both greater than or equal to 2.
diff --git a/qa/rpc-tests/ctor.py b/qa/rpc-tests/ctor.py index c8406b3ed94..3c4e9995005 100755 --- a/qa/rpc-tests/ctor.py +++ b/qa/rpc-tests/ctor.py @@ -212,7 +212,10 @@ def run_test (self): if __name__ == '__main__': - MyTest ().main (bitcoinConfDict={"limitdescendantsize": 50,FORK_CFG: 0}) + MyTest ().main...
8
6
0
[{"id": "G0", "claim": "The Matt Corallo email used is wrong; it should be git@bluematt.me.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The commented-out `//return txhash.GetCheapHash();` line in GetShortID should be removed.", "category": "mainta...
null
BitcoinUnlimited__BitcoinUnlimited__1577
BitcoinUnlimited/BitcoinUnlimited
1,577
defect
a57fff093116677e3fef2ce67a94dbc74c19c0ff
2aabdbc4a707bcbf89130d0ad5f6a3cc0b4e5a3a
Use UniValue.pushKV rather than push_back(Pair())
This is basically a scripted diff: ```sh $> grep -Fr "push_back(Pair" src/ | awk -F ':' '{print $1}' | sort | uniq | xargs -I {} sed --in-place -e 's/push_back(Pair/pushKV/' {} $> grep -IFr pushKV src/ | awk -F ':' '{print $1}' | sort | uniq | xargs -I {} sed --in-place -e '/pushKV/s/))/)/' {} ``` This include...
diff --git a/src/bitcoin-miner.cpp b/src/bitcoin-miner.cpp index 46057034b05..551afddb0d7 100644 --- a/src/bitcoin-miner.cpp +++ b/src/bitcoin-miner.cpp @@ -280,11 +280,11 @@ static UniValue CpuMineBlock(unsigned int searchDuration, const UniValue &params printf("Solution! Checked %d possibilities\n", header.nNonc...
1
1
1
[{"id": "G0", "claim": "The closing right parenthesis is missing on all of these BOOST_CHECK(obj.pushKV(...)) test lines in src/univalue/test/object.cpp, which would fail to compile.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1582
BitcoinUnlimited/BitcoinUnlimited
1,582
defect
53499fd9ca46601454940bba6a1a49804d538a94
40919714ec6a31518ea491c9e3c225b0c503f5e9
Seed IBLT hash functions
Previously, in the construction of a CGrapheneSet, the ith hash function operating on input x always evaluated to the same value across all instantiations. This is undesirable because IBLT decode failures, which are pseudo-random, have the potential to occur for multiple peers when reconciling the same block. The pr...
diff --git a/src/blockrelay/graphene.cpp b/src/blockrelay/graphene.cpp index 309a7bb3850..09a901f9d96 100644 --- a/src/blockrelay/graphene.cpp +++ b/src/blockrelay/graphene.cpp @@ -29,10 +29,24 @@ static bool ReconstructBlock(CNode *pfrom, int &missingCount, int &unnecessaryCo CMemPoolInfo::CMemPoolInfo(uint64_t _nT...
5
2
1
[{"id": "G0", "claim": "The mutable member declaration `shorttxidk0, shorttxidk1` appears twice in CGrapheneSet, apparently a rebase artifact, and the reviewer asks whether the PR was correctly rebased on the previous one.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"...
null
BitcoinUnlimited__BitcoinUnlimited__1591
BitcoinUnlimited/BitcoinUnlimited
1,591
defect
2e3af3cbcc0598d5d960471be7e16ea16b356359
956dda5eab69d4bb43f0f3f4ca7eb7337fc876ac
implement recursive_shared_mutex
__NOTE__ _This PR depends itself does not depend on #1553 because it does not replace any of the mutexs currently used in the code with recursive shared mutexs. However, a recursive shared mutex does require that the threads that call for a lock are std::threads which is a not true of all threads in the code base until...
diff --git a/src/Makefile.am b/src/Makefile.am index ad4c7104232..5a7a4e08738 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -165,6 +165,7 @@ BITCOIN_CORE_H = \ pow.h \ protocol.h \ random.h \ + recursive_shared_mutex.h \ reverselock.h \ rpc/client.h \ rpc/protocol.h \ @@ -459,6 +460,7 @@ libb...
8
8
2
[{"id": "G0", "claim": "The tests never take two or more shared locks in a row on the same thread, so recursive/consecutive shared locking is untested; add a test that takes many shared locks in a loop.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
BitcoinUnlimited__BitcoinUnlimited__1598
BitcoinUnlimited/BitcoinUnlimited
1,598
defect
12de2b41978fd6fb46f7fd0493d3110bb77dec60
8085c3b35c1ccc7758a6f1376c99625901910edb
add HasData() methods to CTransaction
These methods return whether a transaction has OP_RETURN data fields, and whether at least one of those fields match the passed OP_RETURN protocol id following the spec defined here: https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/op_return-prefix-guideline.md
diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp index 23ce1d4c1e0..4735388f1fb 100644 --- a/src/primitives/transaction.cpp +++ b/src/primitives/transaction.cpp @@ -161,3 +161,29 @@ size_t CTransaction::GetTxSize() const nTxSize = ::GetSerializeSize(*this, SER_NETWORK, CTransaction:...
1
1
0
[{"id": "G0", "claim": "Iterate vout by reference (for (auto &out : vout)) instead of copying each output, in both HasData() overloads and likewise further down.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1603
BitcoinUnlimited/BitcoinUnlimited
1,603
defect
7ccb243f87af3341c4d003ff3d47ee5846612693
8eee99a7e4e8745b73f1b1707aa01f23401bdb92
Allow Graphene to use variant of CFastFilter
Currently, Graphene uses CBloomFilter to store the hash values of transactions in the block. Insertion and lookup of a given transaction hash require multiple murmur hashes in order to determine which bits to set in the filter. CFastFilter is an alternative to CBloomFilter the uses the entropy in the transaction hash i...
diff --git a/qa/rpc-tests/graphene_optimized.py b/qa/rpc-tests/graphene_optimized.py new file mode 100755 index 00000000000..c77c710c077 --- /dev/null +++ b/qa/rpc-tests/graphene_optimized.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python3 +# Copyright (c) 2018 The Bitcoin Unlimited developers +# Distributed under the MIT sof...
12
9
5
[{"id": "G0", "claim": "There seems to be a formatting problem in blockrelay/graphene.h that is failing CI.", "category": "style", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The newly added nGrapheneBloomfilterSize member of CNode is never initialized and needs to be initializ...
null
BitcoinUnlimited__BitcoinUnlimited__1611
BitcoinUnlimited/BitcoinUnlimited
1,611
defect
9bdd7950d7bca7e8a60e59b3e20df1f275ef65ee
31516c821e8e732c3cc519d163909eaaf699ec59
Refactor Xthin data out of CNode
Take any xthin related data out of CNode. Carry the xthin data, in memory, directly in the thinblock or xthinblock. Furthermore store the xthinblock/thinblock's as smart pointers within a class CBlock_ThinRelay which itself is derived from CBlock(). This way way just can pass around a shared pointer to the CBlock_Th...
diff --git a/src/blockrelay/blockrelay_common.cpp b/src/blockrelay/blockrelay_common.cpp index 0f3348c827c..52259cce410 100644 --- a/src/blockrelay/blockrelay_common.cpp +++ b/src/blockrelay/blockrelay_common.cpp @@ -186,6 +186,7 @@ bool ThinTypeRelay::AddBlockInFlight(CNode *pfrom, const uint256 &hash, const st ...
4
4
0
[{"id": "G0", "claim": "Use curly braces around the else return statement in GetBlockToReconstruct.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "dev appears to use one shared data structure (mapMissingTx on CNode) to store missing transactions...
null
BitcoinUnlimited__BitcoinUnlimited__1721
BitcoinUnlimited/BitcoinUnlimited
1,721
defect
3100334f132a59d09170bbd6d4cecd38d42e78e0
e44c265c3f065e5a19871848c883ff5850230b59
[Giga-Net:] Add a priority queue for urgent message processing
This is an improvement from the current method of rotating any priority messages to the front of the queue..for one it won't cause messages to be out of the order that they were received, like rotate will do sometimes. Furthermore, messages will be processed right away, whereas with rotate you will only get priority pr...
diff --git a/qa/rpc-tests/thinblocks.py b/qa/rpc-tests/thinblocks.py index aa992d7e77e..4b909e2e27f 100755 --- a/qa/rpc-tests/thinblocks.py +++ b/qa/rpc-tests/thinblocks.py @@ -22,6 +22,7 @@ def setup_network(self, split=False): node_opts1 = [ "-rpcservertimeout=0", "-debug=thin", + ...
9
6
2
[{"id": "G0", "claim": "The partial-message lines in net_processing.cpp are mis-indented and need reformatting, as shown in sickpig's corrected diff.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The sendeheaders.py test is failing.", "category": ...
null
BitcoinUnlimited__BitcoinUnlimited__1722
BitcoinUnlimited/BitcoinUnlimited
1,722
defect
e99d6f54d3edb16bb5c80e3cd7eb4a0f328753fe
c8faccd6bcfba890327711b6e3b7af911f561eb9
Remove sv features
I would like feedback on if the second commit should be changed from deletion to simply commenting out the code. It might be useful to keep the test and test data around for the SV op codes in the event BCH does re-enable these codes in the future.
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 4b1ceb745fd..58dfc69fb88 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -19,7 +19,6 @@ #include "chainparamsseeds.h" -uint64_t nMiningSvForkTime = 0; // FIXME This need to be update every new fork uint64_t nMiningForkTime = 1557921600; ...
6
3
0
[{"id": "G0", "claim": "The checkpoint-setting code should be moved back from src/unlimited.cpp into src/chainparams.cpp, reverting ptschip's earlier commit, so all checkpoint data lives in one place.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ...
null
BitcoinUnlimited__BitcoinUnlimited__1730
BitcoinUnlimited/BitcoinUnlimited
1,730
defect
c3b489402145fa775dff601c2ad6029727596b99
e250270781636fee4de930c4a29771a075f9bde1
[elects] Bump to version 0.6.1
Bump electrs to 0.6.1 I also added a basic reorg test. This test would triggering an assert in electrs and thus fail with previous version. [Full change log](https://github.com/romanz/electrs/blob/master/RELEASE-NOTES.md)
diff --git a/contrib/electrs/build_electrs.py b/contrib/electrs/build_electrs.py index f5ca03c2d8c..0576b23e146 100755 --- a/contrib/electrs/build_electrs.py +++ b/contrib/electrs/build_electrs.py @@ -5,8 +5,8 @@ import sys import shutil GIT_REPO = "https://github.com/dagurval/electrs.git" -GIT_BRANCH = "v0.5.0bu" -...
2
2
0
[{"id": "G0", "claim": "The new test files carry the wrong copyright year (2015-2017 instead of 2019).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Register the electrum tests with an ENABLE_ELECTR build-time variable, like the existing ENABLE_Z...
null
BitcoinUnlimited__BitcoinUnlimited__1754
BitcoinUnlimited/BitcoinUnlimited
1,754
defect
6a84749c51ad518b191cedb4ba9e8431d3aa7613
c1f2e811fe093ce1e37efe9cf2f65c51031745fe
A few relatively minor thinrelay changes
Don't ban peers for merkelblock failure when reconstructing from a thintype block. Basically making it less ban prone in the event a block fails to reconstruct properly for any reason. In a few areas we were passing references to shared pointers (not a good practice) instead of the shared pointer. Added a check ...
diff --git a/src/blockrelay/compactblock.cpp b/src/blockrelay/compactblock.cpp index 0d9e36b3ac9..425758ec872 100644 --- a/src/blockrelay/compactblock.cpp +++ b/src/blockrelay/compactblock.cpp @@ -95,23 +95,23 @@ uint64_t CompactBlock::GetShortID(const uint256 &txhash) const return ::GetShortID(shorttxidk0, shortt...
3
3
0
[{"id": "G0", "claim": "In the block-size check in IsCompactBlockValid, the error message should say the block reconstructed would be 'greater than' the block size limit.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the comment in CThinBlock:...
null
BitcoinUnlimited__BitcoinUnlimited__1819
BitcoinUnlimited/BitcoinUnlimited
1,819
defect
67d93ac1424e0ae161985692a572728ad0d8c462
91b3d085e338f28f4dd496a8c727c5373d5f6a91
Implementation of variable keycheck mask for CIblt
This PR introduces a variable size keyCheck field for the HashTableEntry class used by CIblt. The reason for this change is that [recent research](https://github.com/bissias/graphene-experiments/blob/master/jupyter/min_checksum_IBLT.ipynb) has shown that most IBLTs do not need to use all 32 bits of the keyCheck field. ...
diff --git a/src/blockrelay/graphene.cpp b/src/blockrelay/graphene.cpp index 4c7719a952b..f3faa1846c3 100644 --- a/src/blockrelay/graphene.cpp +++ b/src/blockrelay/graphene.cpp @@ -53,12 +53,8 @@ CGrapheneBlock::CGrapheneBlock(const CBlockRef pblock, if (version < 2) grapheneSetVersion = 0; - if (ver...
5
4
0
[{"id": "G0", "claim": "A named constant (e.g. MAX_CHECKSUM_MASK) should be introduced for the full 0xffffffff checksum mask instead of hard-coding the literal, including at the other places where that value is used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
BitcoinUnlimited__BitcoinUnlimited__1830
BitcoinUnlimited/BitcoinUnlimited
1,830
defect
c959b5c5f7840d2993b860b4130525236b1bfede
53970376fd79d5a49b44d982af7d1880b9b7b41b
Make it so that uacomment[] are correctly reported in subver string
Superseding #1827 and fix #1061
diff --git a/src/clientversion.cpp b/src/clientversion.cpp index 225d79cac87..11b342f4e53 100644 --- a/src/clientversion.cpp +++ b/src/clientversion.cpp @@ -116,17 +116,33 @@ std::string FormatSubVersion(const std::string &name, int nClientVersion, const if (!subverOverride.empty()) return subverOverride;...
7
7
3
[{"id": "G0", "claim": "With this change strSubVersion can be removed from global state (net.h/.cpp) and made a local variable in init.cpp, since it is not used anywhere else.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because FormatSubVersi...
null
BitcoinUnlimited__BitcoinUnlimited__1864
BitcoinUnlimited/BitcoinUnlimited
1,864
defect
317598d874a94db8236d00bfbabe5ff2dc9e8424
0b7bb4f940af31c3d9dc770325b541e26277e5b4
Significantly reduce the number of dbcache lookups
In txadmission there is a two step process to check if inputs are missing or spent. This process first looks in the in memory dbcache to check if the input is there. But then following that it does a call to HaveCoin() which checks the in memory cache again before getting the coin off disk. There is no need either...
diff --git a/src/coins.cpp b/src/coins.cpp index 26bf3b2599d..c7d0b37e7cc 100644 --- a/src/coins.cpp +++ b/src/coins.cpp @@ -198,11 +198,39 @@ bool CCoinsViewCache::HaveCoin(const COutPoint &outpoint) const return (it != cacheCoins.end() && !it->second.coin.IsSpent()); } -bool CCoinsViewCache::HaveCoinInCache(c...
1
1
0
[{"id": "G0", "claim": "The new fSpent out-parameter of HaveCoinInCache needs to be documented, in particular that it is only set if the function returns true.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1867
BitcoinUnlimited/BitcoinUnlimited
1,867
defect
14daabbd297257deea5ca21e1f05180c3483f929
85724db9bae5da171f49ab5e378966db660e0997
Refactor cache configuration settings
Use a struct to store the config settings which can then be passed around. add tests
diff --git a/src/init.cpp b/src/init.cpp index eceb2a5fe3f..7c706cfd9fd 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1081,18 +1081,13 @@ bool AppInit2(Config &config, thread_group &threadGroup) } // Return the initial values for the various in memory caches. - int64_t nBlockDBCache = 0; - int64_t ...
3
3
0
[{"id": "G0", "claim": "The name SetCacheConfiguration is not topically right for a function that computes the cache sizes; rename it to something like Calculate, Derive or Discover (e.g. DiscoverCacheConfiguration).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
BitcoinUnlimited__BitcoinUnlimited__1874
BitcoinUnlimited/BitcoinUnlimited
1,874
defect
8ad3848396b2eab6aacf3713c7d8d96dd0b4b440
b9e8ff0fefcc724189c580dba1a95bef743e172e
[Electrum] Support passing arguments to electrs
Adds new (multi) argument electrum.rawarg, which directly passes the value as an argument to electrscash. This adds support for configuring the server in any way possible, such as adding custom server banner, tweaking cache options, etc. without having to reimplement every option in BU.
diff --git a/qa/rpc-tests/test_framework/electrumutil.py b/qa/rpc-tests/test_framework/electrumutil.py index 68fb7fa23e7..df79f99c209 100644 --- a/qa/rpc-tests/test_framework/electrumutil.py +++ b/qa/rpc-tests/test_framework/electrumutil.py @@ -22,7 +22,7 @@ def bitcoind_electrum_args(): import random global ...
3
3
1
[{"id": "G0", "claim": "The test framework hardcodes `-electrum.exec=/home/dagurval/electrs/target/release/electrs`, which only works on a system that has a `dagurval` user.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment `separator++; //...
null
BitcoinUnlimited__BitcoinUnlimited__1879
BitcoinUnlimited/BitcoinUnlimited
1,879
defect
680594b6097067b9623e815e4c45226b2265a3d5
29ef4694875364d1312b5c1f949adab0425cc7fd
Implementation of mempool synchronization
This PR provides an implementation of mempool synchronization using Graphene set reconciliation primitives. The overall approach is for peers to pull synchronization objects from other peers at regular intervals (currently once every 30 seconds). Each interval, the requesting peer randomly chooses a peer from whom to r...
diff --git a/qa/pull-tester/rpc-tests.py b/qa/pull-tester/rpc-tests.py index 5b0406cd347..a538ceab461 100755 --- a/qa/pull-tester/rpc-tests.py +++ b/qa/pull-tester/rpc-tests.py @@ -215,6 +215,7 @@ def option_passed(option_without_dashes): 'mempool_reorg', 'mempool_limit', 'mempool_persist', + 'mempool...
16
12
3
[{"id": "G0", "claim": "The QA test should not use sleeps; it should use WaitFor() to poll for the result it is looking for.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "Having both BU_MEMPOOL_SYNC_MIN_VERSION_SUPPORTED and BU_MEMPOOL_SYNC_MAX_VERSION...
null
BitcoinUnlimited__BitcoinUnlimited__1890
BitcoinUnlimited/BitcoinUnlimited
1,890
defect
e96b3db106c61c6d97f505dce5861e7839c69822
dd2e7c00c9860275def77d8308f3c663dbf62376
Minimal Data fix for CScript << vector
make sure CScript << vector generates MINIMAL_DATA compliant script binary
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index bef62be4597..8088ba97fe5 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -77,8 +77,8 @@ static CBlock CreateGenesisBlock(uint32_t nTime, << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962...
2
2
1
[{"id": "G0", "claim": "In the new tx_standard_creation test, `vec` is unused; the loop should push `vec` instead of `qty` so the seeded byte is what gets serialized.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new tx_standard_creation test's...
null
BitcoinUnlimited__BitcoinUnlimited__1901
BitcoinUnlimited/BitcoinUnlimited
1,901
defect
00d0ffe5a372fc869c01f84432cc7fb7c32658ae
7d7f5c60ac7173e6da692bbce152e7e132514313
Add helpers for Nov 2019 protocol upgrade MTP based code activation
based on top #1900 ~~TODO add unit test~~ (done)
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 8088ba97fe5..9ec29cf3a14 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -20,7 +20,7 @@ #include "chainparamsseeds.h" // FIXME This need to be update every new fork -uint64_t nMiningForkTime = 1557921600; +uint64_t nMiningForkTime = 15738192...
3
2
1
[{"id": "G0", "claim": "Replace the literal 1573819200 repeated four times in chainparams.cpp with a named constant, named for the activation date (e.g. NOV2019_ACTIVATION_TIME) rather than a code name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
BitcoinUnlimited__BitcoinUnlimited__1907
BitcoinUnlimited/BitcoinUnlimited
1,907
defect
7e62aabd870a9d1d20a8b3f62d1a682f4123bbe3
888e43b4a2e6afec3b52d15366f1ab372e60fe36
[port] Add a facility to parse and validate script bitfields
Bitfield are little endian and has a size proportional to the number of bits they represent. The decoder validates that there are no out of bound bits. This is a port of reviews.bitcoinabc.org/D3735 ~~Built on top of #1901~~ This is a prereq for porting Schnorr multi sig from ABC.
diff --git a/src/Makefile.am b/src/Makefile.am index e63d2f0f38b..d55d6d89134 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -447,6 +447,8 @@ libbitcoin_consensus_a_SOURCES = \ pubkey.cpp \ pubkey.h \ script/bitcoinconsensus.cpp \ + script/bitfield.cpp \ + script/bitfield.h \ script/interpreter.cpp...
3
2
0
[{"id": "G0", "claim": "Add the newly added script/bitfield.cpp, script/bitfield.h and test/script_bitfield_tests.cpp to src/.formatted-files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the anonymous namespace wrapping set_success/set...
null
BitcoinUnlimited__BitcoinUnlimited__1909
BitcoinUnlimited/BitcoinUnlimited
1,909
defect
3d5daefb1d9d2b95773d7758659597bee6383c88
81e052b8a5fcabb32e432e37be3158b3d748025d
[port] Use black magic for popcount
Or compiler intrinsic if these are supported. The black magic algorithm is from 'Owen Anderson <resistor@mac.com>', as far as I know. This is a port of: - reviews.bitcoinabc.org/D2148 - reviews.bitcoinabc.org/D3738 ~~This PR is built on top of #1901 and #1907~~ This is a prereq for porting Schnorr multi s...
diff --git a/configure.ac b/configure.ac index 9a3a623ce59..cab6bf68fe2 100644 --- a/configure.ac +++ b/configure.ac @@ -653,6 +653,8 @@ AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64],,, #include <byteswap.h> #endif]) +AC_CHECK_DECLS([ __builtin_popcount]) + dnl Check for MSG_NOSIG...
1
1
0
[{"id": "G0", "claim": "In src/test/bitmanip_tests.cpp the loop bound could be a `const size_t COUNT` instead of the `#define COUNT 4096` macro (reviewer's nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1952
BitcoinUnlimited/BitcoinUnlimited
1,952
defect
a58595e0b8cc49d556df0ca6318d0ab69af818de
9ff0eb95c5811ecca281990ff77e2600a0ef8886
Turn mapBlocksToReconstruct into a multi-map
This is the next step in allowing for multiple thintype blocks in flight. This allows us to hold multiple blocks being reconstructed from the same peer and with different block hashes.
diff --git a/src/blockrelay/blockrelay_common.cpp b/src/blockrelay/blockrelay_common.cpp index ca8a5ab78c9..341fe268cf8 100644 --- a/src/blockrelay/blockrelay_common.cpp +++ b/src/blockrelay/blockrelay_common.cpp @@ -306,8 +306,6 @@ std::shared_ptr<CBlockThinRelay> ThinTypeRelay::SetBlockToReconstruct(CNode *pfr /...
1
1
0
[{"id": "G0", "claim": "Use one of std::multimap's erase APIs (erase(key) or erase(first, last)) instead of the while loop when erasing entries in ClearAllBlocksToReconstruct.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1954
BitcoinUnlimited/BitcoinUnlimited
1,954
defect
027d6d6144eb9dd72aa559ebdf694a42ebc14dc0
e59f4b7b877307949df8b71e144b8e709509d8e7
allow multiple thintype blocks in flight
This allows us to download more that one thintype block simultaneously which gives us faster propagation during block races and also better propagation for blocks mined in close succession whether they arrive in order or not.
diff --git a/src/blockrelay/blockrelay_common.cpp b/src/blockrelay/blockrelay_common.cpp index a9afefe8b64..d14d270c3c0 100644 --- a/src/blockrelay/blockrelay_common.cpp +++ b/src/blockrelay/blockrelay_common.cpp @@ -143,6 +143,9 @@ bool ThinTypeRelay::HasBlockRelayTimerExpired(const uint256 &hash) bool ThinTypeRela...
1
1
1
[{"id": "G0", "claim": "The split-out IsBlockInFlight() reads mapThinTypeBlocksInFlight without taking cs_inflight (or otherwise checking that it is locked).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__1976
BitcoinUnlimited/BitcoinUnlimited
1,976
defect
d11782b2438695830ce38e7e25cf9ae8d2cb546c
60c818236f0c6ebfc56fcd08859e3981b648b4d7
[port] Remove template matching and pseudo opcodes
The current code contains a rather complex script template matching engine, which is only used for 3 particular script types (P2PK, P2PKH, multisig). The first two of these are trivial to match for otherwise, and a specialized matcher for multisig is both more compact and more efficient than a generic one. The go...
diff --git a/src/pubkey.h b/src/pubkey.h index 6bdd23d14cf..8fad36ca576 100644 --- a/src/pubkey.h +++ b/src/pubkey.h @@ -36,10 +36,10 @@ class CPubKey /** * secp256k1: */ - static const unsigned int PUBLIC_KEY_SIZE = 65; - static const unsigned int COMPRESSED_PUBLIC_KEY_SIZE = 33; - static con...
4
4
2
[{"id": "G0", "claim": "Introduce a named constant PUBLIC_KEY_HASH160_SIZE = 20 in CPubKey and use it in place of the hardcoded 20 in MatchPayToPubkeyHash().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MatchFreezeCLTV should return the parsed...
null
BitcoinUnlimited__BitcoinUnlimited__1998
BitcoinUnlimited/BitcoinUnlimited
1,998
defect
901d647d9cbc83bc2a6fba854959b51a3f127611
7f4282cc5072469ebb3c30ebd2a0922286e78a4d
Reject transactions that have more than one input for long unconfirmed chains
When we exceed the standard unconfirmed chain length of 25 then do not accept any more unconfirmed transactions that extend that chain unless they have a single input.
diff --git a/qa/rpc-tests/mempool_push.py b/qa/rpc-tests/mempool_push.py index e8ad076bc67..94865b06691 100755 --- a/qa/rpc-tests/mempool_push.py +++ b/qa/rpc-tests/mempool_push.py @@ -41,9 +41,11 @@ def setup_network(self, split=False): "-limitdescendantsize=%d" % (BCH_UNCONF_SIZE_KB*2), "-...
2
1
0
[{"id": "G0", "claim": "The re-indented txhex.append(...) line in qa/rpc-tests/mempool_push.py has wrong indentation.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use the reject reason `bad-txn-too-many-inputs` instead of `too-many-inputs`, for ...
null
BitcoinUnlimited__BitcoinUnlimited__2050
BitcoinUnlimited/BitcoinUnlimited
2,050
defect
0e4b5e6f1de42a08688db2924a8014f158f0ffae
358f794d0e7ef990e10515715c5e794ca6db4248
A few IBD tweaks
These make for some decent gains. The first commit is for blockdb which helps shave about 20 mins off IBD for blocksdb, the second is for nodes that are configured with small dbcaches and improvements are very good. Using a 700Mb dbcache the time reduction in IBD is roughly 35%.
diff --git a/src/blockstorage/blockleveldb.cpp b/src/blockstorage/blockleveldb.cpp index 72d1b582d41..6384fef97d6 100644 --- a/src/blockstorage/blockleveldb.cpp +++ b/src/blockstorage/blockleveldb.cpp @@ -12,7 +12,8 @@ CBlockLevelDB::CBlockLevelDB(size_t nCacheSizeBlock, size_t nCacheSizeUndo, bool { COverrideOpt...
2
2
0
[{"id": "G0", "claim": "The comment in CacheSizeCalculations still says the level db block cache is capped at 256MB although the code above was raised from 256MB to 1024MB, so the comment should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
BitcoinUnlimited__BitcoinUnlimited__2097
BitcoinUnlimited/BitcoinUnlimited
2,097
defect
531027bcfa54dd95bb8c4b6fd1a55f8efded6e1b
589a66cb678f792b3e7dd948cc3aec652cf21ba2
Remove EC for sigops
This has never been used and introduced some small performance hits. Remove sigops from CheckExcessive() and also did a bit of updating to the naming of some vars.
diff --git a/qa/rpc-tests/excessive.py b/qa/rpc-tests/excessive.py index b16009e375f..3cf0a67415b 100755 --- a/qa/rpc-tests/excessive.py +++ b/qa/rpc-tests/excessive.py @@ -76,7 +76,6 @@ def setup_network(self, split=False): def run_test(self): BitcoinTestFramework.run_test(self) self.testCli() -...
1
1
0
[{"id": "G0", "claim": "The legacy and P2SH sigop counting checks should be combined and placed outside the \"if (!tx.IsCoinBase())\" block in both ConnectBlock variants (canonical ordering and DTOR/dependency ordering).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__2104
BitcoinUnlimited/BitcoinUnlimited
2,104
defect
908e53caf05eba686120b3a45e1269ce81664727
0f646b3b5c39577671c037842c80657089ac2acc
Further clean up after Nov 2019 network upgrade activated
Main content is the removal of NULLDUMMY from the code base. Since Schnorr multisig upgrade is active null dummy element has been re-purposed so there's no need for NULLDUMMY anymore. This part is a port of: https://reviews.bitcoinabc.org/D4577 https://github.com/bitcoin/bitcoin/pull/10699/files (partial) Still ...
diff --git a/qa/rpc-tests/minimaldata.py b/qa/rpc-tests/minimaldata.py index c708f08bd3f..8ce361f325e 100755 --- a/qa/rpc-tests/minimaldata.py +++ b/qa/rpc-tests/minimaldata.py @@ -39,7 +39,7 @@ import logging # this is the errror you get when minimal push errors are detected during mempool admission -MINIMALPUSH_E...
3
2
0
[{"id": "G0", "claim": "The docstring of the renamed check_for_ban_on_rejected_tx still says 'Check we don't trigger a ban' although the test now expects a ban, so it should be reworded to say it does trigger a ban.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
BitcoinUnlimited__BitcoinUnlimited__2113
BitcoinUnlimited/BitcoinUnlimited
2,113
defect
a660fde2bc49d9eee21f90645b5e7f9d3813adf1
9f21e616adfaaa235e6c2ebcf30839743e457132
Change default params for BCH length of unconfirmed transaction chain at activation time (25 -> 50)
This patch add code to bump BCH default values for the max number of ancestors and descendants and hook it to the May 2020 network upgrade activation. Both params has been bumped from 25 to 50. The parameters that take care of the max size have not being changed due to the fact that ABC didn't include these changes ...
diff --git a/qa/rpc-tests/mempool_push.py b/qa/rpc-tests/mempool_push.py index f7f1d105939..d4d174e86c3 100755 --- a/qa/rpc-tests/mempool_push.py +++ b/qa/rpc-tests/mempool_push.py @@ -42,10 +42,8 @@ def setup_network(self, split=False): ["-blockprioritysize=2000000", "-limitdescendantcount=1000", "-limita...
2
2
2
[{"id": "G0", "claim": "nLimitAncestorCount in net.h is only ever used in IsTxAcceptable() for intelligent forwarding, so the new get methods (GetBCHDefaultAncestorLimit/GetBCHDefaultDescendantLimit) need to be used there as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
BitcoinUnlimited__BitcoinUnlimited__2122
BitcoinUnlimited/BitcoinUnlimited
2,122
defect
a660fde2bc49d9eee21f90645b5e7f9d3813adf1
42efa782474439bdc2e7c66872f7bb6ced52fb0a
Script Machine sigop counting
Implement sigop counting as defined in the 2020 may hard fork at the script level. Enforcement of sigop limits is not implemented in this commit.
diff --git a/src/cashlib/cashlib.cpp b/src/cashlib/cashlib.cpp index 9ed501877ad..5cc9006b221 100644 --- a/src/cashlib/cashlib.cpp +++ b/src/cashlib/cashlib.cpp @@ -371,7 +371,7 @@ SLAPI void *CreateNoContextScriptMachine(unsigned int flags) { ScriptMachineData *smd = new ScriptMachineData(); smd->checker = ...
7
4
1
[{"id": "G0", "claim": "evalForSigops is declared with `uint`, a non-portable type that is not available on Windows, and should use a standard portable type instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new counter and function should ...
null
BitcoinUnlimited__BitcoinUnlimited__2126
BitcoinUnlimited/BitcoinUnlimited
2,126
defect
0819d3ababae5270a63d529acdb9f7510a4339a4
74450d79bb3a4b766f2da021d7ad08b496bbb4cc
Add missing locks and fix false positive clang warnings - part 3
- Silence clang warning in deadlock detector test - Annotate AssertLockHeld() with ASSERT_CAPABILITY() for thread safety analysis (partial core port of bitcoin/bitcoin#13423) - Lock nSendBytes and nRecvBytes while copying nodes stats - Add cs_vSend lock annotation to SocketSendData() - Add explicitly lock around p...
diff --git a/src/blockrelay/graphene.cpp b/src/blockrelay/graphene.cpp index 67fefe3cd21..c45754d0bb2 100644 --- a/src/blockrelay/graphene.cpp +++ b/src/blockrelay/graphene.cpp @@ -1783,10 +1783,14 @@ bool NegotiateFastFilterSupport(CNode *pfrom) uint64_t NegotiateGrapheneVersion(CNode *pfrom) { - uint64_t peerM...
1
1
1
[{"id": "G0", "claim": "Put the NetCleanup lock acquisitions into inner scopes so that cs_vRecvMsg and cs_vSend are not locked at the same time.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
BitcoinUnlimited__BitcoinUnlimited__2143
BitcoinUnlimited/BitcoinUnlimited
2,143
defect
e434cb828215bef8ae242d025964bde60f7dc020
c3482315610c223f8136ec06c95f86dddcacf022
Gradually decay assigned misbehavior over time
Decay misbehavior over a 4 hour window of time. Also, updated a few other variables and made them atomic since we don't lock anything when we assign misbehavior.
diff --git a/src/dosman.cpp b/src/dosman.cpp index d58d9dbc25d..ca5b125123f 100644 --- a/src/dosman.cpp +++ b/src/dosman.cpp @@ -273,18 +273,49 @@ void CDoSManager::Misbehaving(CNode *pNode, int howmuch, BanReason reason) if (howmuch == 0 || !pNode) return; - int prior(pNode->nMisbehavior.fetch_add(h...
3
2
1
[{"id": "G0", "claim": "The misbehavior update should use fetch_add or operator+= instead of a compare_exchange_weak load-and-store loop, since that is a lot cleaner when only atomically adding.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The p...
null