Skip to content

Implement optimistic processing#222

Merged
codchen merged 14 commits into2.0.0betafrom
tony-chen-optimistic-processing
Sep 6, 2022
Merged

Implement optimistic processing#222
codchen merged 14 commits into2.0.0betafrom
tony-chen-optimistic-processing

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Aug 24, 2022

Implementation of RFC-000

@codchen codchen requested review from LCyson and philipsu522 August 24, 2022 17:37
@codchen codchen force-pushed the tony-chen-optimistic-processing branch from 2a063a1 to aaaa8be Compare August 26, 2022 04:34
}

func (app *App) FinalizeBlocker(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*abci.ResponseFinalizeBlock, error) {
startTime := time.Now()
Copy link
Contributor

Choose a reason for hiding this comment

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

i might need a bit more context, but when is this called? Is this called in a separate thread?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Both ProcessProposal and FinalizeBlock are called synchronously by tendermint. ProcessProposal spawns an async goroutine which FinalizeBlock may wait on

@codchen codchen merged commit 7031e02 into 2.0.0beta Sep 6, 2022
masih pushed a commit that referenced this pull request Sep 29, 2025
## Describe your changes and provide context
Complaints from validators that the tracing log is really noisy 
## Testing performed to validate your change

No tracing by default

![image](https://user-images.githubusercontent.com/18161326/232845301-7b02e44d-21aa-4fee-af67-df5fa1328fe2.png)

tracing error if enabeld

![image](https://user-images.githubusercontent.com/18161326/232845338-328448da-4592-4425-b725-0f970b361c60.png)
masih pushed a commit that referenced this pull request Sep 30, 2025
## Describe your changes and provide context
Complaints from validators that the tracing log is really noisy 
## Testing performed to validate your change

No tracing by default

![image](https://user-images.githubusercontent.com/18161326/232845301-7b02e44d-21aa-4fee-af67-df5fa1328fe2.png)

tracing error if enabeld

![image](https://user-images.githubusercontent.com/18161326/232845338-328448da-4592-4425-b725-0f970b361c60.png)
masih pushed a commit that referenced this pull request Oct 1, 2025
* Add metrics for block processing latency

* Update execution.go
@masih masih deleted the tony-chen-optimistic-processing branch October 31, 2025 15:53
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.

3 participants