AElfProject / AElf

An AI-enhanced cloud-native layer-1 blockchain network. 
https://aelf.com/
MIT License
1.61k stars 265 forks source link

Increase the TPS of AElf. #3590

Closed chopin-fan closed 4 months ago

chopin-fan commented 4 months ago

Increase the TPS (Transactions Per Second) of AElf. fixes #3589

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 92.77108% with 12 lines in your changes missing coverage. Please review.

Project coverage is 90.64%. Comparing base (542043d) to head (a6628c8).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/AElfProject/AElf/pull/3590/graphs/tree.svg?width=650&height=150&src=pr&token=X07fSKQJPV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject)](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject) ```diff @@ Coverage Diff @@ ## dev #3590 +/- ## ========================================== + Coverage 90.59% 90.64% +0.04% ========================================== Files 668 676 +8 Lines 25980 26068 +88 Branches 2328 2346 +18 ========================================== + Hits 23537 23629 +92 + Misses 2327 2324 -3 + Partials 116 115 -1 ``` | [Files](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject) | Coverage Δ | | |---|---|---| | [...PoSContract\_ACS11\_CrossChainInformationProvider.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.Consensus.AEDPoS%2FAEDPoSContract_ACS11_CrossChainInformationProvider.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuQ29uc2Vuc3VzLkFFRFBvUy9BRURQb1NDb250cmFjdF9BQ1MxMV9Dcm9zc0NoYWluSW5mb3JtYXRpb25Qcm92aWRlci5jcw==) | `98.41% <100.00%> (ø)` | | | [...DPoS/AEDPoSContract\_ProcessConsensusInformation.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.Consensus.AEDPoS%2FAEDPoSContract_ProcessConsensusInformation.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuQ29uc2Vuc3VzLkFFRFBvUy9BRURQb1NDb250cmFjdF9Qcm9jZXNzQ29uc2Vuc3VzSW5mb3JtYXRpb24uY3M=) | `80.70% <100.00%> (ø)` | | | [...act/AElf.Contracts.Consensus.AEDPoS/Types/Round.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.Consensus.AEDPoS%2FTypes%2FRound.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuQ29uc2Vuc3VzLkFFRFBvUy9UeXBlcy9Sb3VuZC5jcw==) | `90.44% <100.00%> (ø)` | | | [...ontracts.Election/ElectionContract\_Maintainence.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.Election%2FElectionContract_Maintainence.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuRWxlY3Rpb24vRWxlY3Rpb25Db250cmFjdF9NYWludGFpbmVuY2UuY3M=) | `81.73% <100.00%> (+0.05%)` | :arrow_up: | | [contract/AElf.Contracts.Election/ViewMethods.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.Election%2FViewMethods.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuRWxlY3Rpb24vVmlld01ldGhvZHMuY3M=) | `86.03% <100.00%> (+0.04%)` | :arrow_up: | | [...ultiToken/TokenContract\_ACS2\_StatePathsProvider.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.MultiToken%2FTokenContract_ACS2_StatePathsProvider.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuTXVsdGlUb2tlbi9Ub2tlbkNvbnRyYWN0X0FDUzJfU3RhdGVQYXRoc1Byb3ZpZGVyLmNz) | `86.50% <100.00%> (ø)` | | | [...f.Contracts.MultiToken/TokenContract\_Delegation.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=contract%2FAElf.Contracts.MultiToken%2FTokenContract_Delegation.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-Y29udHJhY3QvQUVsZi5Db250cmFjdHMuTXVsdGlUb2tlbi9Ub2tlbkNvbnRyYWN0X0RlbGVnYXRpb24uY3M=) | `93.23% <100.00%> (ø)` | | | [...deOps/Patchers/Module/ResetFieldsMethodInjector.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=src%2FAElf.CSharp.CodeOps%2FPatchers%2FModule%2FResetFieldsMethodInjector.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-c3JjL0FFbGYuQ1NoYXJwLkNvZGVPcHMvUGF0Y2hlcnMvTW9kdWxlL1Jlc2V0RmllbGRzTWV0aG9kSW5qZWN0b3IuY3M=) | `80.17% <100.00%> (ø)` | | | [...CodeOps/Validators/Whitelist/IWhitelistProvider.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=src%2FAElf.CSharp.CodeOps%2FValidators%2FWhitelist%2FIWhitelistProvider.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-c3JjL0FFbGYuQ1NoYXJwLkNvZGVPcHMvVmFsaWRhdG9ycy9XaGl0ZWxpc3QvSVdoaXRlbGlzdFByb3ZpZGVyLmNz) | `100.00% <100.00%> (ø)` | | | [src/AElf.Cryptography/CryptoHelper.cs](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree&filepath=src%2FAElf.Cryptography%2FCryptoHelper.cs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject#diff-c3JjL0FFbGYuQ3J5cHRvZ3JhcGh5L0NyeXB0b0hlbHBlci5jcw==) | `88.72% <100.00%> (ø)` | | | ... and [30 more](https://app.codecov.io/gh/AElfProject/AElf/pull/3590?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject) | | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/AElfProject/AElf/pull/3590/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AElfProject)