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: mining ffi add coinbase add #6183

Merged
merged 9 commits into from Mar 6, 2024

Conversation

SWvheerden
Copy link
Collaborator

Description

add functionality to add coinbase

@SWvheerden SWvheerden requested a review from a team as a code owner March 5, 2024 11:49
@ghpbot-tari-project ghpbot-tari-project added the CR-insufficient_context Your PRs commit messages don't provide enough context to justify accepting the change. label Mar 5, 2024
Copy link

github-actions bot commented Mar 5, 2024

Test Results (Integration tests)

12 tests   12 ✅  1m 7s ⏱️
 2 suites   0 💤
 2 files     0 ❌
 1 errors

For more details on these parsing errors, see this check.

Results for commit e4d26f0.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Mar 5, 2024
Copy link

github-actions bot commented Mar 5, 2024

Test Results (CI)

    3 files    120 suites   43m 20s ⏱️
1 268 tests 1 268 ✅ 0 💤 0 ❌
3 796 runs  3 796 ✅ 0 💤 0 ❌

Results for commit e4d26f0.

♻️ This comment has been updated with latest results.

brianp
brianp previously approved these changes Mar 5, 2024
Copy link
Contributor

@brianp brianp left a comment

Choose a reason for hiding this comment

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

utAck

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Mar 5, 2024
@ghpbot-tari-project ghpbot-tari-project added the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Mar 5, 2024
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

Looks good, but I think we are missing the fees.

base_layer/tari_mining_helper_ffi/src/lib.rs Show resolved Hide resolved
base_layer/tari_mining_helper_ffi/src/lib.rs Outdated Show resolved Hide resolved
base_layer/tari_mining_helper_ffi/src/lib.rs Outdated Show resolved Hide resolved
@SWvheerden
Copy link
Collaborator Author

Nope fees are not missing, you need to include it in the value you want the coinbase to be

///
/// ## Arguments
/// `block_template_bytes` - The block template as bytes, serialized with borsh.io
/// `value` - The value of the coinbase
Copy link
Contributor

Choose a reason for hiding this comment

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

If this includes the fee it should be like reward_and_fee or something and the comment should explain it

@SWvheerden SWvheerden merged commit 820e936 into tari-project:development Mar 6, 2024
13 of 16 checks passed
@SWvheerden SWvheerden deleted the sw_mining_ffi branch March 11, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CR-insufficient_context Your PRs commit messages don't provide enough context to justify accepting the change. P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants