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: smt code review #5876

Merged
merged 5 commits into from
Oct 27, 2023
Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Updates the SMT branch with code review

@ghpbot-tari-project ghpbot-tari-project added CR-too_long Changes Requested - Your PR is too long CR-insufficient_context Your PRs commit messages don't provide enough context to justify accepting the change. labels Oct 26, 2023
@SWvheerden SWvheerden changed the base branch from development to feature-smt October 26, 2023 14:29
@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 Oct 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 26, 2023

Test Results (CI)

1 233 tests   - 2   1 233 ✔️  - 2   11m 31s ⏱️ -15s
     39 suites ±0          0 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit f0b04cc. ± Comparison against base commit 7fc3a8f.

This pull request removes 2 tests.
tari_core ‑ validation::block_body::test::it_checks_duplicate_kernel
tari_core::core_integration_tests ‑ tests::async_db::fetch_async_utxo

♻️ This comment has been updated with latest results.

@@ -1828,10 +1828,10 @@ impl BlockchainBackend for LMDBDatabase {
}
}

fn fetch_utxos_in_block(
fn fetch_outputs_in_block_with_spend_state(
Copy link
Contributor

@hansieodendaal hansieodendaal Oct 26, 2023

Choose a reason for hiding this comment

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

Maybe add a function comment to say true in the tuple means spent.

@@ -457,13 +451,13 @@ where B: BlockchainBackend
db.fetch_kernels_in_block(&hash)
}

pub fn fetch_utxos_in_block(
pub fn fetch_outputs_in_block_with_spend_state(
Copy link
Contributor

@hansieodendaal hansieodendaal Oct 26, 2023

Choose a reason for hiding this comment

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

Maybe add a function comment to say true in the tuple means spent.

@@ -267,22 +267,22 @@ impl BlockchainBackend for TempDatabase {
self.db.as_ref().unwrap().fetch_kernel_by_excess_sig(excess_sig)
}

fn fetch_utxos_in_block(
fn fetch_outputs_in_block_with_spend_state(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a function comment to say true in the tuple means spent.

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.

I feel this is a huge improvement in priming the reader for context. Just a couple of suggestions ^^.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Oct 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 26, 2023

Test Results (Integration tests)

  2 files  ±0  11 suites  ±0   2h 13m 1s ⏱️ + 5m 16s
34 tests ±0  29 ✔️ +2  0 💤 ±0    5  - 2 
44 runs   - 2  29 ✔️ ±0  0 💤 ±0  15  - 2 

For more details on these failures, see this check.

Results for commit f0b04cc. ± Comparison against base commit 7fc3a8f.

♻️ This comment has been updated with latest results.

Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
@SWvheerden SWvheerden merged commit ba407bc into tari-project:feature-smt Oct 27, 2023
12 of 13 checks passed
@SWvheerden SWvheerden deleted the sw_code_review branch November 1, 2023 12:49
SWvheerden added a commit that referenced this pull request Nov 1, 2023
Description
---
Updates the SMT branch with code review

---------

Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
SWvheerden added a commit that referenced this pull request Nov 2, 2023
Description
---
Updates the SMT branch with code review

---------

Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
SWvheerden added a commit that referenced this pull request Nov 2, 2023
Description
---
Updates the SMT branch with code review

---------

Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
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. CR-too_long Changes Requested - Your PR is too long P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants