Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(baseapp): align block header when query with latest height #21003

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mmsqe
Copy link
Contributor

@mmsqe mmsqe commented Jul 21, 2024

  • lastBlockHeight bump when commit before header change in checkState
  • use finalize state block header when CreateQueryContext with latest height and checkState block header height is fall behind

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • New Features

    • Added a new entry in the CHANGELOG.md highlighting the alignment fix for the block header when querying with the latest height.
  • Bug Fixes

    • Improved the logic for creating query contexts to ensure only valid block headers are used, enhancing the reliability of state handling.
  • Tests

    • Enhanced testing framework with a new mock ABCI listener, improving the simulation of behavior in tests.
    • Updated test cases to reflect the redesigned logic for block height validation.

use finalize state block header when CreateQueryContext
with latest height and checkState block header height is fall behind
@mmsqe mmsqe requested a review from a team as a code owner July 21, 2024 05:43
Copy link
Contributor

coderabbitai bot commented Jul 21, 2024

Walkthrough

Walkthrough

This update enhances the Cosmos SDK's BaseApp by introducing a new method for creating query contexts, which includes improved block header validation. This strengthens error handling and state management. Additionally, a mock ABCI listener is implemented to facilitate more effective testing of the BaseApp, thereby improving functionality and testing clarity for better performance and reliability in blockchain interactions.

Changes

