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

feat: concurrent recheckTx (#52) #155

Merged
merged 3 commits into from
Apr 29, 2021

Conversation

jinsan-line
Copy link
Contributor

Epic: line/lbm#1264

Cherry-pick: #52

Description

To optimize performance, we need to increase concurrency. After implementing concurrent checkTx(#49), I'd like to implement concurrent recheckTx.


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

* chore: simply implement abci.`CheckTxSync()` and abci.`CheckTxAsync()`

* chore: move `accountLock` from `anteTx()` to `checkTxWithLock()`

* feat: impl `abci.CheckTxAsync()` with reactor

# Conflicts:
#	baseapp/baseapp.go

* feat: impl `accountwgs`

* feat: impl `accountwgs_test`

* chore: revise code after cherry-pick

* chore: bump-up tendermint & iavl

* chore: rename func from `startCheckTxAsyncReactor()` to `checkTxAsyncReactor()`

* fix: imports for lint

* fix: imports for lint

* chore: rename `Waits()` to `Wait()`
# Conflicts:
#	baseapp/abci.go
#	baseapp/accountlock.go
#	baseapp/accountwgs_test.go
#	baseapp/baseapp.go
#	baseapp/baseapp_test.go
#	go.mod
#	go.sum
@jinsan-line jinsan-line self-assigned this Apr 29, 2021
@jinsan-line jinsan-line added this to the Initail ebony milestone Apr 29, 2021
@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #155 (42dcb2e) into v2/develop (1f739c5) will increase coverage by 0.02%.
The diff coverage is 74.30%.

❗ Current head 42dcb2e differs from pull request most recent head c5ced35. Consider uploading reports for the commit c5ced35 to get more accurate results
Impacted file tree graph

@@              Coverage Diff               @@
##           v2/develop     #155      +/-   ##
==============================================
+ Coverage       54.99%   55.02%   +0.02%     
==============================================
  Files             812      812              
  Lines           51487    51531      +44     
==============================================
+ Hits            28317    28354      +37     
- Misses          20211    20231      +20     
+ Partials         2959     2946      -13     
Impacted Files Coverage Δ
client/grpc/tmservice/query.pb.gw.go 30.06% <ø> (ø)
client/keys/root.go 100.00% <ø> (ø)
client/keys/utils.go 35.29% <ø> (-3.60%) ⬇️
client/utils.go 44.82% <0.00%> (-1.61%) ⬇️
crypto/armor.go 85.89% <ø> (ø)
crypto/keys/ed25519/ed25519.go 67.34% <ø> (ø)
crypto/keys/multisig/codec.go 100.00% <ø> (ø)
crypto/keys/secp256k1/secp256k1.go 86.79% <ø> (ø)
simapp/test_helpers.go 0.49% <0.00%> (-0.01%) ⬇️
types/address.go 65.71% <ø> (ø)
... and 40 more

@jinsan-line jinsan-line merged commit 258163d into v2/develop Apr 29, 2021
@jinsan-line jinsan-line deleted the jinsan/v2/concurrent-rechecktx branch April 29, 2021 05:57
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.

4 participants