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
temporalio__sdk-typescript__275
temporalio/sdk-typescript
275
defect
1d16c565fbd8dcdbc048d4193430c7d7f0369a1c
32c6bd7c15aed06904601468b505647921b46656
Pass client/version info to core & core update & set span contexts!
<!--- Note to EXTERNAL Contributors --> <!-- Thanks for opening a PR! If it is a significant code change, please **make sure there is an open issue** for this. We work best with you when we have accepted the idea first before you code. --> <!--- For ALL Contributors 👇 --> ## What was changed Sdk name/versi...
diff --git a/package-lock.json b/package-lock.json index 03a1f3d424..ad77ae6125 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12344,6 +12344,7 @@ } }, "packages/activity": { + "name": "@temporalio/activity", "version": "0.4.0", "license": "MIT", "dependencies": { ...
5
5
1
[{"id": "G0", "claim": "Avoid writing the client version to the filesystem at build time and reading it into core via include_str; pass the version in at runtime from the language layer instead (the worker version can be used for now), since building before a version bump can produce a stale version.", "category": "des...
null
temporalio__sdk-typescript__532
temporalio/sdk-typescript
532
defect
f4fad3ad21976844106c66dec0fa372451a97cc4
1567e1b79c5dc81f70c062424161e31b41294cef
feat(client)!: Return a friendly type from handle.describe()
Closes #482
diff --git a/packages/client/src/types.ts b/packages/client/src/types.ts index cc8c4e31cf..7def01aa8f 100644 --- a/packages/client/src/types.ts +++ b/packages/client/src/types.ts @@ -10,3 +10,19 @@ export type DescribeWorkflowExecutionResponse = temporal.api.workflowservice.v1. export type TerminateWorkflowExecutionRe...
3
3
2
[{"id": "G0", "claim": "runId should not be optional in WorkflowExecutionDescription.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The memo and searchAttributes payload fields should be decoded through the data converter instead of being returned as ra...
null
temporalio__sdk-typescript__631
temporalio/sdk-typescript
631
defect
ef8a7f0c212b6c59e9071d4bfb5e27e1840c9a39
71c510f8ae16ee25f1574fc317faaf4eff4029fc
docs(workflow): Fix Trigger example
Currently uses unblock sample, which uses `condition`: <img width="793" alt="image" src="https://user-images.githubusercontent.com/251288/166558587-0fe7e90b-1997-4679-93e7-9d97fc174ead.png">
diff --git a/packages/workflow/src/trigger.ts b/packages/workflow/src/trigger.ts index 1a94d8c3f6..5629e482e7 100644 --- a/packages/workflow/src/trigger.ts +++ b/packages/workflow/src/trigger.ts @@ -3,14 +3,29 @@ import { CancellationScope } from './cancellation-scope'; /** * A `PromiseLike` helper which exposes its...
1
1
0
[{"id": "G0", "claim": "The Trigger docstring example should be made into a sample file in this repo so that it is validated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
temporalio__sdk-typescript__681
temporalio/sdk-typescript
681
defect
79f62d6cd0bf1551090388382fe69bcd320b7a5f
1a45e9d03edea8e60bf37f68da70f01ac39fa4fe
fix: Use JSON.stringify() for non-error objects and String() for other values
Fix #635 <!--- Note to EXTERNAL Contributors --> <!-- Thanks for opening a PR! If it is a significant code change, please **make sure there is an open issue** for this. We work best with you when we have accepted the idea first before you code. --> <!--- For ALL Contributors 👇 --> ## What was changed <!...
diff --git a/packages/common/src/failure.ts b/packages/common/src/failure.ts index b3177b6eb5..ccb12b3280 100644 --- a/packages/common/src/failure.ts +++ b/packages/common/src/failure.ts @@ -342,8 +342,17 @@ export function errorToFailure(err: unknown, payloadConverter: PayloadConverter) if (typeof err === 'string')...
2
2
1
[{"id": "G0", "claim": "Fix the lint/prettier violations in the code this pull request adds so it passes `npm run lint` before merging.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the trailing period from the 'A non-Error value was thr...
null
temporalio__sdk-typescript__742
temporalio/sdk-typescript
742
defect
027a052238c4f8e7712bd755abde9aa53e51eaa3
eed6ed4cf275fb62e342eacd7d6f93bbe9381b2f
feat: Improve activity registration and proxy types
- Closes #655 - Deprecates `ActivityInterface` - replaced with `UntypedActivities` - `proxyActivities` and (the experimental) `proxyLocalActivities` signature changed to provide better type safety when referencing non-existing activities - `WorkerOptions.activities` type is now `object` to allow arbitrary class reg...
diff --git a/packages/activity/src/index.ts b/packages/activity/src/index.ts index 3e9c219442..e87de6ba17 100644 --- a/packages/activity/src/index.ts +++ b/packages/activity/src/index.ts @@ -30,7 +30,11 @@ import { msToNumber } from '@temporalio/internal-workflow-common'; import { AbortSignal } from 'abort-controller'...
5
4
0
[{"id": "G0", "claim": "Fix the typo in the worker comment so it reads \"activities is of type\" instead of \"activities if of type\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cast the activities lookup through UntypedActivities instead of a...
null
temporalio__sdk-typescript__791
temporalio/sdk-typescript
791
defect
b57e5723dd62ff9736ad56a7af9b4be2269175c2
e8ad8ba84304a318efd4aff2b1d353d83f2a1b86
feat(workflow): List registered queries in error response when a quer…
…y is not found This is required by the UI to display available queries. Eventually we should implement a `__get_handlers` internal query but this will do for now.
diff --git a/packages/workflow/src/internals.ts b/packages/workflow/src/internals.ts index 2c39383b80..493c7c9377 100644 --- a/packages/workflow/src/internals.ts +++ b/packages/workflow/src/internals.ts @@ -212,8 +212,11 @@ export class Activator implements ActivationHandler { protected queryWorkflowNextHandler({ qu...
1
1
1
[{"id": "G0", "claim": "The new query-not-found behavior (listing registered queries in the error) deserves a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
temporalio__sdk-typescript__878
temporalio/sdk-typescript
878
defect
966d51d3545a5e84102190f5b762160b9dfe99c2
fc7cb93e1053f1d714ab7ce37be0c19dc30a5082
feat: Delete search attributes with empty array values in describe() response
As of 1.18 the server deletes search attributes with empty array values, mimic that behavior when getting the `describe` response from older servers and update CI to use 1.18.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7919ac2a87..4e7278f281 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,6 @@ jobs: with: repository: temporalio/docker-compose path: docker-compose - ref: v1.17.5 # TODO: Upgra...
2
1
1
[{"id": "G0", "claim": "Dropping empty search attribute arrays in the describe() response makes it inconsistent with workflowInfo().searchAttributes, which still contains empty arrays.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Filtering empty s...
null
temporalio__sdk-typescript__918
temporalio/sdk-typescript
918
defect
2e94d96a62469b6ac6992949b817155b7f8e4cc3
49e9f21f7365da5b539acf07bfb9c06dd292f129
fix(worker): avoid a race in shutdown hooks
## What was changed In `Runtime`, deny adding more shutdown hooks once a shutdown signal has been received. ## Why? Avoid a race situation where a process might be sent a shutdown signal, but some worker has not yet registered its shutdown hook, causing the worker to never terminate. ## Checklist 1. Closes #90...
diff --git a/packages/test/src/test-worker-lifecycle.ts b/packages/test/src/test-worker-lifecycle.ts index 403ee1e8a8..2013a02004 100644 --- a/packages/test/src/test-worker-lifecycle.ts +++ b/packages/test/src/test-worker-lifecycle.ts @@ -5,14 +5,60 @@ * @module */ import { Worker } from '@temporalio/worker'; +imp...
4
4
1
[{"id": "G0", "claim": "The docstring of registerShutdownSignalCallback should be updated to explain the meaning of the boolean return value.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The integration test should not create a new Runtime insta...
null
temporalio__sdk-typescript__985
temporalio/sdk-typescript
985
defect
42eb50e59453d47bdd70fc9ec8f6169129f9c73d
9f9e310694ac4b4578ef9b32844d8b8db036da70
fix(workflow): Correctly handle condition with timeout of 0
## What changed - In workflows, `condition(fn, 0)` was incorrectly handled the same as `condition(fn, undefined)`, ie. the function would block indefinitely and would return nothing once `fn` evaluates to `true`. It now behaves the same as `condition(fn, 1)`, ie. the function will sleep (at most) for a very short time...
diff --git a/packages/test/src/integration-tests.ts b/packages/test/src/integration-tests.ts index 0adecd5690..3e98a5e3d9 100644 --- a/packages/test/src/integration-tests.ts +++ b/packages/test/src/integration-tests.ts @@ -52,7 +52,7 @@ import { cleanOptionalStackTrace, u8 } from './helpers'; import * as workflows fro...
4
4
0
[{"id": "G0", "claim": "The conditionTimeout0Simple test workflow could be simplified to return void, or the result of condition (bool) instead of a number with throw-based validation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment sho...
null
temporalio__temporal__9231
temporalio/temporal
9,231
defect
f18ae039c5edcc2475dbfd4ac6136ea74c83402f
e66ae7e90b244e299b72be01cdee6c67b5c33bc7
Store worker attributes needed by server to propagate nexus tasks to worker
## What changed? As part of RecordActivityTaskStarted flow, store worker_control_task_queue for an activity in the mutable state (ActivityInfo). Main changes: - executions.proto: Added the new worker_control_task_queue field. - mutable_state_impl.go: Update mutable state. - matching/forwarder.go: Propagate worke...
diff --git a/api/persistence/v1/executions.pb.go b/api/persistence/v1/executions.pb.go index 2e6d4d5654a..ce2420628d7 100644 --- a/api/persistence/v1/executions.pb.go +++ b/api/persistence/v1/executions.pb.go @@ -2513,8 +2513,10 @@ type ActivityInfo struct { // set to true if reset heartbeat flag was set with an acti...
3
3
2
[{"id": "G0", "claim": "Ask whether the workerInstanceKey of the worker completing the workflow task is known, since the eager activity dispatch path passes an empty string instead of propagating it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
temporalio__temporal__9272
temporalio/temporal
9,272
defect
64c74bde2a4f90b14f3617f7b12a0aa4112ee52b
7749dc09cbe7426a9c23868e9f6a3f8cf7b39762
Refresh tasks after reviving a zombie workflow run.
## What changed? Refresh tasks after reviving a zombie workflow run. ## Why? As the run was suppressed it's tasks may be stale. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s) <!-- CU...
diff --git a/service/history/ndc/transaction_manager.go b/service/history/ndc/transaction_manager.go index f6dbeb1957c..e2de3a6cc33 100644 --- a/service/history/ndc/transaction_manager.go +++ b/service/history/ndc/transaction_manager.go @@ -20,6 +20,7 @@ import ( "go.temporal.io/server/common/persistence/serializatio...
2
2
0
[{"id": "G0", "claim": "Move the taskRefresher.Refresh calls out of the transaction managers and into Revive().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The else-if branch checking WORKFLOW_EXECUTION_STATE_COMPLETED in Revive is unreachable because...
null
temporalio__temporal__9397
temporalio/temporal
9,397
defect
88ea88ce1a1639553423d3b3692432cdbc6cc960
33f73fd651f35bcd80bb78d9985f2b1929c4f752
Proper load balancing for Nexus tasks
## What changed? Enhance matching clients to select random partition for Nexus poll and dispatch requests. ## Why? Before this change all Nexus matching request were going to the root partition only. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - ...
diff --git a/client/matching/client.go b/client/matching/client.go index 0d158e4e6cd..c0abbf6cf10 100644 --- a/client/matching/client.go +++ b/client/matching/client.go @@ -157,6 +157,42 @@ func (c *clientImpl) QueryWorkflow(ctx context.Context, request *matchingservice return client.QueryWorkflow(ctx, request, opts....
5
4
1
[{"id": "G0", "claim": "DispatchNexusTask should copy the request before pickClientForWrite (shallow like QueryWorkflow) so the client does not mutate or race on a request that may hold a large payload.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
temporalio__temporal__9539
temporalio/temporal
9,539
defect
6301e47ee6b575ba84635048a54f64e8292d7721
dd5022a50e4953c0dbc8ec87404f48f418047940
Address dnr review comments on #9395
## Summary Follow-up to #9395 addressing review comments: - Fix comment table alignment to use spaces instead of tabs for correct GitHub rendering - Simplify nil check in `getCreateTime` using proto getter (handles nil receiver) - Rename `runSuiteWithMatchingBehaviors` → `runTaskQueueStatsSuiteWithMatchingBehaviors` (s...
diff --git a/service/matching/matching_engine.go b/service/matching/matching_engine.go index a482124f166..e370f78586d 100644 --- a/service/matching/matching_engine.go +++ b/service/matching/matching_engine.go @@ -2877,17 +2877,17 @@ func (e *matchingEngineImpl) pollTask( // emitTaskDispatchLatency emits latency metric...
2
1
0
[{"id": "G0", "claim": "Apply the MatchingForwarderMaxChildrenPerNode option at the RunTestWithMatchingBehavior site in functional_test_base.go as well, and consolidate the duplicated matching-behavior config logic so only one copy exists.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
temporalio__temporal__9641
temporalio/temporal
9,641
defect
992d8d6c7498a71dbd1ade1e3ce6d7b495e7b6e1
a108025e6d104d34c9795cd2370f57b70e92046f
Implement workflow ID reuse rate limtier
## What changed? Implement a rate limiter to limit workflow ID reuse. ## Why? Some patterns can create large number of worklow exeuction with same IThis can cause some issues in the persistence partition. ## How did you test it? - [x] built - [ ] run locally and tested manually - [ ] covered by existing tests - [x] a...
diff --git a/common/dynamicconfig/constants.go b/common/dynamicconfig/constants.go index 1bf78babd84..ac8d83e3fcf 100644 --- a/common/dynamicconfig/constants.go +++ b/common/dynamicconfig/constants.go @@ -2756,6 +2756,18 @@ that task will be sent to DLQ.`, false, `If true, validate the start time of the old workf...
6
2
1
[{"id": "G0", "claim": "The rate limiter must be keyed by (namespaceID, businessID, archetypeID) instead of (namespaceID, workflowID), because CHASM provides separate ID spaces across archetypes and chasm executions need businessID as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
temporalio__temporal__9664
temporalio/temporal
9,664
defect
4c756bb1a8481b09bff6bc2a8e2906ef98c97e24
5634fcb56bb2c7980dc732c6f0ed2856523477e7
enable namespace mapper with fallbacks
## What changed? enable namespace mapper with fallbacks to the cluster metadata. ## Why? Allow backwards compatible rollout of search attribute mapper unification for ElasticSearch backed visibility stores. ## How did you test it? - [X] built - [X] run locally and tested manually - [X] covered by existing te...
diff --git a/common/persistence/visibility/store/query/converter_test.go b/common/persistence/visibility/store/query/converter_test.go index 9347bedb28d..de4e6e699c5 100644 --- a/common/persistence/visibility/store/query/converter_test.go +++ b/common/persistence/visibility/store/query/converter_test.go @@ -23,6 +23,16...
7
5
2
[{"id": "G0", "claim": "The single-argument fallback (a slice of fallback index names in the mapper and passing both primary and secondary visibility store index names) may not be needed and could be simplified, since primary and secondary store CSA sets are supposed to be the same.", "category": "design", "verdict": "...
null
temporalio__temporal__9731
temporalio/temporal
9,731
defect
d8813fd133d936217410e0a9ca20e6fa651b99ca
cf61ecbac69da06614c311441c4b6c9399b0c83c
Advance ack level when queue is drained
## What changed? In priBacklogManager, use the isDrained logic (outstandingTasks) to move the ack level up when a queue is empty. ## Why? If the task id range ends in a gap, we won't be able to move the ack level higher based on completed tasks alone, but we can move it up when the queue is totally empty. This als...
diff --git a/service/matching/backlog_manager_test.go b/service/matching/backlog_manager_test.go index 93277234521..ce9c0fac9bf 100644 --- a/service/matching/backlog_manager_test.go +++ b/service/matching/backlog_manager_test.go @@ -357,6 +357,83 @@ func (s *BacklogManagerTestSuite) TestApproximateBacklogCount_NotIncre...
1
1
1
[{"id": "G0", "claim": "Instead of adding the isDrained check to reset approximateBacklogCount, the ack level should be advanced to the read level when outstandingTasks is empty, which would make the ack level accurate and let the existing reset check work unchanged.", "category": "correctness", "verdict": "supported",...
null
temporalio__temporal__9781
temporalio/temporal
9,781
defect
5920e1733b78a95205171dac4d1bed7f6db2c940
f2a837893f861f4f0992d92f0b4328cec6469a05
Add subscription for autoEnable and handle changes
## What changed? Move autoenable to a subscription, and check when it changes to see if we need to unload. ## Why? When we disable autoEnable as we approach GA we need to be able to go back to the old dynamic config being the source of truth. ## How did you test it? - [X] built - [] run locally and tested man...
diff --git a/common/dynamicconfig/constants.go b/common/dynamicconfig/constants.go index d8fb85d1cca..56adf2b0250 100644 --- a/common/dynamicconfig/constants.go +++ b/common/dynamicconfig/constants.go @@ -1461,9 +1461,10 @@ an optional feature and also requires a metrics collection system that can handl The metric has...
3
3
0
[{"id": "G0", "claim": "The subLock field uses a pointer to a sync.Mutex where a value would do, and the reviewer questions whether any lock is needed at all given the other subscriptions are unlocked.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The f...
null
temporalio__temporal__9831
temporalio/temporal
9,831
defect
c9a39e6914c0b3a114ddfe42e991334ed911a4cf
953b9f39b0294176ce195ef96d5a56727a44cf80
Route delete execution replication task by archetype ID
## What changed? On the passive clusters side, route delete execution replication tasks based on `archetypeID` from `RawTaskInfo`: - `WorkflowArchetypeID` or `UnspecifiedArchetypeID` → `engine.DeleteWorkflowExecution` path - Any other archetype → `ChasmEngine.DeleteExecution` ## Why? Today, the sender (`context_...
diff --git a/chasm/ref.go b/chasm/ref.go index e35e48f36b0..d904c0c2347 100644 --- a/chasm/ref.go +++ b/chasm/ref.go @@ -67,6 +67,17 @@ func NewComponentRef[C Component]( } } +// NewComponentRefByArchetypeID creates a new ComponentRef with a known archetype ID. +func NewComponentRefByArchetypeID( + executionKey Ex...
2
2
1
[{"id": "G0", "claim": "The task should prefer a chasm ComponentRef here instead of mapping a workflow ID into a business ID (via WorkflowKey), as raised in a question about the deleteChasmExecution code.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Ad...
null
temporalio__temporal__9842
temporalio/temporal
9,842
defect
a1335034094a1c6429e7ac7d367d6f800c0c1632
84cf89b3a6441042a1e7ec979e621e554cf8cc3b
Add compile time checks for SetRootComponent
## What changed? Add compile time checks for SetRootComponent ## Why? Catch type assertion failures at compile time instead of at runtime. Workflow archetype had missing Terminate() method that was required when asserting to component.(RootComponent) in SetContextMetadata ## How did you test it? - [X] built -...
diff --git a/chasm/lib/callback/tasks_test.go b/chasm/lib/callback/tasks_test.go index c701536ba0b..7804d084edc 100644 --- a/chasm/lib/callback/tasks_test.go +++ b/chasm/lib/callback/tasks_test.go @@ -54,6 +54,17 @@ func (m *mockNexusCompletionGetterComponent) LifecycleState(_ chasm.Context) cha return chasm.Lifecycl...
1
1
1
[{"id": "G0", "claim": "The Workflow.Terminate stub, which should never get called, silently returns an empty response instead of panicking or returning an internal error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
temporalio__temporal__9847
temporalio/temporal
9,847
defect
a1335034094a1c6429e7ac7d367d6f800c0c1632
b382defc928100a6c5e742928762af28e7457610
Expose termination and cancellation identity in standalone activity failure info
## What changed? Populate the Identity field in TerminatedFailureInfo and CanceledFailureInfo when standalone activities are terminated or canceled. Previously these failure info structs were created with empty/missing identity fields, even though the identity was available from the request. ...
diff --git a/chasm/lib/activity/statemachine.go b/chasm/lib/activity/statemachine.go index a3f2592f0c0..342263b4280 100644 --- a/chasm/lib/activity/statemachine.go +++ b/chasm/lib/activity/statemachine.go @@ -258,8 +258,12 @@ var TransitionTerminated = chasm.NewTransition( outcome := a.Outcome.Get(ctx) failure ...
1
1
0
[{"id": "G0", "claim": "The identity string \"cancelling-worker\" used in the cancel-request test is confusing; rename it to something like \"client-that-requested-cancellation\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
temporalio__temporal__9889
temporalio/temporal
9,889
defect
ad37da976e922146a14649ec019d5bd1c0a31a81
98d12af5c5ce51be4d1e11232a560f0d3f1d98a5
fix: re-kick generator on unpause to resume CHASM schedule processing
## Summary When a CHASM schedule is paused, the generator task exits without scheduling its next task. If the schedule is unpaused before that last pending task has fired, the schedule resumes naturally when the task eventually fires and finds the schedule unpaused. However, if the unpause happens after that last task...
diff --git a/chasm/lib/scheduler/generator_tasks_test.go b/chasm/lib/scheduler/generator_tasks_test.go index 674fb88dc10..21f18a527cc 100644 --- a/chasm/lib/scheduler/generator_tasks_test.go +++ b/chasm/lib/scheduler/generator_tasks_test.go @@ -6,6 +6,8 @@ import ( "time" "github.com/stretchr/testify/require" + s...
1
1
0
[{"id": "G0", "claim": "Run the new unpause test for both V1 and CHASM contexts, since really both should have this coverage.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
temporalio__temporal__9894
temporalio/temporal
9,894
defect
33cb1108e1c18fd263c80679c26b0ffe8a86ab97
c14c7db4f4228fd87276db9601939871f096413f
Add `CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION`
## What changed? Add `CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION` as a `ContinueAsNewInitialVersioningBehavior` in `InheritedAutoUpgradeInfo` and `VersioningInfo`, which if set, forces the first task of an AutoUpgrade workflow to go to the Ramping Version of its task queue instead of basing the Current/Ra...
diff --git a/api/taskqueue/v1/message.pb.go b/api/taskqueue/v1/message.pb.go index 384c9be1a09..d786e70aa89 100644 --- a/api/taskqueue/v1/message.pb.go +++ b/api/taskqueue/v1/message.pb.go @@ -52,8 +52,11 @@ type TaskVersionDirective struct { // Counter copied from the workflow execution's WorkflowExecutionVersioning...
15
11
0
[{"id": "G0", "claim": "Add a test case for useRampingVersion with a 0% ramp.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Matching should not care about the initial_task part, so the field use_ramping_version_initial_task should maybe be called just ...
null
temporalio__temporal__9910
temporalio/temporal
9,910
defect
6cbb490c3a464cbe8f92072d32ffbdd190c3cd47
7e9dc711aeedb2c9da7e35c2333e6720a10d0c98
fix(tests): migrate NexusApiTestSuite to parallelsuite, fix versioning flag and query pagination
## What changed? Two test fixes targeting consistent CI failures across all recent runs, plus a migration of `NexusApiTestSuite` to `parallelsuite`. ## Why? Both failures reproduced in 9–10/10 of the last 10 CI runs: **1. `TestNexusStartOperation_WithNamespaceAndTaskQueue_SupportsVersioning`** (10/10 runs) The test...
diff --git a/tests/nexus_api_test.go b/tests/nexus_api_test.go index 90b3ae9bfa5..b3e638d7ae9 100644 --- a/tests/nexus_api_test.go +++ b/tests/nexus_api_test.go @@ -612,6 +612,8 @@ func (s *NexusApiTestSuite) TestNexusCancelOperation_Outcomes(useTemporalFailure func (s *NexusApiTestSuite) TestNexusStartOperation_WithN...
3
1
0
[{"id": "G0", "claim": "The FrontendEnableWorkerVersioningRuleAPIs dynamic-config override at tests/nexus_api_test.go:614 is leftover and can be removed.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "This test suite should be fully migrated to ...
null
tempoxyz__tempo-apps__733
tempoxyz/tempo-apps
733
defect
58da3be0cea9ada8cdfd01e96032392db7f5ca1f
1a3737da4c164f9aada291f3b97592a41fac5e55
fix(explorer): handle tempox prefix in address route
## Summary URLs like `/address/tempox0x975...` now redirect to `/address/0x975...` instead of 404ing. ## Changes - Added `beforeLoad` hook to the address route that normalizes `tempox`/`tempoz` prefixes via `normalizeSearchInput` and redirects to the canonical `0x` URL ## Testing - `check:types` passes - All existing...
diff --git a/apps/explorer/src/routes/_layout/address/$address.tsx b/apps/explorer/src/routes/_layout/address/$address.tsx index 81938eb2f..ef4de41b6 100644 --- a/apps/explorer/src/routes/_layout/address/$address.tsx +++ b/apps/explorer/src/routes/_layout/address/$address.tsx @@ -3,6 +3,7 @@ import { createFileRoute,...
1
1
0
[{"id": "G0", "claim": "Update the tempo address validation/parsing to use viem's TempoAddress.validate utility instead of the custom regex-based implementation.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
tempoxyz__tempo__1040
tempoxyz/tempo
1,040
defect
ed64046858aa5af33e9153f1036e21c1fa8dc44d
fc8fd4b21fec380e84b484fbcb69eb54afb06c84
fix(mempool): reject invalid AA txs to prevent mempool DOS
## Motivation closes #1009 ## Solution as proposed in the issue discussion, we reject txs which have a `valid_after` beyond a `const AA_VALID_AFTER_MAX_SECS`. ## Questions - is 1h a good value?
diff --git a/crates/transaction-pool/src/transaction.rs b/crates/transaction-pool/src/transaction.rs index 83f757b0b3a..99dd618f97d 100644 --- a/crates/transaction-pool/src/transaction.rs +++ b/crates/transaction-pool/src/transaction.rs @@ -73,6 +73,9 @@ pub enum TempoPoolTransactionError { #[error("No fee token...
6
6
5
[{"id": "G0", "claim": "The 3600-second AA_VALID_AFTER_MAX_SECS limit is hardcoded (6 hrs) and should be a configurable parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TempoPoolTransactionError::InvalidValidAfter should return false in the erro...
null
tempoxyz__tempo__1059
tempoxyz/tempo
1,059
defect
2a9790c84a65b1000d2e5ece870f82947ef6dac8
1eed9f5780335e69fe4b0b2aefc7c59ca053de58
feat: `FeeManager` changes
applies `FeeManager` changes specified in https://github.com/tempoxyz/docs/pull/303 main difference is that instead of `tokens_with_fees` we now track `pools_with_fee`, and post-Allegrettto we calculate validator's earnings in `collectFeePostTx` `collected_fees` was directly changed to be a mapping. this should n...
diff --git a/crates/precompiles/src/tip_fee_manager/amm.rs b/crates/precompiles/src/tip_fee_manager/amm.rs index 8fe55063369..47579b16269 100644 --- a/crates/precompiles/src/tip_fee_manager/amm.rs +++ b/crates/precompiles/src/tip_fee_manager/amm.rs @@ -17,6 +17,14 @@ pub const SCALE: U256 = uint!(10000_U256); pub cons...
4
1
0
[{"id": "G0", "claim": "Changing `collected_fees` from a scalar slot to a `Mapping<Address, U256>` may not be backwards compatible for existing storage (is it already populated?).", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`compute_amount_out` in ...
null
tempoxyz__tempo__1084
tempoxyz/tempo
1,084
defect
5d7430af2ca23cfd72ca2ac8096c49dba8276fe3
94cf07392319c1fdb14f2b0591a6c51af44a1343
feat(stablecoin-exchange): enforce tick spacing
Ref tempoxyz/docs#316 This PR introduces `TICK_SPACING` and enforces that new orders placed after the allegretto hardfork adhere to the specified tick spacing. Note that fill logic still iterates through each tick in the tick bitmap, and this should be updated in the future for more a efficient search over existing ...
diff --git a/crates/precompiles/src/stablecoin_exchange/mod.rs b/crates/precompiles/src/stablecoin_exchange/mod.rs index 1c70b2c6678..39bcb1abc28 100644 --- a/crates/precompiles/src/stablecoin_exchange/mod.rs +++ b/crates/precompiles/src/stablecoin_exchange/mod.rs @@ -29,6 +29,9 @@ use tempo_precompiles_macros::contrac...
1
1
1
[{"id": "G0", "claim": "The tick-spacing check `(tick as u64).is_multiple_of(TICK_SPACING)` does not work correctly for negative ticks; the check should be a plain modulo without the u64 cast.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tempoxyz__tempo__1115
tempoxyz/tempo
1,115
defect
a4631222f986b18ec6c7acdf43d2157e7e9ff50a
cfeae92d1dae2679836a130e33d81b5fa38d27ad
feat: fee AMM liqudiity tracker
Introduces and integrates `AmmLiquidityCache` that is a small tracker caching following vlaues: - Latest fee tokens seen being used by validators, currently in last 100 blocks - Validator fee token preferences (to optimize populating the above) - AMM pool -> liquidity mappings During transaction validation, we ch...
diff --git a/crates/node/src/node.rs b/crates/node/src/node.rs index e687c92584d..b207014a95a 100644 --- a/crates/node/src/node.rs +++ b/crates/node/src/node.rs @@ -41,7 +41,7 @@ use tempo_payload_builder::TempoPayloadBuilder; use tempo_payload_types::TempoPayloadAttributes; use tempo_primitives::{TempoHeader, TempoP...
4
4
2
[{"id": "G0", "claim": "Move the private AmmLiquidityCacheInner struct definition below the public AmmLiquidityCache type.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Elaborate the InsufficientLiquidity error's docs to say why it exists, when...
null
tempoxyz__tempo__1208
tempoxyz/tempo
1,208
defect
36d8ff157fd5df9a6c37133772d7a9662cf1b7e1
99689ebf46aef0a7c44c20350d242376bafe51e5
fix(fee-manager): fix `set_fee_token` post moderato
Currently, there is a bug in the latest hardfork logic where if a user changes their fee token, they will not be able to set it back to PathUSD in the future. Not allowing Path/LinkingUSD as the fee token was [expected behavior in Moderato](https://github.com/tempoxyz/docs/blob/8319a0eb1332e64a40646fb151566df5a1e7f324/...
diff --git a/crates/node/tests/assets/test-genesis-allegretto.json b/crates/node/tests/assets/test-genesis-allegretto.json new file mode 100644 index 00000000000..433b6627078 --- /dev/null +++ b/crates/node/tests/assets/test-genesis-allegretto.json @@ -0,0 +1,396 @@ +{ + "config": { + "chainId": 1337, + "homeste...
2
2
1
[{"id": "G0", "claim": "The new `test_default_fee_token` integration test has no clear goal: it passes without the fix and does not exercise `set_user_token`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the existing `allegretto_activated` test he...
null
tempoxyz__tempo__1271
tempoxyz/tempo
1,271
defect
5de01a666981928f430b6dc7107d086fc5d58689
f964971eb632c757e5fe6c4da0725a90617b5c75
fix: use correct createX deployed bytecode
Uses createx bytecode with immutables set. value grabbed from etherscan deployed contract at 0xba5ed... Fixes: https://github.com/tempoxyz/tempo/issues/1274
diff --git a/Cargo.lock b/Cargo.lock index 4d4144ea0a3..4390cf4422c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11438,6 +11438,7 @@ dependencies = [ "revm", "tempo-chainspec", "tempo-consensus", + "tempo-contracts", "tempo-payload-types", "tempo-precompiles", "tempo-primitives", diff --git a/crates/contrac...
3
3
3
[{"id": "G0", "claim": "Let's introduce a constant for the correct CreateX code hash instead of computing a keccak on every block, which is wasteful.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bytecode-update check should not run on every bl...
null
tempoxyz__tempo__1279
tempoxyz/tempo
1,279
defect
3e7c99edbce8de1cec1f2aa0177a76a6bfa7d74e
b10ddba32f88fbb732006ca9b4d069d218a05c85
feat(consenus): don't eagerly canonicalize just-proposed blocks
With this patch a proposer no longer eagerly canonicalizes its just proposed block (by sending an `FCU(head_hash = proposed_hash)` to the execution layer). If the block is not notarized by the network, then the proposer will necessarily have to reorg its `head_hash` on the next view. Since blocks not being notarized is...
diff --git a/crates/commonware-node/src/consensus/application/actor.rs b/crates/commonware-node/src/consensus/application/actor.rs index 6c4873678e6..4223af37ff2 100644 --- a/crates/commonware-node/src/consensus/application/actor.rs +++ b/crates/commonware-node/src/consensus/application/actor.rs @@ -314,7 +314,12 @@ im...
1
1
0
[{"id": "G0", "claim": "Reword the comment to 'First check the canonical chain, then fallback to pending block state.' and add a note that the DKG and application actors process finalized blocks concurrently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tempoxyz__tempo__1442
tempoxyz/tempo
1,442
defect
2a822f0cfd3799ef6a07853cec67008f7d6309a2
19a617efe6e2a656b4e9e4d710c9e8eb78ade6d0
fix(revm): 2d nonce gas schedule
Adds a gas schedule for 2d nonces as written in the spec. Without this the node can be susceptible to storage DOS vectors. We also do a minor update in the gas schedule mentioned in the specs, to start the incrementing nonce costs from `20,000` instead of `0`
diff --git a/crates/revm/src/evm.rs b/crates/revm/src/evm.rs index 3879db8fba3..546a22da9fa 100644 --- a/crates/revm/src/evm.rs +++ b/crates/revm/src/evm.rs @@ -35,6 +35,8 @@ pub struct TempoEvm<DB: Database, I> { pub logs: Vec<Log>, /// The fee collected in `collectFeePreTx` call. pub(crate) collected_f...
3
2
1
[{"id": "G0", "claim": "Use the revm constants explicitly for EXISTING_NONCE_KEY_GAS instead of the hardcoded 5,000, i.e. COLD_SLOAD_COST + WARM_SSTORE_RESET.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Charging a new nonce key a progressive ...
null
tempoxyz__tempo__1510
tempoxyz/tempo
1,510
defect
f8c4c034563b8588d094df0058e3d00341b0099b
98833a204baf5a15e24de3b36573f829940d0c60
fix: P256 high s check
The secp256k1 function doesn't allow s values higher than n/2, to prevent 2 tx hashes being valid on the same signature. We add the same check for our P256 verification function. The n value for the curve was taken from [RIP 2712](https://eip.tools/rip/7212) The division with 2 was checked with wolfram, and pyt...
diff --git a/crates/primitives/src/transaction/tt_signature.rs b/crates/primitives/src/transaction/tt_signature.rs index 018303e00bf..9ebef51a981 100644 --- a/crates/primitives/src/transaction/tt_signature.rs +++ b/crates/primitives/src/transaction/tt_signature.rs @@ -1,7 +1,7 @@ use super::tempo_transaction::{ M...
2
2
1
[{"id": "G0", "claim": "The new high-s rejection may break tests that generate high-s P256 signatures (it already broke CI); logic should be added to check for a high-s P256 signature and convert it to N - s.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl...
null
tempoxyz__tempo__1709
tempoxyz/tempo
1,709
defect
61309b9db0cbf0eef5b241a111f5c10a3d59b70c
a445e70b2cdf3ce42d0a8296e54601f4314774e0
feat(tip20-factory): remove hardforks from `TIP20Factory`
This PR removes hardforks from the `TIP20Factory` precompile and related test utils.
diff --git a/crates/node/tests/it/tip20_factory.rs b/crates/node/tests/it/tip20_factory.rs index bbb227e9e66..5c8cf3eca59 100644 --- a/crates/node/tests/it/tip20_factory.rs +++ b/crates/node/tests/it/tip20_factory.rs @@ -11,7 +11,6 @@ use tempo_precompiles::{PATH_USD_ADDRESS, TIP20_FACTORY_ADDRESS, tip20::token_id #[t...
1
1
0
[{"id": "G0", "claim": "The nested quote-token checks in create_token should be chained into a single condition.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
tempoxyz__tempo__1720
tempoxyz/tempo
1,720
defect
f8465b9efd1ee4ce57b0c236367448e6b8e36ad4
72c74632c428332dbcab0429e3c7c76e506f36ea
chore: remove hardfork logic from `revm` + tx-pool
This PR removes hardfork-related logic from the `revm` + `transaction-pool` crates
diff --git a/crates/contracts/src/precompiles/mod.rs b/crates/contracts/src/precompiles/mod.rs index 2538350e094..d87824419e8 100644 --- a/crates/contracts/src/precompiles/mod.rs +++ b/crates/contracts/src/precompiles/mod.rs @@ -26,8 +26,8 @@ pub const PATH_USD_ADDRESS: Address = address!("0x20C000000000000000000000000...
2
2
1
[{"id": "G0", "claim": "The rewritten subblock validation in crates/revm/src/handler.rs dropped the keychain check that previously rejected keychain operations inside subblock transactions; the updated logic should return TempoInvalidTransaction::KeychainOpInSubblockTransaction when has_keychain_fields regardless of th...
null
tempoxyz__tempo__1775
tempoxyz/tempo
1,775
defect
8dd9b50f8290c25bf48001e53cacd98d628f6bfe
98160577ead7ebcdf47e466501347a6e1b949856
chore: fee manager dead code
Removes dead code and tests, after removing system transactions in fee manager.
diff --git a/crates/precompiles/src/tip_fee_manager/amm.rs b/crates/precompiles/src/tip_fee_manager/amm.rs index 8c4bbd8bad7..2c50d9efeeb 100644 --- a/crates/precompiles/src/tip_fee_manager/amm.rs +++ b/crates/precompiles/src/tip_fee_manager/amm.rs @@ -90,38 +90,6 @@ impl TipFeeManager { self.pools.at(pool_id)...
4
3
2
[{"id": "G0", "claim": "The fee-swap tests deleted by the pull request should be rewritten so the updated fee swap functions are covered by tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When --genesis is provided without an existing localnet dir...
null
tempoxyz__tempo__1792
tempoxyz/tempo
1,792
defect
7023132856f9bb28e5a514740d43cb765b25914b
4fe713d58acce23923a6f190eb417b260dd78a41
fix: create address calculations + restrictions
Solves #1550 ### Problem When deploying a contract via CREATE in a Tempo transaction, the contract address was computed incorrectly. The address was derived using nonce + 1 instead of the current nonce, causing: - Receipt contractAddress to not match the actual deployed address - Contract interactions ...
diff --git a/crates/node/tests/it/tempo_transaction.rs b/crates/node/tests/it/tempo_transaction.rs index 45691ffc5bf..82990148619 100644 --- a/crates/node/tests/it/tempo_transaction.rs +++ b/crates/node/tests/it/tempo_transaction.rs @@ -5452,3 +5452,95 @@ async fn test_aa_key_authorization_chain_id_validation() -> eyre...
2
2
1
[{"id": "G0", "claim": "With the nonce now bumped pre-execution only for CALLs, an AA CREATE-first batch that fails reverts the nonce bump made inside make_create_frame (it happens after the multi-call checkpoint), leaving the sender nonce unchanged even though the transaction was included, which enables replaying the ...
null
tempoxyz__tempo__1799
tempoxyz/tempo
1,799
defect
e311793d75b7f1ff374baaf253132338175ed298
fda1a4ba9ee6dd0d39e1275a8be1af51b1d69061
fix: add pause check to transfer_fee_pre_tx
When a TIP20 token is paused, pre-transaction fee transfers should fail to make the transaction invalid. This prevents the fee manager from transferring funds when the token is paused.
diff --git a/crates/precompiles/src/tip20/mod.rs b/crates/precompiles/src/tip20/mod.rs index fe392492a69..ab315e861f2 100644 --- a/crates/precompiles/src/tip20/mod.rs +++ b/crates/precompiles/src/tip20/mod.rs @@ -755,6 +755,7 @@ impl TIP20Token { /// Transfers fee tokens from user to fee manager before transacti...
1
1
0
[{"id": "G0", "claim": "Add a comment explaining why the pause check is made in transfer_fee_pre_tx but not in transfer_fee_post_tx.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tempoxyz__tempo__1821
tempoxyz/tempo
1,821
defect
5b0c652641fe41afc6dd0bd98fd7cac250ba31c4
4a607f14364e268283e1ad3154077b505f3edb82
feat: add full dkg mechanism
* on top of https://github.com/tempoxyz/tempo/pull/1680 * uses the precompile to know when to execute a full/fresh dkg ceremony How it works * Outcome in the last block of `epoch_N-1` will specify if the next epoch will execute a full dkg ceremony * Outcome in the last block of `epoch_N` will have the new pub...
diff --git a/crates/commonware-node/src/dkg/manager/actor/mod.rs b/crates/commonware-node/src/dkg/manager/actor/mod.rs index b85e7229e05..4017e4ef761 100644 --- a/crates/commonware-node/src/dkg/manager/actor/mod.rs +++ b/crates/commonware-node/src/dkg/manager/actor/mod.rs @@ -294,6 +294,7 @@ where roun...
11
7
0
[{"id": "G0", "claim": "The new `is_next_full_dkg` field on `OnchainDkgOutcome` could be an epoch number instead of a boolean.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Emit an info-level event when the node instantiates a dealer for a full re-DKG."...
null
tempoxyz__tempo__1822
tempoxyz/tempo
1,822
defect
5b0c652641fe41afc6dd0bd98fd7cac250ba31c4
1f306eb30f62325125a24a40e39b87761e5981e3
feat!(consensus): fast sync
Adds a fast-sync mechanism that works by skipping outdated epochs, jumping from epoch boundary to epoch boundary. Note that this implementation covers the general case that does not require operator intervention. ## Assumptions and drawbacks 1. there still exists at least 1 peer from the validator set known ...
diff --git a/crates/commonware-node/src/config.rs b/crates/commonware-node/src/config.rs index b4f95f7689d..bd1ed4fb9ac 100644 --- a/crates/commonware-node/src/config.rs +++ b/crates/commonware-node/src/config.rs @@ -21,7 +21,6 @@ pub const RESOLVER_CHANNEL_IDENT: commonware_p2p::Channel = 2; pub const BROADCASTER_CHA...
5
3
1
[{"id": "G0", "claim": "A full node will never resolve `read_validator_config_with_retry` at an epoch boundary, because it does not have historical state for each epoch boundary with the current implementation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
tempoxyz__tempo__1854
tempoxyz/tempo
1,854
defect
698cab94a237a86cedb2aa5f380f79908e715163
298e84c867f7c9800b62d632f4fb3df3abce65b8
feat: use 12 byte `TIP20_PREFIX`
This PR updates the `TIP20_PREFIX` to use 12 bytes instead of 10 and fixes small nits with #1819.
diff --git a/bin/tempo-sidecar/src/cmd/simple_arb.rs b/bin/tempo-sidecar/src/cmd/simple_arb.rs index 8281c3b7c97..934349197ef 100644 --- a/bin/tempo-sidecar/src/cmd/simple_arb.rs +++ b/bin/tempo-sidecar/src/cmd/simple_arb.rs @@ -2,6 +2,7 @@ use alloy::{ network::EthereumWallet, primitives::{Address, U256}, ...
1
1
0
[{"id": "G0", "claim": "The factory should support specifying a custom quote token (not just address(0)) for future reserved-address token deployments, though the reviewer concedes this is probably overkill.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tempoxyz__tempo__1888
tempoxyz/tempo
1,888
defect
274510cc0bf2e6e3fd980ecf476e1b04753e4b23
e33ccfbc25fc1f3ac8b3aec41e06b9efeac83c5a
fix(subblock): [build] drop txs above gas budget to prevent DOS
This PR drops subblock txs above the max gas budget of a subblock to prevent DOS attacks audit: `TEMPO-16` follow-up, as the initial patch was incomplete
diff --git a/crates/commonware-node/src/subblocks.rs b/crates/commonware-node/src/subblocks.rs index c2e79f61a60..35a8f8b3b67 100644 --- a/crates/commonware-node/src/subblocks.rs +++ b/crates/commonware-node/src/subblocks.rs @@ -708,14 +708,29 @@ async fn build_subblock( Ok(mut evm) => { let mut s...
1
1
0
[{"id": "G0", "claim": "Rather than locking the transactions mutex on every removal inside the loop, the affected tx_hashes should be collected in a vec and dropped in a single locked pass at the end of the loop.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
tempoxyz__tempo__1918
tempoxyz/tempo
1,918
defect
f9bdca19cc4a0b8965ca8e031f65172531341e5b
8310eb56f6223b1b884f08f00087f49b861059d6
feat: add `consensus_getIdentityTransitionProof`
Assumes the client has access to the rest of the headers, so we only provide the headers/finalizations of the relevant boundaries. ```rust /// Get identity transition proofs (full DKG events). /// /// Each proof contains the block header with the new DKG outcome, and a BLS certificate from the OLD ...
diff --git a/Cargo.lock b/Cargo.lock index cbd0a4c7fd7..07e9ce6eeb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11642,6 +11642,8 @@ dependencies = [ "reth-primitives-traits", "reth-provider", "reth-revm", + "reth-rpc-convert", + "tempo-alloy", "tempo-commonware-node-config", "tempo-dkg-onchain-artifacts", ...
6
5
2
[{"id": "G0", "claim": "Rename the IdentityTransition fields old_public_key/new_public_key to old_identity/new_identity as suggested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TransitionProofData.finalization field actually holds the finalizatio...
null
tempoxyz__tempo__1990
tempoxyz/tempo
1,990
defect
f14e3ac99a17f17c8ca89c231d0c436bd135ee8b
729121b9f73bc46c79e52706dbef380fa3247a93
fix! : access keys from 7702 delegating accounts
Currently authorization list checks for Tempo Txs, allow access keys to 7702 delegate a user's account. Delegating an account is a critical function, and should only be handled by the main key. Additionally, we don't have access to the keychain precompile in the `recover_signer` function, the `authorize()` function...
diff --git a/crates/node/tests/it/tempo_transaction.rs b/crates/node/tests/it/tempo_transaction.rs index 38042a6ecac..aca58605514 100644 --- a/crates/node/tests/it/tempo_transaction.rs +++ b/crates/node/tests/it/tempo_transaction.rs @@ -3108,6 +3108,139 @@ async fn test_tempo_authorization_list() -> eyre::Result<()> { ...
3
2
0
[{"id": "G0", "claim": "recover_signer users cannot assume a keychain signature is valid for the keychain — the access key must also be checked as authorized in the keychain precompile, which cannot be done here, and this footgun needs protection or at least an issue to track and resolve it (possibly in a separate PR)....
null
tempoxyz__tempo__2035
tempoxyz/tempo
2,035
defect
747d34f0a9f50697e6a2fe5be6abed0548aa576b
9e7fdf7344d802ae90b76d879e72cc9f04324397
fix(txpool): evict AA transactions when signing key is revoked
Closes CHAIN-439 Evict AA transactions from the mempool when their authorizing keychain key is revoked. Transactions signed with an access key that is later revoked would remain stuck in the mempool indefinitely—never evicted, never executable. This created a DoS vector where attackers could clog the mempool with...
diff --git a/crates/node/src/node.rs b/crates/node/src/node.rs index 1b589e413fe..8518dedb043 100644 --- a/crates/node/src/node.rs +++ b/crates/node/src/node.rs @@ -469,6 +469,17 @@ where tempo_transaction_pool::maintain::maintain_amm_cache(transaction_pool.clone()), ); + // Spawn keychai...
3
3
2
[{"id": "G0", "claim": "A separate evict_revoked_keychain_txs task is suboptimal because multiple tasks compete for updates; it should be converted into a general-purpose maintenance task that batches update kinds into a single pool.update().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i...
null
tempoxyz__tempo__2097
tempoxyz/tempo
2,097
defect
2326135efa872985755b984f7340380972620965
96a1e5df7399cecd229f7bd15672e520ceb8079c
fix(txpool): evict keychain transactions on spending limit changes
Closes CHAIN-444 ## Summary Extends the pool maintenance task to evict keychain-signed transactions when their spending limits are modified. ## Problem TOCTOU vulnerability where: 1. Keychain transactions pass validation 2. Spending limit is reduced below transaction value 3. Transactions fail at execution but rema...
diff --git a/crates/node/tests/it/tempo_transaction.rs b/crates/node/tests/it/tempo_transaction.rs index a785c8687e6..5c63346bafc 100644 --- a/crates/node/tests/it/tempo_transaction.rs +++ b/crates/node/tests/it/tempo_transaction.rs @@ -4536,24 +4536,31 @@ async fn test_aa_keychain_enforce_limits() -> eyre::Result<()> ...
6
6
1
[{"id": "G0", "claim": "Evicting on any SpendingLimitUpdated event is overly aggressive because it removes all of a key's transactions even when the limit increased or the token differs; reviewer asks to document the conservative choice or to evict only when the limit decreased and/or only transactions paying with the ...
null
tempoxyz__tempo__2354
tempoxyz/tempo
2,354
defect
0763c5a505f13cb80429c06329170cf42a571491
f7d2a50d01d0639037a7c51a81fc9ebe15da0347
chore(TIP-1015): simpligy impl + minimize SLOADs when possible
This PR addresses the feedback in #2344 regarding code simplification for leaner and easier to maintain impl additionally it incorposates the storage layout improvements made in #2356
diff --git a/crates/precompiles/benches/tempo_precompiles.rs b/crates/precompiles/benches/tempo_precompiles.rs index 7f47d902646..369e3cb7a90 100644 --- a/crates/precompiles/benches/tempo_precompiles.rs +++ b/crates/precompiles/benches/tempo_precompiles.rs @@ -5,7 +5,7 @@ use tempo_precompiles::{ storage::{Storage...
3
1
1
[{"id": "G0", "claim": "The built-in policy check (builtin_authorization) is evaluated twice within a single is_authorized_as() call — once for the top-level policy and again inside is_authorized_simple_policy for the compound sub-policy.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "in...
null
tempoxyz__tempo__2356
tempoxyz/tempo
2,356
defect
f7d2a50d01d0639037a7c51a81fc9ebe15da0347
2490370e8c2dcdb43ae877e68ed6b02130367b15
perf(TIP-1015)!: optimize storage layout
### Motivation The original TIP-1015 implementation uses 2 separate mappings for policy data: ```rust policy_data: Mapping<u64, PolicyData> // slot 1 compound_policy_data: Mapping<u64, CompoundPolicyData> // slot 3 ``` This requires **2 keccak computations** per compound policy authorizat...
diff --git a/crates/precompiles/src/tip403_registry/mod.rs b/crates/precompiles/src/tip403_registry/mod.rs index 2615a440498..770539bf66d 100644 --- a/crates/precompiles/src/tip403_registry/mod.rs +++ b/crates/precompiles/src/tip403_registry/mod.rs @@ -13,14 +13,21 @@ use alloy::primitives::{Address, U256}; #[contract...
1
1
1
[{"id": "G0", "claim": "Renaming the storage mapping will affect the public getter's function signature (ABI change).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
tempoxyz__tempo__2360
tempoxyz/tempo
2,360
defect
f0fcf021f95d05a90896d0d6b375da93420929d6
fb9d2fd842935bdf0b45722a8a382ac608cc214f
fix(revm): use custom gas params for key authorization in T1
## Summary - Use custom `GasParams` with only SSTORE gas enabled (250,000) for key authorization storage operations in T1 hardfork - Previously was using the full `cfg.gas_params` which included unnecessary gas charges ## Test plan - [x] Updated gas expectations in `crates/revm/src/evm.rs` (590,914 → 587,177) - [x] Up...
diff --git a/crates/node/tests/it/tempo_transaction.rs b/crates/node/tests/it/tempo_transaction.rs index f6c135d4b26..1eb7ed71227 100644 --- a/crates/node/tests/it/tempo_transaction.rs +++ b/crates/node/tests/it/tempo_transaction.rs @@ -2756,16 +2756,16 @@ async fn test_aa_estimate_gas_with_keychain_and_key_auth() -> e...
2
1
0
[{"id": "G0", "claim": "The 250_000 sstore cost should be taken directly from gas params via cfg.gas_params.get(GasId::sstore_set_without_load_cost()) instead of being hardcoded in handler.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The k...
null
tempoxyz__tempo__2874
tempoxyz/tempo
2,874
defect
93140a23c4170b4653bf41ef98e775437f5096db
d12345b8e0cfffef6e88f9ce998bdd5202f4e08b
fix(pool): clean up expiry tracking on tx removal
Adds `untrack_expiry()` to remove expiry and key-expiry metadata when transactions are mined, moved to the paused pool, or evicted as stale. Adds a `tx_to_key` reverse map to `KeyExpiryTracker` for O(1) cleanup. Tests updated to use `valid_before: None` where an explicit expiry isn't needed.
diff --git a/bin/tempo-bench/src/cmd/max_tps.rs b/bin/tempo-bench/src/cmd/max_tps.rs index 5a9ec9422ed..88ee230aa86 100644 --- a/bin/tempo-bench/src/cmd/max_tps.rs +++ b/bin/tempo-bench/src/cmd/max_tps.rs @@ -1180,7 +1180,7 @@ async fn assert_receipts<R: ReceiptResponse, F: Future<Output = eyre::Result<R>> receipt...
7
4
1
[{"id": "G0", "claim": "remove_mined() cleans up expiry_map/tx_to_expiry for mined transactions but ignores KeyExpiryTracker, so mined keychain tx hashes stay in key_to_txs until key expiry and can accumulate unboundedly under attacker broadcast (eventually OOM); an equivalent key_expiry cleanup should run here.", "cat...
null
tempoxyz__tempo__2920
tempoxyz/tempo
2,920
defect
61129e0daff1b065ab64d7c51fc97280f762d4df
bcddee74e88eed4d0f5d36ca07a6f42b0ffd483f
feat: feed actor resolves blocks with finalized & notarized events
There is a small race between the feed actor getting the activity update and the marshaller persisting the block in storage. Rather than surface this race to the caller via an `Option` and out-of-band fills on queries, the feed actor will subscribe to the activity digest * Update `CertifiedBlock` with block in que...
diff --git a/crates/commonware-node/src/feed/actor.rs b/crates/commonware-node/src/feed/actor.rs index b9d1569e55a..893a0b8db73 100644 --- a/crates/commonware-node/src/feed/actor.rs +++ b/crates/commonware-node/src/feed/actor.rs @@ -1,16 +1,23 @@ //! Feed actor implementation. //! //! This actor: -//! - Receives con...
4
4
1
[{"id": "G0", "claim": "The backwards-compat surface the PR adds to `CertifiedBlock` (the `Option<Block>` wrapper kept for one release and the deprecated `height` field) looks unnecessary - the reviewer asks whether any critical services depend on these APIs and, if nobody outside the project uses them, asks that they ...
null
tempoxyz__tempo__2940
tempoxyz/tempo
2,940
defect
ce6a998d71f4c9f7bf5468c82dd657881c2f016f
91626c6a9831893878a53531b616b0c6d9219865
feat: handle nodes losing DKG player state (and bump Commonware)
- Bumps Commonware to `240e0207ee10c3c37a42867ce4de97b581c06b32` - Handle DKG finalization on invalid player state: Commonware now returns an error if player state is inconsistent (instead of panicking) - CW now supports incompatible features. The right mode must be specified - Broadcast engine subscribes to peer up...
diff --git a/Cargo.lock b/Cargo.lock index e3ddc15d5b8..8a6dbdc93c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1417,17 +1417,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "async-lock" -version = "3.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f7f2596bd5b78a9fec80...
3
3
3
[{"id": "G0", "claim": "The engine obtains the peer-set subscription via peer_manager_mailbox.subscribe().await inside the broadcast engine's config while the engine is constructed; the reviewer asks to move the subscription into broadcast_engine.start instead of config, since subscribe() implies interacting with a run...
null
tempoxyz__tempo__2944
tempoxyz/tempo
2,944
defect
7ce26eb2f66dd7ef5450c3a4625fe851cdd34bce
91e4beffb19b2f1c6d65ea5bd93c58f531c55685
test: add gas snapshots for tempo txs
Closes: `CHAIN-615` this PR builds on top of #2810 to create snapshot test for gas estimations, while extending the matrix to more test cases
diff --git a/Cargo.lock b/Cargo.lock index e3ddc15d5b8..1e3b760f6a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2778,6 +2778,18 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "console" +version = "0.15.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "054ccb5b10f9f2...
2
2
0
[{"id": "G0", "claim": "The gas estimation snapshot should be sorted by name rather than by gas amount (offered as a nit the reviewer said could be ignored).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The batch call cases should use transfer...
null
tempoxyz__tempo__3045
tempoxyz/tempo
3,045
defect
49f5c56d1a5b5197c93f3a4024c193d422f632ad
a210305badb9512dee8e8246ea3d5a083412219d
feat(consensus): add --consensus.enable-subblocks flag
Adds `--consensus.enable-subblocks` CLI flag (default: `false`) to control whether the node participates in subblock processing. Co-Authored-By: Arsenii Kulikov <62447812+klkvr@users.noreply.github.com> Prompted by: klkvr
diff --git a/crates/commonware-node/src/args.rs b/crates/commonware-node/src/args.rs index 05e162e01aa..744abba89c0 100644 --- a/crates/commonware-node/src/args.rs +++ b/crates/commonware-node/src/args.rs @@ -120,6 +120,13 @@ pub struct Args { )] pub minimum_time_before_propose: PositiveDuration, + /// D...
3
3
2
[{"id": "G0", "claim": "The new engine config field should be named `with_subblocks` instead of `enable_subblocks`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When subblocks are disabled the subblocks actor should not run at all; the disable...
null
tempoxyz__tempo__3074
tempoxyz/tempo
3,074
defect
d7a68ebde775d707e34f21eb8b493b04fd79a6cd
f31daaafa50831b0c51d857d7507ab42db54de25
chore: dkg e2e test for wiped consensus state
Ensure the node recovers a share in the subsequent epoch
diff --git a/crates/commonware-node/src/dkg/manager/actor/mod.rs b/crates/commonware-node/src/dkg/manager/actor/mod.rs index 87bdeb45f2b..72dfd9ca8fc 100644 --- a/crates/commonware-node/src/dkg/manager/actor/mod.rs +++ b/crates/commonware-node/src/dkg/manager/actor/mod.rs @@ -738,6 +738,7 @@ where ...
5
5
1
[{"id": "G0", "claim": "The setup loop should check explicitly that the DKG actor received at least one acknowledgement before proceeding and then wipe the state, instead of relying on the marshal processed height.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
tempoxyz__tempo__3099
tempoxyz/tempo
3,099
defect
9612dd1c07137c932b047fdc887bd0b2000185d2
a15b4c8f1fd5bfdf02d6c8e7070608b66088ca9b
fix(txpool): strict payment calldata validation in pool and builder
## Motivation Payment lane classification currently only checks the TIP-20 address prefix. Transactions with unrecognized or oversized calldata can be classified as payments, bypassing the 30M general gas limit and accessing the full 450M+ payment lane budget. ## Solution Adds `ITIP20Calls::is_payment()` for t...
diff --git a/crates/primitives/src/transaction/envelope.rs b/crates/primitives/src/transaction/envelope.rs index e8185cd9164..aef0dc4438b 100644 --- a/crates/primitives/src/transaction/envelope.rs +++ b/crates/primitives/src/transaction/envelope.rs @@ -14,6 +14,36 @@ use core::fmt; /// Same as TIP20_TOKEN_PREFIX pub ...
8
6
1
[{"id": "G0", "claim": "The strict payment classifier only inspects `to` and `input` and ignores the gas-bearing sidecar fields (access_list, authorization_list, tempo_authorization_list, key_authorization), allowing payment-lane transactions to carry heavy execution overhead and bypass `general_gas_limit` enforcement;...
null
tempoxyz__tempo__3101
tempoxyz/tempo
3,101
defect
017fb86d2d14d758de1ff0b17b6af97dede5d42a
c2e254d152a4aa3b30e8bc2d093c4a56af4ee64a
fix(primitives): guard normalize_p256_s against out-of-range s values
ref: `SIGP-156` Changes `normalize_p256_s` to return `Result<B256, &'static str>`, rejecting `s == 0` and `s >= P256_ORDER` before the `P256_ORDER - s` subtraction. Without this guard, unsigned subtraction wraps in release mode and can produce an invalid scalar that breaks the low-s postcondition. Adds edge-case ...
diff --git a/crates/node/tests/it/tempo_transaction/helpers.rs b/crates/node/tests/it/tempo_transaction/helpers.rs index e36c86c92ed..8a83dc0bcf8 100644 --- a/crates/node/tests/it/tempo_transaction/helpers.rs +++ b/crates/node/tests/it/tempo_transaction/helpers.rs @@ -383,7 +383,7 @@ pub(super) fn sign_p256_primitive( ...
2
1
0
[{"id": "G0", "claim": "normalize_p256_s should return Result<B256, &'static str> instead of Option<B256>, to align with the other fallible validation/parsing functions in the module and let callers propagate the error rather than rely on expect().", "category": "design", "verdict": "supported", "priority": "P2", "scop...
null
tempoxyz__tempo__3140
tempoxyz/tempo
3,140
defect
33d94fcfa0ec647f5c850043e213b92643c6e8e3
337a04699c6ef812bb5723ae22bd06ef5a679f0a
chore(e2e): el peering after startup, avoid manual port reservation
The kernel can re-assign the free'd port before reth is able to bind it
diff --git a/Cargo.lock b/Cargo.lock index a0bca9f9151..47b75f8c86f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12052,12 +12052,10 @@ dependencies = [ "reth-chainspec", "reth-db", "reth-ethereum", - "reth-network-peers", "reth-node-builder", "reth-node-core", "reth-node-metrics", "reth-rpc-builder", - "s...
2
1
1
[{"id": "G0", "claim": "The failing tests indicate that the EL p2p connection does not work: after a sufficiently large gap between shutdown and restart the nodes are unable to get blocks over EL p2p, so the tests fail (or never finish).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "i...
null
tempoxyz__tempo__3200
tempoxyz/tempo
3,200
defect
b549b5493a732d73861ea003f35515ff59145e71
3ef85544310f024177908e41948994a0db9dfc7e
fix(fees): reject self-sponsored fee payer signatures
Addresses CHAIN-959. Rejects AA transactions when a `fee_payer_signature` resolves back to the sender, so self-sponsored signatures cannot bypass fee-payer assumptions. This is enforced in txpool validation and EVM fee-payer resolution, and the fee-payer negative e2e scenario now includes a self-sponsored rejection ca...
diff --git a/crates/revm/src/error.rs b/crates/revm/src/error.rs index eb5df31448f..5b3b3fe3cc5 100644 --- a/crates/revm/src/error.rs +++ b/crates/revm/src/error.rs @@ -30,6 +30,10 @@ pub enum TempoInvalidTransaction { #[error("fee payer signature recovery failed")] InvalidFeePayerSignature, + /// Fee pa...
6
6
5
[{"id": "G0", "claim": "The new SelfSponsoredFeePayer rejection trips on the caller fallback that fill/estimate flows exercise with a dummy fee-payer signature, so sponsored fill/estimate requests will start failing before the real fee-payer signature is attached.", "category": "correctness", "verdict": "supported", "p...
null
tempoxyz__tempo__3637
tempoxyz/tempo
3,637
defect
67f3f667552377db5af8cde051c36bf1fd51ce6e
04a29a572a9f9e7bc7363e081c3cde4e11f29097
feat(primitives): add `TempoAddressExt` with built-in helper fns
this PR encapsulates all the helper fns related to the `Address` into a single `trait TempoAddressExt`, so that consumers of `tempo-primitives` can easily use all those helpers. review note: - the trait is defined in `crates/primitives/src/address.rs` - the other changes simply make use of the new ergonomic APIs
diff --git a/.changelog/nice-winds-break.md b/.changelog/nice-winds-break.md new file mode 100644 index 00000000000..2faae4b34cb --- /dev/null +++ b/.changelog/nice-winds-break.md @@ -0,0 +1,6 @@ +--- +tempo-primitives: minor +tempo-alloy: minor +--- + +Moved TIP-20 and TIP-1022 virtual-address helpers (`is_tip20_prefi...
2
2
1
[{"id": "G0", "claim": "Removing the public `is_tip20_prefix` fn from `tempo-precompiles` (crates/precompiles/src/tip20/mod.rs) is technically a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep the standalone helper fns as they are an...
null
tempoxyz__tempo__3734
tempoxyz/tempo
3,734
defect
e545e52dfe0eade2fa90676ba6dd65e7759cd464
7fb45516ea73e33191639cf346ee8d0213442645
feat(precompiles): add U96 storage primitive
Adds a reusable `U96` type to the precompile storage system, including Alloy `Uint<96, 2>` conversions, storage/packing trait impls, and focused roundtrip tests. This pulls the low-level packed-width support out of the larger TIP-1034 branch so follow-up escrow work can build on a smaller dependency PR. Linear: https...
diff --git a/crates/precompiles-macros/src/storable_primitives.rs b/crates/precompiles-macros/src/storable_primitives.rs index 5567eb34526..92c972a24e2 100644 --- a/crates/precompiles-macros/src/storable_primitives.rs +++ b/crates/precompiles-macros/src/storable_primitives.rs @@ -4,7 +4,7 @@ use proc_macro2::TokenStrea...
1
1
0
[{"id": "G0", "claim": "The newly added `pub use alloy::primitives::aliases::U96;` re-export in crates/precompiles/src/storage/types/mod.rs should not be `pub`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
tempoxyz__tempo__985
tempoxyz/tempo
985
defect
91efc9f69321c3d802194745f721c9f264942085
746a8df9a6185110bd8ef108150773a04660c189
feat!(stablecoin-exchange): create new dex pair on first order
Closes #970 This PR updates the `StablecoinExchange` precompile to remove the `createPair()` function from the public interface and automatically create a new pair when placing an order if the orderbook is not already created. This PR gates this logic behind the `Allegretto` hardfork.
diff --git a/crates/chainspec/src/hardfork.rs b/crates/chainspec/src/hardfork.rs index 3c64e6f1b1c..9ed4e2c19bb 100644 --- a/crates/chainspec/src/hardfork.rs +++ b/crates/chainspec/src/hardfork.rs @@ -28,7 +28,7 @@ hardfork!( /// Placeholder representing the baseline (pre-hardfork) state. #[default] ...
4
4
1
[{"id": "G0", "claim": "Post-allegretto the createPair arm decodes the calldata only to reject it; using the unknown_selector helper instead would avoid that decode and give accurate gas accounting.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
tendermint__tendermint__2540
tendermint/tendermint
2,540
defect
989a2f32b1411d159be436d64136248f02289fba
82846935925950647e6209b3aa106818a21febe7
consensus: Wait for proposal or timeout before prevote
- Fix #1745. - Improve tests.
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 0cd8bd2fed9..664af8cdb0e 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -45,6 +45,8 @@ BUG FIXES: - [node] \#2434 Make node respond to signal interrupts while sleeping for genesis time - [consensus] [\#1690](https://github.com/tendermint/...
13
8
0
[{"id": "G0", "claim": "Breaking the log-message string across lines in the ensureNoNew* helpers is clunky; the calls should use the suggested pattern with the message on one line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ensureNewEven...
null
tendermint__tendermint__2785
tendermint/tendermint
2,785
defect
6e9aee546061423864fef3f9fa332ef37c3dca96
de44ee968a71c546de52202a296d2a5d533e03d5
Set accum of freshly added validator -(total voting power)
This PR sets the `Accum` of a added validator to `-(totalVotingPower + (totalVotingPower >> 3))` in `state/execution:updateValidators`. It is a potential fix for #2718 and #2809 see: https://github.com/tendermint/tendermint/pull/2785#issuecomment-440241797 Big thanks to @melekes for an early sanity check! <!--...
diff --git a/lite/doc.go b/lite/doc.go index 00dcce68cdd..f68798dc526 100644 --- a/lite/doc.go +++ b/lite/doc.go @@ -121,7 +121,7 @@ If we cannot update directly from H -> H' because there was too much change to the validator set, then we can look for some Hm (H < Hm < H') with a validator set Vm. Then we try to upd...
7
6
2
[{"id": "G0", "claim": "The comment '// store the current total voting power before applying any updates' is unnecessary and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error-string capitalization changes should be reve...
null
tendermint__tendermint__3298
tendermint/tendermint
3,298
defect
7fd51e6ade5bd3d6820acdd53ad443c509a4fc7a
86106e7520c46cbba5d2eb70fa9b6d438f6006f6
types: CommitVotes struct as last step towards #1648
I believe this is the last commit necessary for #1648 before we make the actual breaking change. That change will add `Height` and `Round` fields directly in the `Commit` and change the `CommitSig` to be a struct with just `Timestamp` and `Signature`. Wahoo! * [ ] Updated all relevant documentation in docs * ...
diff --git a/consensus/reactor.go b/consensus/reactor.go index 604e54b4962..3360cbd3284 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -639,7 +639,13 @@ OUTER_LOOP: // Load the block commit for prs.Height, // which contains precommit signatures for prs.Height. commit := conR.conS.blockStore...
5
4
2
[{"id": "G0", "claim": "When the catchup loop fails to load the validator set for prs.Height it should probably log an error and continue the OUTER_LOOP rather than panic.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The new ToVote comment misspel...
null
tendermint__tendermint__3668
tendermint/tendermint
3,668
defect
86cf8ee3f96fbff39ebf79d58e186201a2bd2222
46c4905631dc909425a240da4eb753109419e2bd
p2p/conn: Make non-malleable
This is an approach to fixing secret connection that is more noise-ish than actually noise. but it essentially fixes the problem that #3315 is trying to solve by making the secret connection handshake non-malleable. It's easy to understand and I think will be acceptable to @jaekwon Lots to bikeshed here so start...
diff --git a/p2p/conn/secret_connection.go b/p2p/conn/secret_connection.go index 7f76ac800c3..fd0ab422d1f 100644 --- a/p2p/conn/secret_connection.go +++ b/p2p/conn/secret_connection.go @@ -73,6 +73,11 @@ type SecretConnection struct { // Caller should call conn.Close() // See docs/sts-final.pdf for more information. ...
5
3
1
[{"id": "G0", "claim": "The pull request should include a brief explanation of how the change aims to solve the malleability issue.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above deriveSecretAndChallenge is stale after the change...
null
tendermint__tendermint__4101
tendermint/tendermint
4,101
defect
6a4608230cd4a584490d01b2775c18f3b80b38a2
8b08f4ee3f06f3df6f4350b28c2c485e00194359
Rc2/v0.32.8
<!-- Thanks for filing a PR! Before hitting the button, please check the following items. Please note that every non-trivial PR must reference an issue that explains the changes in the PR. --> * [ ] Referenced an issue explaining the need for the change * [ ] Updated all relevant documentation in docs * [ ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b081b2927535..3ba918009266 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,11 +52,11 @@ program](https://hackerone.com/tendermint). ## v0.32.5 -*October 1, 2019* +*September 30, 2019* This release fixes a major security vulnerability found in the `p2p` package....
4
1
0
[{"id": "G0", "claim": "The pull request removed the `nolint: gas` suppression from the subprocess launch in abci/tests/test_app/main.go, leaving the G204/gosec lint warning to be flagged.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An issue ...
null
tendermint__tendermint__4151
tendermint/tendermint
4,151
defect
e71a2b161bf2964c5ed72d8f540bab4e7e85c47e
a5ce39addbef9ab6c7c0cbe3d03e0565e10be090
Enforce Ordering in DuplicateVoteEvidence
<!-- Thanks for filing a PR! Before hitting the button, please check the following items. Please note that every non-trivial PR must reference an issue that explains the changes in the PR. --> Fixes issue described in: #4143 * [x] Referenced an issue explaining the need for the change * [ ] Updated all ...
diff --git a/types/evidence.go b/types/evidence.go index a6c9d1bfef1..b4b297567c0 100644 --- a/types/evidence.go +++ b/types/evidence.go @@ -3,6 +3,7 @@ package types import ( "bytes" "fmt" + "strings" "github.com/pkg/errors" "github.com/tendermint/tendermint/crypto/tmhash" @@ -103,6 +104,27 @@ type Duplicat...
4
2
0
[{"id": "G0", "claim": "The error returned when votes are out of order should read \"duplicate votes in invalid order\" (lower-case) instead of \"Duplicate Votes in invalid order\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "This pull reques...
null
tendermint__tendermint__4185
tendermint/tendermint
4,185
defect
c43143707abefa48b8ba9f72e1426d71637f7e74
1368fa4ce4cd7956e244f810f10ec1040f3503ab
p2p/conn: simplify secret connection handshake malleability fix with merlin
This simplifies transcript hashing using the merlin protocol rather than HKDF. It's a cleaner API This also only uses the transcript hash as a MAC. Fixes #4140 as well. * [x] Referenced an issue explaining the need for the change * [ ] Updated all relevant documentation in docs * [ ] Updated all code comments wh...
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 2703dcfb0b7..3b5680fec49 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -69,7 +69,7 @@ program](https://hackerone.com/tendermint). - P2P Protocol - - [p2p][\3668](https://github.com/tendermint/tendermint/pull/3668) Make `SecretConnect...
7
6
0
[{"id": "G0", "claim": "Add a new CHANGELOG_PENDING entry for this PR instead of modifying the existing #3668 entry.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the gtank/merlin import out of its blank-line-separated block into the grouped...
null
tendermint__tendermint__4471
tendermint/tendermint
4,471
defect
f934ca82fc0ace327ca34bc8593b21789c202109
4b93c961290ff425c5b1abc79fc229ee57084e77
lite2: cross-check first header and update tests
closes #4464 * [x] Referenced an issue explaining the need for the change * [ ] Updated all relevant documentation in docs * [ ] Updated all code comments where relevant * [x] Wrote tests * [ ] Updated CHANGELOG_PENDING.md
diff --git a/lite2/client.go b/lite2/client.go index 65040c133ff..d41ef2ff1ba 100644 --- a/lite2/client.go +++ b/lite2/client.go @@ -342,6 +342,11 @@ func (c *Client) initializeWithTrustOptions(options TrustOptions) error { return err } + err = c.compareNewHeaderWithWitnesses(h) + if err != nil { + return err +...
5
5
2
[{"id": "G0", "claim": "staticcheck SA4006: in TestClientRemovesWitnessIfItSendsUsIncorrectHeader the value assigned to h by the final VerifyHeaderAtHeight(3, ...) call is never used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Shouldn't the ...
null
tendermint__tendermint__4725
tendermint/tendermint
4,725
defect
af887adad95b08d526f44d879f4a2065ac8f2f1a
c178c932cbaf8160f2970cb2a2382bda80152506
evidence: remove pubkey from duplicate vote evidence
this pr brings over the removal of pubkey from duplicatevote evidence from proto-breakage ref #4580
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 2dd0c2e7947..2021836fa35 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -10,6 +10,8 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi - CLI/RPC/Config + - [evidence] \#4725 Remove `Pubkey` from Duplic...
2
1
0
[{"id": "G0", "claim": "The max evidence size test should be table-driven and cover all evidence types, not just DuplicateVoteEvidence.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "MaxEvidenceBytes (444) is sized to DuplicateVoteEvidence while the o...
null
tendermint__tendermint__5412
tendermint/tendermint
5,412
defect
7eb4e5c0b1de7aad987717d974ceec7012993f08
9c768e997af8fde8337af1b7ffc35708ebe6cabd
mempool: fix nil pointer dereference
previously, the second next could return nil, which would be the reason for panic on line 275: memTx := next.Value.(*mempoolTx) Closes #5408
diff --git a/mempool/reactor.go b/mempool/reactor.go index 13e4b16f20a..b4f76b9e8d8 100644 --- a/mempool/reactor.go +++ b/mempool/reactor.go @@ -288,10 +288,11 @@ func (memR *Reactor) txs(next *clist.CElement, peerID uint16, peerHeight int64) batch = append(batch, memTx.tx) } - if next.Next() == nil { + n :=...
2
2
1
[{"id": "G0", "claim": "Verify that the nil-pointer fix leaves no other races in the mempool reactor's txs broadcast path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a regression test for the nil-pointer-dereference race fixed in the mempo...
null
tendermint__tendermint__6507
tendermint/tendermint
6,507
defect
711a7181625377085055079aba3940c26587c029
fa4366e533d396ca7134508876f39540c72e4796
rpc: fix RPC client doesn't handle url's without ports
padding service name as port when URL doesn't have port info, so `net.dialer` will lookup the default port for the service. Closes #5407
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 7d699e63a20..5ca4f708e08 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -105,3 +105,4 @@ Friendly reminder: We have a [bug bounty program](https://hackerone.com/tendermi - [blockchain/v1] [\#5701](https://github.com/tendermint/tendermint/p...
2
2
0
[{"id": "G0", "claim": "Use the walrus operator (`:=`) for the padding variable instead of `var padding = u.Scheme`, for consistency with the surrounding code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding test coverage for othe...
null
tendermint__tendermint__7536
tendermint/tendermint
7,536
defect
6c669b70a469a9fcd99b4a44d537b52e53063592
f00e645a05fe35981e12da82eaf379536a49a990
light: return light client status on rpc /status
This PR changes the Status function of the light client so that it returns information about the light client itself (rather than the first node it is connected to) and Closes #6200. The information returned: - IP of primary - IPs of witnesses - Last trusted block height - Last trusted block hash - Number of peer...
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 099e6fcf023..63395455118 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -52,6 +52,8 @@ Special thanks to external contributors on this release: - [pubsub] \#7319 Performance improvements for the event query API (@creachadair) +- [light...
20
18
1
[{"id": "G0", "claim": "Asks whether LastTrustedHeight and LastTrustedBlockHeight would ever be two different heights, implying the status should not carry both.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Provider interface should expose the prov...
null
tendermint__tendermint__7594
tendermint/tendermint
7,594
defect
ec59b1a1ae42949367f77f4c0cf1e79c4682c5bd
50b152745eccfa2307e52bc94ffa68ec2a15c000
p2p: always advertise self, to enable mutual address discovery
Fixes #7593
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 1609e97553ea..8093d24e2915 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -25,6 +25,7 @@ Special thanks to external contributors on this release: - [p2p] \#7035 Remove legacy P2P routing implementation and associated configuration opti...
3
3
3
[{"id": "G0", "claim": "The external address should be passed to NewPeerManager via the PeerManagerOptions struct rather than as an additional argument.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added covering the new self-advertisi...
null
tendermint__tendermint__7612
tendermint/tendermint
7,612
defect
7ed57ef5f9d7026bb0359cf86e4f8c323d1e9d8e
35c6336b95184b3058b780bd8d6ff549827353f0
rpc: paginate mempool /unconfirmed_txs endpoint
This commit changes the behavior of the /unconfirmed_txs endpoint by replacing `limit` with a `page` and `perPage` parameter for pagination. The test case for unconfirmed_txs has been modified to properly test this change and the documentation for the API as well. fixes #7500 Closes #7500
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 1609e97553e..7a9c98700d2 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -53,6 +53,7 @@ Special thanks to external contributors on this release: - [pubsub] \#7319 Performance improvements for the event query API (@creachadair) - [node] \...
4
4
1
[{"id": "G0", "claim": "The CheckTx population in the UnconfirmedTxs test does not need to run in a separate goroutine and can be done sequentially.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since there are exactly 5 transactions, the test ...
null
tendermint__tendermint__7700
tendermint/tendermint
7,700
defect
441ecbaeec73ee31bae73bc77e2b7c6af2850059
bed085fdb73c76f30c4b7660f34698648a3f3e28
evidence: Refactored the evidence message to process Evidence instead of EvidenceList
"Closes #4729 " Right now, peers send and receive only one evidence. This evidence was put inside an EvidenceList. As the list always has one element, the code change removes the iteration through the list.
diff --git a/internal/evidence/reactor.go b/internal/evidence/reactor.go index 2a6ed4ff9bd..71fb4cf3987 100644 --- a/internal/evidence/reactor.go +++ b/internal/evidence/reactor.go @@ -35,7 +35,7 @@ const ( func GetChannelDescriptor() *p2p.ChannelDescriptor { return &p2p.ChannelDescriptor{ ID: Ev...
4
3
1
[{"id": "G0", "claim": "Drop the leftover commented-out old type from the added line, leaving `MessageType: new(tmproto.Evidence),`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After this change the EvidenceList type might also be removable (...
null
tendermint__tendermint__7765
tendermint/tendermint
7,765
defect
ce61abc038c794c3b22f210f2fa9e2a50697df92
c16ed93922cc957e3222c9a1885802d7a40ba6a0
types: remove nested evidence field from block
Closes #7697 Within a block evidence was stored inside EvidenceData. EvidenceData contained only an evidence list and the evidence hash and byte sized cached. This has been replaced with the EvidenceList. - EvidenceData deleted from types/block.go - Added auxiliary functions to EvidenceList in types/evidence ...
diff --git a/internal/consensus/byzantine_test.go b/internal/consensus/byzantine_test.go index 6fad4e16383..e907b466973 100644 --- a/internal/consensus/byzantine_test.go +++ b/internal/consensus/byzantine_test.go @@ -267,8 +267,8 @@ func TestByzantinePrevoteEquivocation(t *testing.T) { require.NotNil(t, msg) ...
5
4
0
[{"id": "G0", "claim": "The commented-out testCases2 block in TestEvidenceVectors should be fixed or deleted (or skipped) rather than left as dead code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's discarded call `_ = data.ByteSize(...
null
tendermint__tendermint__7781
tendermint/tendermint
7,781
defect
ce61abc038c794c3b22f210f2fa9e2a50697df92
5baaec41da7f6c099a75575f1a98f4d25abfc8a2
Don't allow duplicates for light client providers
Closes #7662 Changes include: - Allow empty witness list in `tendermint light` CLI - When creating a new light client (`tendermint/light/client.go:NewClient()`) return error if: - primary is included in the witness list - duplicates occur in the witness list - Fix unit tests
diff --git a/cmd/tendermint/commands/light.go b/cmd/tendermint/commands/light.go index 0ee77483535..8ea9860a566 100644 --- a/cmd/tendermint/commands/light.go +++ b/cmd/tendermint/commands/light.go @@ -83,9 +83,11 @@ will be verified before passing them back to the caller. Other than that, it will present the same inte...
6
2
1
[{"id": "G0", "claim": "The changes affect the statesync reactor, and it is not clear that waitForEnoughPeers() is guaranteed to wait for at least 2 distinct peers since the reactor's peers is a list, not a set.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
tendermint__tendermint__8205
tendermint/tendermint
8,205
defect
9d56520f7662ed0eb48811db158e1ca12328dd50
c45c9afb45665454daaab9e81e395cb6b3b377de
migration: remove stale seen commits
Closes #7755
diff --git a/cmd/tendermint/commands/key_migrate.go b/cmd/tendermint/commands/key_migrate.go index 928821586e4..5866be341b8 100644 --- a/cmd/tendermint/commands/key_migrate.go +++ b/cmd/tendermint/commands/key_migrate.go @@ -9,6 +9,7 @@ import ( cfg "github.com/tendermint/tendermint/config" "github.com/tendermint/t...
6
5
0
[{"id": "G0", "claim": "The new scmigrate package should have a package comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "makeKeyFromPrefix should take int64 values instead of interface{}, which would drop type declarations elsewhere and mak...
null
tendermint__tendermint__8593
tendermint/tendermint
8,593
defect
6ff77eece357f2b2cc17cb39eebbb0d1ef1a38d3
f8aa5a88ec4243fab5097fa811dd196f9b7d2793
rpc: fix encoding of block_results responses
Fixes #8583. The block results include validator updates in ABCI protobuf format, which does not encode "correctly" according to the expected Amino style RPC clients expect. - Write a regression test for this issue. - Add JSON marshaling overrides for ABCI ValidatorUpdate messages. This should be backported ...
diff --git a/abci/types/types.go b/abci/types/types.go index d13947d1a964..121e72159277 100644 --- a/abci/types/types.go +++ b/abci/types/types.go @@ -5,6 +5,9 @@ import ( "encoding/json" "github.com/gogo/protobuf/jsonpb" + "github.com/tendermint/tendermint/crypto" + "github.com/tendermint/tendermint/crypto/encod...
2
1
1
[{"id": "G0", "claim": "The regression test should compare with require.Equal instead of the manual json.Compact + cmp.Diff setup.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also test unmarshaling for completeness, not just mar...
null
tendermint__tendermint__8664
tendermint/tendermint
8,664
defect
7422f7b7a04967461776b2d879bcde8b24c5f0dd
a6b141cc1aa8aa3638eacc4fb217ac8af5eb3c82
abci: Move `app_hash` parameter from `Commit` to `FinalizeBlock`
Closes #8632 This PR doesn't address the spec as there is a parallel, ongoing one dealing with `FinalizeBlock`/ `Commit` all over the spec (see #7659). All UTs are passing, except `TestRootConfig`, which is failing also on the baseline e2e are passing: ```bash make -j2 docker generator runner tests && ./bu...
diff --git a/abci/cmd/abci-cli/abci-cli.go b/abci/cmd/abci-cli/abci-cli.go index b1b1b2c7ecd..f37de4e53ae 100644 --- a/abci/cmd/abci-cli/abci-cli.go +++ b/abci/cmd/abci-cli/abci-cli.go @@ -298,23 +298,23 @@ func cmdTest(cmd *cobra.Command, args []string) error { return compose( []func() error{ func() error { r...
9
5
2
[{"id": "G0", "claim": "The blank line added inside IsErr before the closing brace is unintentional and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `rCode` variable captured in the CheckTx callback appears unused and ma...
null
tendermint__tendermint__8745
tendermint/tendermint
8,745
defect
82907c84fa53501696b21931c9e97c7ee99d2f75
36c07a337550cfff659630000bda830e964f6b8a
refactor: improve string representation for a vote against the proposal
Closes #8713 **Description** (Copied from issue) The human-readable string representation of a vote against the proposal is a bit confusing. The vote against the proposal, often called a 'nil' vote is rendered as: ``` "Vote{8:8E7F2C81033C 1002/00/SIGNED_MSG_TYPE_PRECOMMIT(Precommit) 000000000000 6643608E523D ...
diff --git a/types/vote.go b/types/vote.go index f7006b8cde9..698440edf04 100644 --- a/types/vote.go +++ b/types/vote.go @@ -13,7 +13,8 @@ import ( ) const ( - nilVoteStr string = "nil-Vote" + absentVoteStr string = "absent" + nilVoteStr string = "nil" // The maximum supported number of bytes in a vote exten...
4
4
0
[{"id": "G0", "claim": "Vote.String() prints both vote.Type and typeString even though they say the same thing, so vote.Type should be dropped from the format string and its argument removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Carr...
null
tendermint__tendermint__9250
tendermint/tendermint
9,250
defect
aa303edaefeb8a0856d7494cca24e51f6f3e2393
8979e2d4184d9c0c0426798fb25588c2d833be93
update btcec to v2 and use the latest btcutil
<!-- Please add a reference to the issue that this PR addresses and indicate which files are most critical to review. If it fully addresses a particular issue, please include "Closes #XXX" (where "XXX" is the issue number). If this PR is non-trivial/large/complex, please ensure that you have either created an ...
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index a2ae47a09f1a..3843d29a81f9 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -30,6 +30,7 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi ### FEATURES ### IMPROVEMENTS +- [scep256k1] \#9250 Update to use ...
3
1
0
[{"id": "G0", "claim": "Asks whether btcec v2 is backwards compatible, i.e. whether v2 secp256k1 will still verify old signatures.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry should read '[crypto]' instead of the misspelled '[sc...
null
tendermint__tendermint__9335
tendermint/tendermint
9,335
defect
2313f358003d0c4d9d0e7705b4632d819dfb0d92
b475bfd069cf164d3b53f112f68f73a947e1923f
abci: Port `EventAttribute` field type change to `main`
Closes #6403. This PR is a port of #6408 to `main` for release in v0.37. --- #### PR checklist - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant documentation (`docs/`) and code comments, or no documentation upd...
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 19248159e51..adf68a8008a 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -20,6 +20,7 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi - Rename `AppVersion` to `App` so as to not stutter. - [abci] \#...
1
1
0
[{"id": "G0", "claim": "On context cancellation the match() helper in state/txindex/kv/kv.go should exit the function immediately rather than only breaking out of the iteration loop (EQ_LOOP/EXISTS_LOOP/CONTAINS_LOOP) and still executing the trailing REMOVE_LOOP, per Sergio's question about the desired semantics; he ex...
null
tendermint__tendermint__9473
tendermint/tendermint
9,473
defect
fbcfecbc3a801a6216c4fffd65ff39c14cce713f
6032ed4648c886ed8a58dd74b067a5d940d4e626
indexer: move deduplication functionality purely to the kvindexer
Closes: https://github.com/tendermint/tendermint/issues/9460 The deduplication logic which prevents older failed transactions from overwriting newer successful transactions called the `Get` method on the `TxIndexer`. For postgresql, this wasn't implemented and would always return an error. Errors were only logged whic...
diff --git a/state/txindex/indexer_service.go b/state/txindex/indexer_service.go index 828a63c8bbc..1a9a9b12a7e 100644 --- a/state/txindex/indexer_service.go +++ b/state/txindex/indexer_service.go @@ -3,7 +3,6 @@ package txindex import ( "context" - abci "github.com/tendermint/tendermint/abci/types" "github.com/...
3
2
1
[{"id": "G0", "claim": "Add a test that specifically covers the problem outlined in issue #9460.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typos in the doc comment added above TxIndex.Index: 'overwrite transaction that failed' should read '...
null
tendermint__tendermint__9497
tendermint/tendermint
9,497
defect
069e402aa1be816f35b73c0c34bac29eb893f0f9
7a40bd5b891203aed369a3ffc11f66f15e6a9d1e
backport: implement the ADR 075 /events method (#7965)
For the full description, see https://github.com/tendermint/tendermint/pull/7965 <!-- Please add a reference to the issue that this PR addresses and indicate which files are most critical to review. If it fully addresses a particular issue, please include "Closes #XXX" (where "XXX" is the issue number). If thi...
diff --git a/libs/pubsub/query/query.go b/libs/pubsub/query/query.go index 715b749f487..371ec86efbb 100644 --- a/libs/pubsub/query/query.go +++ b/libs/pubsub/query/query.go @@ -95,6 +95,13 @@ func (q *Query) Matches(events map[string][]string) (bool, error) { return q.matchesEvents(ExpandEvents(events)), nil } +fu...
2
1
0
[{"id": "G0", "claim": "Consider backporting #6755 and/or #6700 to this feature branch, since they define EventDataBlockSyncStatus and EventDataStateSyncStatus which are not defined in this branch.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a T...
null
tendermint__tendermint__9500
tendermint/tendermint
9,500
defect
f76f6535b403bb8b559323478d1ba260ca1c4430
8432b81f15f7099144101e1397f05d726482ad53
security/p2p: prevent peers who errored being added to the peer_set
This work is a fix for a bug in the P2P layer. A node can be attacked via the p2p layer by saturating its incoming connection slots and not allowing the node to accept new conditions. This happens when an attacker continuously submits requests to connect with an erroneous message causing the incoming request to erro...
diff --git a/p2p/errors.go b/p2p/errors.go index 3650a7a0a8e..4fc915292fb 100644 --- a/p2p/errors.go +++ b/p2p/errors.go @@ -145,6 +145,13 @@ func (e ErrTransportClosed) Error() string { return "transport has been closed" } +// ErrPeerRemoval is raised when attempting to remove a peer results in an error. +type Er...
4
3
1
[{"id": "G0", "claim": "The comment in stopAndRemovePeer should be extended to tell the reader that once the flag is set the node will not add that peer again.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'error on peer removal' log should b...
null
tendermint__tendermint__9505
tendermint/tendermint
9,505
defect
a02cc30e41987be8930a859e200f81e873ce41c2
554a82565f3d10c9a2f53c4709eeccf853cd1c5e
Use evidence period when pruning
Resolves issue #9391 Implements logic that uses the evidence period to indicate whether or not to prune unnecessary data such as abci commits, consensus params, validator sets. This way we can successfully check we have the required data to prove malicious behaviour.
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index a98921632d8..9287b64fc95 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -90,6 +90,7 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi - [crypto] \#6120 Implement batch verification interface for ed25519 an...
7
4
0
[{"id": "G0", "claim": "Once the evidence point is discovered the loop could just break and flush the existing batch, and the block-hash and seen-commit deletes should not execute at all, though the reviewer allows context may be missing.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introdu...
null
tendermint__tendermint__9592
tendermint/tendermint
9,592
defect
b42c439776811a6fcab8e22fb97fb44cee5701b3
38d1b2f873b4fc938320abb07fd5a3e62e0560ff
e2e: configurable IP addresses for e2e testnet generator
This change updates the e2e `Setup` logic and all other parts of the runner that use its code to accept list of IP addresses from already existing infrastructure to be used when generating the testnet configuration. The change adds two new flags 1. `--infrastructure-type`: The type of the backing infrastructure,...
diff --git a/test/e2e/pkg/infra/docker/docker.go b/test/e2e/pkg/infra/docker/docker.go new file mode 100644 index 00000000000..4d52a3d37d5 --- /dev/null +++ b/test/e2e/pkg/infra/docker/docker.go @@ -0,0 +1,100 @@ +package docker + +import ( + "bytes" + "os" + "path/filepath" + "strconv" + "text/template" + + e2e "githu...
8
6
0
[{"id": "G0", "claim": "Code scanning flags the misbehaviors range statement in dockerComposeBytes, saying that in a range over a map the value should be _ unless the map is being copied.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Code sca...
null
tendermint__tendermint__9682
tendermint/tendermint
9,682
defect
c6a0dc85595a1928acfdbe24d3a8da3b1bd5b012
4760c308e5d74f4a3eea73f4a4042d30c9d520d8
metrics: add separate statesync and blocksync metrics
Statesync and blocksync metrics were previously housed within the consensus metrics. There were some comments that this was messy. Metrics should reside in the component that controls them. This PR separates them out into their respective packages.
diff --git a/blocksync/metrics.gen.go b/blocksync/metrics.gen.go new file mode 100644 index 00000000000..1d093fb314f --- /dev/null +++ b/blocksync/metrics.gen.go @@ -0,0 +1,30 @@ +// Code generated by metricsgen. DO NOT EDIT. + +package blocksync + +import ( + "github.com/go-kit/kit/metrics/discard" + prometheus "githu...
3
2
2
[{"id": "G0", "claim": "Unless more metrics are anticipated in the blocksync_ and statesync_ groups for v0.38, the metric labels should stay the same (block_syncing/state_syncing) instead of being renamed to blocksync_syncing/statesync_syncing, to keep upgrade friction at a minimum.", "category": "design", "verdict": "...
null
tendermint__tendermint__9720
tendermint/tendermint
9,720
defect
2b4436d1b4ed3c721587d9e2ce965dd38b661ca2
df2e9c9328b4e6111a1806df63a1eee943fbe52b
Remove useless whitespace in Websocket output
<!-- Please add a reference to the issue that this PR addresses and indicate which files are most critical to review. If it fully addresses a particular issue, please include "Closes #XXX" (where "XXX" is the issue number). If this PR is non-trivial/large/complex, please ensure that you have either created an ...
diff --git a/rpc/jsonrpc/server/ws_handler.go b/rpc/jsonrpc/server/ws_handler.go index f8a89714ea9..b2f1382c57b 100644 --- a/rpc/jsonrpc/server/ws_handler.go +++ b/rpc/jsonrpc/server/ws_handler.go @@ -431,7 +431,10 @@ func (wsc *wsConnection) writeRoutine() { return } case msg := <-wsc.writeChan: - jsonBy...
2
1
0
[{"id": "G0", "claim": "The pull request should also remove the prettified JSON RPC responses from the two remaining HTTP call sites in rpc/jsonrpc/server/http_server.go (around lines 107 and 143).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Th...
null
tendermint__tendermint__9759
tendermint/tendermint
9,759
defect
8e0f196b4b1b68c440defaa9f3dd3852913c1399
ed5fc88e3009b0f3739bfc8afc9b1045c64b8ae0
state/kvindexer: associate event attributes with events
Closes #9712 This PR changes the way keys are generated for block events, and how they are stored in the database. Namely, in previous versions, for each event attribute, there was a different entry in the kvstore. Users can query the events and get the corresponding height where an attribute occurred, but cann...
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index c62099fdbef..8eeaefad9f1 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -18,5 +18,7 @@ ### IMPROVEMENTS +- `[state/kvindexer]` [\#9759] Added `match.event` keyword to support condition evalution based on the event attributes belong to....
9
8
2
[{"id": "G0", "claim": "Queries carrying the new match.events keyword fail on old Tendermint versions (they return no results), so the PR should offer a backwards-compatible match_events RPC parameter outside the query string (default false) plus a unit test for it.", "category": "design", "verdict": "supported", "prio...
null
tendermint__tendermint__9823
tendermint/tendermint
9,823
defect
c3302b0dc985f4267fc511c98d84f99daade0bdd
d113cc42a9a2bc5cd538e741752977c9eabd3fc7
Rejects empty transactions in the example kvstore
In the kvstore, empty transactions accepted in the mempool and in prepareProposal, but not in processProposal. Hence, if an empty transaction is submitted to the system, it might keep being put into proposal which will always be rejected, effectively halting the chain. This PR prevents empty transactions from being ...
diff --git a/abci/example/code/code.go b/abci/example/code/code.go index 6d011ed9d60..660bac9875b 100644 --- a/abci/example/code/code.go +++ b/abci/example/code/code.go @@ -8,4 +8,5 @@ const ( CodeTypeUnauthorized uint32 = 3 CodeTypeUnknownError uint32 = 4 CodeTypeExecuted uint32 = 5 + CodeTypeRejected ...
2
2
0
[{"id": "G0", "claim": "The test should not explicitly set `Type: types.CheckTxType_New` since it is the default, though keeping it for readability is up to the author.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertion's failure messa...
null
tendermint__tendermint__9848
tendermint/tendermint
9,848
defect
67d3ce03a4b0d7694c29ea8c1a68de4d3d5e5d75
4df2cb038b5d7f1d3ecf7d9981e1356c8196de32
abci++: Vote extension cleanup
Closes #9846 This is a PR cherry-picking one single PR: #8402 The contents of this patch were necessary in preparation for implementing the solution for vote extension propagation (which will be in an upcoming PR) N.B: The changelog will be updated once branch `feature/abci++vef` is merged back into `main` ...
diff --git a/consensus/common_test.go b/consensus/common_test.go index d5bc92c62dd..588f8ecd479 100644 --- a/consensus/common_test.go +++ b/consensus/common_test.go @@ -132,7 +132,12 @@ func (vs *validatorStub) signVote( // Sign vote for type/hash/header func signVote(vs *validatorStub, voteType tmproto.SignedMsgTy...
2
1
0
[{"id": "G0", "claim": "The same test group keeps failing in CI, with apparently different tests failing on each run, and the cause is unclear.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Once vote extensions are enabled, the vote extension must al...
null
tendermint__tendermint__9865
tendermint/tendermint
9,865
defect
03bdcad31e9ef8ced3683d602116f2cf30f032d8
408ebdc2644295f569b265d092ca4ecd22c57a2a
Vote extensions: add proto fields for enabling extensions
Closes #9864 The first commit is a cherry-pick of #8587. Subsequent commits are fixing the build and the unit tests This PR is best reviewed with a diff-of-diffs with the original PR. N.B: The changelog will be updated once branch `feature/abci++vef` is merged back into `main` --- #### PR checklist -...
diff --git a/proto/tendermint/blocksync/types.proto b/proto/tendermint/blocksync/types.proto index 00f6db3621c..8ebe34574d1 100644 --- a/proto/tendermint/blocksync/types.proto +++ b/proto/tendermint/blocksync/types.proto @@ -18,7 +18,7 @@ message NoBlockResponse { // BlockResponse returns block to the requested mes...
3
1
0
[{"id": "G0", "claim": "In the generated ABCIParams.Equal, that1 could still be nil after the type-assertion branches, so the nil check at line 677 may be redundant or misleading.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The generated Equal body...
null
tendermint__tendermint__9888
tendermint/tendermint
9,888
defect
9eb3fb050b3f739b262e74ef8e93bab3235ed3eb
bc0ed34091cfd10054ecda1253175f2a98d012df
Divergences in comparison with #9620. Part 1: easy/obvious
Contributes to #9887 These are the obvious divergences (including bugs) between #9620 and `feature/abci++vef` For more info, check #9887 --- #### PR checklist - [x] Tests written/updated, or no tests needed - [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed - [x] Updated relevant docume...
diff --git a/blocksync/pool.go b/blocksync/pool.go index 147ce0603e0..9a5e7cea89e 100644 --- a/blocksync/pool.go +++ b/blocksync/pool.go @@ -566,9 +566,7 @@ func (bpr *bpRequester) setBlock(block *types.Block, extCommit *types.ExtendedCo return false } bpr.block = block - if extCommit != nil { - bpr.extCommit =...
2
1
0
[{"id": "G0", "claim": "The removed VoteExtension and VoteExtensionToSign left-overs in the .proto may have caused a breakage in the block format.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added signVote comment should read 'Extension signa...
null
tendermint__tendermint__9926
tendermint/tendermint
9,926
defect
12f7e316105cffa10f3083fd3fb3540eac94f84e
f32917a0134a42bedc5f434b9bf66e3a9db79a58
Divergences in comparison with #9620. Part 3: Fix problems found in blocksync reactor
Contributes to #9887 This PR fixes and tests the problems found in the blocksync reactor when comparing the cherry-picked branch with #9620 (diff-of-diffs). The newly added UT will panic if the fix in the blocksync reactor is removed. --- #### PR checklist - [x] Tests written/updated, or no tests needed ...
diff --git a/blocksync/reactor.go b/blocksync/reactor.go index 8574e464fdd..bee9a79da13 100644 --- a/blocksync/reactor.go +++ b/blocksync/reactor.go @@ -59,6 +59,8 @@ type Reactor struct { requestsCh <-chan BlockRequest errorsCh <-chan peerError + switchToConsensusMs int + metrics *Metrics } @@ -279,7 +281...
4
2
0
[{"id": "G0", "claim": "The VoteExtensions switch-to-consensus condition and its disjunctive comment are hard to follow and would be clearer if a boolean variable captured the need for extensions (suggested as a needsExtension flag).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i...
null
tendermint__tendermint__9927
tendermint/tendermint
9,927
defect
12f7e316105cffa10f3083fd3fb3540eac94f84e
d1a7287be6b0663e8da1a3c77e52be678fcb8d81
Divergences in comparison with #9620. Part 4: Other changes spotted
Contributes to #9887 This PR contains other minor differences spotted between #9620 and the cherry-picked vote extension branch. After this PR, all differences between these two branches (#9620 and the cherry-picked) will now be integrated in branch `feature/abci++vef` These are the differences included in this...
diff --git a/light/trust_options.go b/light/trust_options.go index cbf3b1cd8e9..f9b8d400fef 100644 --- a/light/trust_options.go +++ b/light/trust_options.go @@ -41,7 +41,7 @@ func (opts TrustOptions) ValidateBasic() error { return errors.New("negative or zero period") } if opts.Height <= 0 { - return errors.New...
4
4
1
[{"id": "G0", "claim": "Reviewer asks what the impact is of votes having height zero in previous versions (v0.37 and v0.34), which do not reject zero-height votes the way this PR's new Height <= 0 check does.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim":...
null
tendermint__tendermint__9933
tendermint/tendermint
9,933
defect
b1fbe26ffadae6e4010a71bd75767c6680d1bf71
0f011b7c7ae3dcdd073e78eabf29c30c1ac52b17
e2e: Add multi-version support to generator
Closes #9928 This only adds a CI job for now that we can trigger manually via GitHub Actions. We can automate this once we've proven it works in CI. It seems to work locally. It does, however, rely on the `tendermint/e2e-node` Docker images for the relevant versions you want to run being available locally or via...
diff --git a/.github/workflows/e2e-manual-multiversion.yml b/.github/workflows/e2e-manual-multiversion.yml new file mode 100644 index 00000000000..d9a8c25298d --- /dev/null +++ b/.github/workflows/e2e-manual-multiversion.yml @@ -0,0 +1,38 @@ +# Manually run the nightly E2E tests for a particular branch, but test with +...
6
4
1
[{"id": "G0", "claim": "The new multi-version workflow's 60-minute timeout-minutes value may be more than necessary.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The README's description of the \"HEAD\" keyword should clarify it refers to the current com...
null