Files Change Summary
CHANGELOG.md Added entry for a fix on block header alignment when querying with the latest height (PR #21003).
baseapp/abci.go Replaced CreateQueryContext with CreateQueryContextWithCheckHeader, adding header validation logic.
baseapp/baseapp_test.go Introduced mockABCIListener for flexible testing; added tests for CreateQueryContextWithCheckHeader and refined existing tests for accuracy.

Sequence Diagram(s)

sequenceDiagram
    participant App as BaseApp
    participant State as State Contexts
    participant Query as Query System

    App->>State: Request block header
    State-->>App: Provide block header options
    App->>State: Validate block headers
    alt Valid header found
        App->>Query: Create query context
    else No valid header
        App-->>Query: Return error
    end
Loading

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 748352e and 185e49d.

Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • baseapp/abci.go (1 hunks)
  • baseapp/baseapp_test.go (3 hunks)
Files skipped from review due to trivial changes (1)
  • CHANGELOG.md
Additional context used
Path-based instructions (2)
baseapp/baseapp_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

baseapp/abci.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (5)
baseapp/baseapp_test.go (4)

691-693: LGTM!

The mockABCIListener struct is correctly implemented for testing purposes.


695-697: LGTM!

The ListenFinalizeBlock method is correctly implemented to return nil.


699-701: LGTM!

The ListenCommit method correctly uses the provided ListenCommitFn function to handle commit responses.


744-786: LGTM!

The test function TestABCI_CreateQueryContext_Before_Set_CheckState is correctly implemented to validate the behavior of the CreateQueryContext method.

baseapp/abci.go (1)

1248-1269: LGTM!

The updated logic in the CreateQueryContext method enhances the robustness of the context creation by ensuring that it only proceeds with a valid block header.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 185e49d and f2d145f.

Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • baseapp/abci.go (3 hunks)
  • baseapp/baseapp_test.go (3 hunks)
Files skipped from review as they are similar to previous changes (2)
  • CHANGELOG.md
  • baseapp/baseapp_test.go
Additional context used
Path-based instructions (1)
baseapp/abci.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (10)
baseapp/abci.go (10)

1203-1204: Refactor: Delegate to CreateQueryContextWithCheckHeader.

The CreateQueryContext function now delegates to CreateQueryContextWithCheckHeader with an additional checkHeader argument set to true. This refactor is correct and aligns with the new logic introduced.


1206-1208: Function Documentation: Ensure Clarity.

The function documentation clearly describes the purpose and parameters of CreateQueryContextWithCheckHeader. This is a good practice.


Line range hint 1209-1213:
Error Handling: Check for Negative Height.

The function correctly checks for a negative height and returns an appropriate error. This is a good practice for input validation.


Line range hint 1214-1216:
Use Custom Query Multi-Store if Provided.

The function uses a custom query multi-store if provided, otherwise defaults to the commit multi-store. This adds flexibility to the function.


Line range hint 1217-1224:
Error Handling: Validate Height Against Latest Version.

The function validates the provided height against the latest version of the multi-store, ensuring that queries are not made for future heights. This is a good practice.


Line range hint 1225-1231:
Error Handling: Validate Proof for Heights <= 1.

The function correctly handles the case where proof is requested for heights less than or equal to 1, which is invalid.


Line range hint 1232-1240:
Cache Multi-Store with Version: Error Handling.

The function attempts to cache the multi-store with the specified version and handles errors appropriately. This ensures that the state at the specified height is correctly loaded.


1254-1267: Header Validation: Loop Through States.

The function loops through the available states (checkState and finalizeBlockState) to find a valid block header. This ensures that the correct header is used for the query context.


1269-1275: Error Handling: No Valid Header Found.

The function returns an error if no valid header is found in the available states. This ensures that the query context is only created with a valid header.


1276-1284: Create Query Context: Set Context Parameters.

The function sets various parameters in the context, including gas meter, header info, and block height. This ensures that the context is correctly configured for the query.

@facundomedica
Copy link
Member

Can you expand a bit more on why this is needed and if there were issues caused by this? Thank you!

@mmsqe
Copy link
Contributor Author

mmsqe commented Jul 23, 2024

Can you expand a bit more on why this is needed and if there were issues caused by this? Thank you!

I was trying to use block timestamp as random seed for smart contract. Currently a query result of new block height may be returned with the previous block timestamp if the block is committed but state not being set.@facundomedica you can see the case in TestABCI_CreateQueryContext_Before_Set_CheckState.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
baseapp/abci.go (1)

1203-1204: Update all instances of CreateQueryContext to use CreateQueryContextWithCheckHeader

The following instances of CreateQueryContext need to be updated to use the new CreateQueryContextWithCheckHeader function:

  • baseapp/baseapp_test.go (multiple occurrences)
  • baseapp/abci.go (multiple occurrences)
  • baseapp/grpcserver.go

Please ensure these updates are made to maintain consistency and avoid potential errors.

Analysis chain

LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to CreateQueryContext are correctly updated to use the new CreateQueryContextWithCheckHeader function.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `CreateQueryContext` match the new signature.

# Test: Search for the function usage. Expect: Only occurrences of the new signature.
rg --type go -A 5 $'CreateQueryContext'

Length of output: 4019

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f2d145f and 2e7cac3.

Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • baseapp/abci.go (5 hunks)
Files skipped from review due to trivial changes (1)
  • CHANGELOG.md
Additional context used
Path-based instructions (1)
baseapp/abci.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (1)
baseapp/abci.go (1)

Line range hint 1208-1282:
LGTM! Robust error handling and context management.

The code changes are approved.

However, ensure that all function calls to CreateQueryContextWithCheckHeader are correctly updated and tested in the codebase.

Verification successful

Function calls to CreateQueryContextWithCheckHeader have been correctly updated.

The function calls in baseapp/abci.go and baseapp/baseapp_test.go match the new signature, ensuring consistency across the codebase.

  • baseapp/abci.go
  • baseapp/baseapp_test.go
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `CreateQueryContextWithCheckHeader` match the new signature.

# Test: Search for the function usage. Expect: Only occurrences of the new signature.
rg --type go -A 5 $'CreateQueryContextWithCheckHeader'

Length of output: 1744

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 2e7cac3 and 3ab599d.

Files selected for processing (1)
  • baseapp/baseapp_test.go (3 hunks)
Additional context used
Path-based instructions (1)
baseapp/baseapp_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

Additional comments not posted (6)
baseapp/baseapp_test.go (6)

691-693: LGTM! The mock listener is well-defined.

The mockABCIListener struct and its ListenCommitFn function pointer are correctly implemented for mocking purposes.


695-697: LGTM! The ListenFinalizeBlock method is correctly implemented.

The method correctly returns nil, as expected for a mock implementation.


699-701: LGTM! The ListenCommit method is correctly implemented.

The method correctly delegates to the ListenCommitFn function pointer.


Line range hint 709-742:
LGTM! The test cases are comprehensive and well-structured.

The function TestABCI_CreateQueryContext covers various scenarios for creating query contexts, ensuring robust error handling.


744-773: LGTM! The test cases for header checks are well-structured.

The function TestABCI_CreateQueryContextWithCheckHeader covers scenarios with and without header checks, ensuring correct behavior.


775-817: LGTM! The test case ensures correct integration and query context creation.

The function TestABCI_CreateQueryContext_Before_Set_CheckState ensures that the query context is created successfully and the block height matches expectations after the commit phase.

@facundomedica
Copy link
Member

Hey I tried TestABCI_CreateQueryContext_Before_Set_CheckState in the current main, but it doesn't fail. I want to replicate first in order to try moving stuff around to try to simplify it.

baseapp/abci.go Outdated
Comment on lines 1270 to 1280
defer func() {
if err == nil {
rms, ok := app.cms.(*rootmulti.Store)
if ok {
cInfo, err := rms.GetCommitInfo(height)
if cInfo != nil && err == nil {
ctx = ctx.WithHeaderInfo(coreheader.Info{Height: height, Time: cInfo.Timestamp})
}
}
}
}()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this defer necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just replaced it with isLatest to avoid confusion

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3ab599d and 246e258.

Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • baseapp/abci.go (4 hunks)
  • baseapp/baseapp_test.go (3 hunks)
Files skipped from review as they are similar to previous changes (2)
  • CHANGELOG.md
  • baseapp/baseapp_test.go
Additional context used
Path-based instructions (1)
baseapp/abci.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (8)
baseapp/abci.go (8)

Line range hint 142-146:
Ensure the correctness of the new function usage.

The Info function now uses CreateQueryContextWithCheckHeader. Verify that this change aligns with the intended logic and that the checkHeader parameter is correctly set to false.


1203-1204: Delegation to new function looks good.

The CreateQueryContext function correctly delegates to CreateQueryContextWithCheckHeader with the checkHeader parameter set to true.


1208-1209: Check for negative height.

The function starts by checking for negative height values, which is a good practice to ensure valid input.


1240-1244: Iterate over state contexts to determine the appropriate header.

The loop iterates over various state contexts to determine the appropriate header. This enhances the robustness of the context creation process.


1258-1264: Handle missing header scenario.

The function handles the scenario where the header is not found in any state context, returning an explicit error. This improves error handling.


1270-1280: Deferred function for setting header info.

The deferred function ensures that the header info is set correctly after the main logic executes, which is a good practice for maintaining context integrity.


1292-1299: Create new context with appropriate settings.

The function creates a new context with the appropriate settings, including gas meter and header info. This ensures that the context is correctly initialized for queries.


Line range hint 1197-1199:
Verify the function usage.

The handleQueryGRPC function calls CreateQueryContext, which now delegates to CreateQueryContextWithCheckHeader. Ensure that this change aligns with the intended logic.

@mmsqe
Copy link
Contributor Author

mmsqe commented Aug 1, 2024

Hey I tried TestABCI_CreateQueryContext_Before_Set_CheckState in the current main, but it doesn't fail. I want to replicate first in order to try moving stuff around to try to simplify it.

Might need some check in main to reproduce the fail test

diff --git a/baseapp/abci.go b/baseapp/abci.go
index 513d8667fc..2278013f02 100644
--- a/baseapp/abci.go
+++ b/baseapp/abci.go
@@ -1245,6 +1245,15 @@ func (app *BaseApp) CreateQueryContext(height int64, prove bool) (sdk.Context, e
 			)
 	}
 
+	header := app.checkState.Context().BlockHeader()
+	if height == lastBlockHeight && header.Height != lastBlockHeight {
+		return sdk.Context{},
+			errorsmod.Wrapf(
+				sdkerrors.ErrInvalidHeight,
+				"header height in check state context is not latest height (%d)", lastBlockHeight,
+			)
+	}
+
 	// branch the commit multi-store for safety
 	ctx := sdk.NewContext(cacheMS, true, app.logger).
 		WithMinGasPrices(app.minGasPrices).
@@ -1253,7 +1262,7 @@ func (app *BaseApp) CreateQueryContext(height int64, prove bool) (sdk.Context, e
 			ChainID: app.chainID,
 			Height:  height,
 		}).
-		WithBlockHeader(app.checkState.Context().BlockHeader()).
+		WithBlockHeader(header).
 		WithBlockHeight(height)
 
 	if height != lastBlockHeight {

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 246e258 and d568439.

Files selected for processing (1)
  • baseapp/baseapp_test.go (4 hunks)
Files skipped from review as they are similar to previous changes (1)
  • baseapp/baseapp_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
baseapp/abci.go (1)

1203-1204: Update function calls to match the new signature

The following function calls to CreateQueryContext need to be updated to match the new signature or replaced by CreateQueryContextWithCheckHeader:

  • baseapp/abci.go
    • Line 1203: ctx, err := app.CreateQueryContext(req.Height, req.Prove)
  • baseapp/grpcserver.go
    • Line 15: sdkCtx, err := app.CreateQueryContext(height, false)
  • baseapp/baseapp_test.go
    • Line 220: ctx, err := app.CreateQueryContext(height, tc.prove)
    • Line 303: qCtx, qErr := app.CreateQueryContext(0, true)
    • Line 350: ctx, err := bapp.CreateQueryContext(1, false)

Ensure these calls are updated to use CreateQueryContextWithCheckHeader or the correct parameters are passed to CreateQueryContext.

Analysis chain

LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to CreateQueryContext match the new signature.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `CreateQueryContext` match the new signature.

# Test: Search for the function usage. Expect: Only occurrences of the new signature.
rg --type go -A 5 $'CreateQueryContext'

Length of output: 4006


Script:

#!/bin/bash
# Description: Verify all function calls to `CreateQueryContext` match the new signature or need to be updated.

# Check the lines where `CreateQueryContext` is used in the codebase
rg --type go -C 3 'CreateQueryContext' baseapp/baseapp_test.go baseapp/grpcserver.go baseapp/abci.go

Length of output: 4696

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d568439 and 5e6c8ea.

Files selected for processing (1)
  • baseapp/abci.go (5 hunks)
Additional context used
Path-based instructions (1)
baseapp/abci.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

Additional comments not posted (2)
baseapp/abci.go (2)

Line range hint 1206-1295:
LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to CreateQueryContextWithCheckHeader match the new signature.

Verification successful

Function usage verification successful.

All instances of CreateQueryContextWithCheckHeader match the new function signature with three parameters: height, prove, and checkHeader.

  • baseapp/baseapp_test.go
  • baseapp/abci.go
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `CreateQueryContextWithCheckHeader` match the new signature.

# Test: Search for the function usage. Expect: Only occurrences of the new signature.
rg --type go -A 5 $'CreateQueryContextWithCheckHeader'

Length of output: 1739


142-144: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to CreateQueryContextWithCheckHeader match the new signature.

Verification successful

Verified: The function CreateQueryContextWithCheckHeader is used consistently with the new signature.

The code changes are correctly implemented, and all function calls match the new signature.

  • baseapp/abci.go
  • baseapp/baseapp_test.go
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `CreateQueryContextWithCheckHeader` match the new signature.

# Test: Search for the function usage. Expect: Only occurrences of the new signature.
rg --type go -A 5 $'CreateQueryContextWithCheckHeader'

Length of output: 1739

Copy link
Contributor

github-actions bot commented Sep 9, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Sep 9, 2024
@julienrbrt
Copy link
Member

Could you create an issue about this explaining the problem? Then we'll assign people to review this.

@mmsqe
Copy link
Contributor Author

mmsqe commented Sep 9, 2024

Could you create an issue about this explaining the problem? Then we'll assign people to review this.

Just add #21615, see if it's ok.

@julienrbrt julienrbrt removed the Stale label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants