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

GaroRobe/issue1485 #1517

Merged
merged 1 commit into from
Oct 12, 2021
Merged

Conversation

GaroRobe
Copy link

@GaroRobe GaroRobe commented Oct 11, 2021

Description of the Change

Added a new query - FindTransactionByHash. Will search a confirmed or rejected transaction by hash value.

Benefits

Possible Drawbacks

Doesn't account for any permissions or domains. Which might be wrong or need a setting.

Usage Examples or Tests [optional]

Alternate Designs [optional]

@github-actions github-actions bot added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Oct 11, 2021
@GaroRobe GaroRobe marked this pull request as ready for review October 11, 2021 14:35
@codecov
Copy link

codecov bot commented Oct 11, 2021

Codecov Report

Merging #1517 (0dbcd21) into iroha2-dev (96711b1) will decrease coverage by 0.11%.
The diff coverage is 4.34%.

Impacted file tree graph

@@              Coverage Diff               @@
##           iroha2-dev    #1517      +/-   ##
==============================================
- Coverage       76.47%   76.36%   -0.12%     
==============================================
  Files             112      112              
  Lines           17826    17868      +42     
==============================================
+ Hits            13633    13645      +12     
- Misses           4193     4223      +30     
Impacted Files Coverage Δ
actor/derive/src/lib.rs 81.66% <ø> (ø)
actor/src/actor_id.rs 95.00% <ø> (ø)
actor/src/broker.rs 92.94% <ø> (ø)
actor/src/envelope.rs 92.30% <ø> (ø)
actor/src/lib.rs 82.20% <ø> (ø)
actor/tests/deadlock.rs 10.00% <ø> (ø)
actor/tests/trybuild.rs 100.00% <ø> (ø)
cli/src/main.rs 7.69% <ø> (ø)
client/src/client.rs 75.67% <0.00%> (ø)
client/src/config.rs 100.00% <ø> (ø)
... and 107 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a6b130...0dbcd21. Read the comment docs.

Signed-off-by: Artem Ponomarev <ponomarev@soramitsu.co.jp>
@s8sato s8sato linked an issue Oct 12, 2021 that may be closed by this pull request
Copy link
Contributor

@s8sato s8sato left a comment

Choose a reason for hiding this comment

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

Are these really ok though?
As you concerned it looks to me not to represent OnlyAccountsDomain nor OnlyAccountsData permissions.
I guess using random hashes everyone could know about some transactions related to other domain or account

@@ -376,6 +376,7 @@ pub mod private_blockchain {
))
}
}
FindTransactionByHash(_query) => Ok(()),
Copy link
Contributor

Choose a reason for hiding this comment

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

OnlyAccountsDomain

@@ -542,6 +543,7 @@ pub mod private_blockchain {
Err(format!("Cannot access another account: {}.", account_id))
}
}
FindTransactionByHash(_query) => Ok(()),
Copy link
Contributor

Choose a reason for hiding this comment

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

OnlyAccountsData

@s8sato
Copy link
Contributor

s8sato commented Oct 12, 2021

I agree the possibility of success in random access by hashes is very low.
I think we may leave comments refer to no need for implementing these permissions

@GaroRobe GaroRobe merged commit f234960 into hyperledger:iroha2-dev Oct 12, 2021
@GaroRobe GaroRobe deleted the GaroRobe/issue1485 branch October 12, 2021 07:18
@i1i1 i1i1 added the api-changes Changes in the API for client libraries label Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-changes Changes in the API for client libraries iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query to get a transaction by hash
3 participants