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: tx_pool_info include tip hash #2184

Merged
merged 3 commits into from Jul 30, 2020

Conversation

keroro520
Copy link
Contributor

The state of the transaction pool is related to the chain tip. So attaching tip_hash and tip_number into TxPoolInfo which returns by RPC tx_pool_info makes it more rigorous.

* This PR adds `tip_hash` and `tip_number` into `TxPoolInfo` which
  returns by RPC `tx_pool_info`.
@keroro520 keroro520 requested a review from a team July 27, 2020 04:55
@keroro520 keroro520 requested a review from a team as a code owner July 27, 2020 04:55
@quake
Copy link
Member

quake commented Jul 27, 2020

LGTM, please resolve CI fmt issue.

quake
quake previously approved these changes Jul 27, 2020
@doitian
Copy link
Member

doitian commented Jul 30, 2020

bors r=quake,doitian

1 similar comment
@doitian
Copy link
Member

doitian commented Jul 30, 2020

bors r=quake,doitian

bors bot added a commit that referenced this pull request Jul 30, 2020
2144: feat: add `set_network_active` rpc r=TheWaWaR,keroro520 a=quake

allows user to pause and restart p2p network message processing through rpc

2169: small tx-pool refactoring  r=quake,doitian a=zhangsoledad

proposal changes:
* rename ContextualTransactionVerifier -> TimeRelativeTransactionVerifier
* split NonContextualTransactionVerifier from TransactionVerifier
* check syntactic correctness first before 
* refactory tx-pool rejection error
* re-broadcast when duplicated tx submit

2184: feat: tx_pool_info include tip hash r=quake,doitian a=keroro520

The state of the transaction pool is related to the chain tip. So attaching `tip_hash` and `tip_number` into `TxPoolInfo` which returns by RPC `tx_pool_info` makes it more rigorous.

Co-authored-by: quake <quake.wang@gmail.com>
Co-authored-by: zhangsoledad <787953403@qq.com>
Co-authored-by: keroro <keroroxx520@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jul 30, 2020

Build failed (retrying...):

  • continuous-integration/travis-ci/push

bors bot added a commit that referenced this pull request Jul 30, 2020
2169: small tx-pool refactoring  r=quake,doitian a=zhangsoledad

proposal changes:
* rename ContextualTransactionVerifier -> TimeRelativeTransactionVerifier
* split NonContextualTransactionVerifier from TransactionVerifier
* check syntactic correctness first before 
* refactory tx-pool rejection error
* re-broadcast when duplicated tx submit

2184: feat: tx_pool_info include tip hash r=quake,doitian a=keroro520

The state of the transaction pool is related to the chain tip. So attaching `tip_hash` and `tip_number` into `TxPoolInfo` which returns by RPC `tx_pool_info` makes it more rigorous.

Co-authored-by: zhangsoledad <787953403@qq.com>
Co-authored-by: keroro <keroroxx520@gmail.com>
@quake
Copy link
Member

quake commented Jul 30, 2020

bors r=quake,doitian

@bors
Copy link
Contributor

bors bot commented Jul 30, 2020

Build succeeded:

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 9d4fa84 into nervosnetwork:develop Jul 30, 2020
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.

None yet

3 participants