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

feature: index whether a tx is a cellbase in the chain #336

Merged
merged 1 commit into from
Mar 25, 2019
Merged

feature: index whether a tx is a cellbase in the chain #336

merged 1 commit into from
Mar 25, 2019

Conversation

u2
Copy link
Contributor

@u2 u2 commented Mar 15, 2019

Index whether a tx is a cellbase in the chain, prepare for the cellbase outputs maturity checking.

Now saving the cellbase index and block number in the TransactionMeta, there is another implementation which creates a HashMap<tx_hash, number>. The second one may be a little memory saving, but this one is more simple. I think both are ok.

#54

@doitian doitian requested review from jjyr and quake March 15, 2019 15:12
@doitian doitian added the s:waiting-on-reviewers Status: Waiting for Review label Mar 15, 2019
@doitian
Copy link
Member

doitian commented Mar 20, 2019

@quake is refactoring the storage, we'll going to hold this PR.

@doitian doitian added the s:waiting-on-team Status: Waiting on CKB team label Mar 20, 2019
@quake
Copy link
Member

quake commented Mar 20, 2019

LGTM, however, I would like to hold this PR after #343 merged, and I will rebase this PR later.

@u2
Copy link
Contributor Author

u2 commented Mar 25, 2019

LGTM, however, I would like to hold this PR after #343 merged, and I will rebase this PR later.

updated

@quake
Copy link
Member

quake commented Mar 25, 2019

bors r+

bors bot added a commit that referenced this pull request Mar 25, 2019
336: feature: index whether a tx is a cellbase in the chain r=quake a=u2

Index whether a tx is a cellbase in the chain, prepare for the cellbase outputs maturity checking.

Now saving the cellbase index and block number in the `TransactionMeta`, there is another implementation which creates a `HashMap<tx_hash, number>`. The second one may be a little memory saving, but this one is more simple. I think both are ok.

#54

Co-authored-by: u2 <[email protected]>
@bors
Copy link
Contributor

bors bot commented Mar 25, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 37e7cb7 into nervosnetwork:develop Mar 25, 2019
@doitian doitian mentioned this pull request Mar 27, 2019
@u2 u2 deleted the cellbase_index branch June 20, 2019 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:waiting-on-reviewers Status: Waiting for Review s:waiting-on-team Status: Waiting on CKB team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants