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: cellbase type script #622

Merged
merged 1 commit into from
May 7, 2019
Merged

feat: cellbase type script #622

merged 1 commit into from
May 7, 2019

Conversation

quake
Copy link
Member

@quake quake commented May 4, 2019

This PR allows the miner to set cellbase's output type, and cellbase will be verified with the same rule as a normal transaction.

@quake quake requested a review from a team May 4, 2019 13:23
@quake quake requested a review from doitian May 5, 2019 06:51
))
.build();
let block = BlockBuilder::default().transaction(cellbase).build();
let verifier = CellbaseVerifier::new();
Copy link
Member

Choose a reason for hiding this comment

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

We can keep the test by using TransactionsVerifier here.

Copy link
Member Author

Choose a reason for hiding this comment

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

@doitian it's tested in

pub fn test_capacity_outofbound() {

Copy link
Member

@doitian doitian left a comment

Choose a reason for hiding this comment

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

Need to support the changes in #627

The cellbase used cycles should be excluded when getting transactions from pool.

@quake
Copy link
Member Author

quake commented May 6, 2019

Need to support the changes in #627

The cellbase used cycles should be excluded when getting transactions from pool.

Resolved, thanks.

@quake quake requested a review from doitian May 6, 2019 04:21
verification/src/block_verifier.rs Outdated Show resolved Hide resolved
verification/src/block_verifier.rs Outdated Show resolved Hide resolved
@quake quake requested a review from doitian May 6, 2019 12:19
@doitian
Copy link
Member

doitian commented May 6, 2019

Please resolve conflicts

@quake
Copy link
Member Author

quake commented May 6, 2019

Please resolve conflicts

rebased and squashed

@quake quake merged commit a70a81f into develop May 7, 2019
@doitian doitian deleted the quake/cellbase_type branch May 7, 2019 15:27
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.

2 participants