-
Notifications
You must be signed in to change notification settings - Fork 839
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
Tracing private transactions feature #6161
Conversation
|
Hi @NickSneo - would like to see some unit and acceptance tests for this new method! |
d575a2c
to
2745344
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that there is a lot of code that is very similar to existing code (e.g. see PrivateTraceGenerator vs FlatTraceGenerator).
I think it would be good to try to have less code duplication.
.../java/org/hyperledger/besu/tests/acceptance/dsl/privacy/transaction/PrivacyTransactions.java
Outdated
Show resolved
Hide resolved
...t/java/org/hyperledger/besu/tests/acceptance/privacy/PrivTraceTransactionAcceptanceTest.java
Outdated
Show resolved
Hide resolved
...t/java/org/hyperledger/besu/tests/acceptance/privacy/PrivTraceTransactionAcceptanceTest.java
Outdated
Show resolved
Hide resolved
...t/java/org/hyperledger/besu/tests/acceptance/privacy/PrivTraceTransactionAcceptanceTest.java
Show resolved
Hide resolved
...dger/besu/ethereum/api/jsonrpc/internal/privacy/methods/priv/PrivateAbstractTraceByHash.java
Outdated
Show resolved
Hide resolved
2745344
to
c5df48b
Compare
45c5137
to
cc38374
Compare
Hey @pinges , Thank you for reviewing the PR. I have resolved all the comments. For code duplication I have tried to have as less as possible, but since we want to make private and public code separate from each other, I have followed the similar approach as it is right now -> some code duplication is expected. Let me know if it is fine or I still need to change. Also regarding the failing pipeline, It is not related to any of my change, should I try to fix that too in this PR? |
Hey @pinges @macfarla ,
|
...java/org/hyperledger/besu/tests/acceptance/dsl/transaction/privacy/PrivTraceTransaction.java
Outdated
Show resolved
Hide resolved
plugin-api/src/main/java/org/hyperledger/besu/plugin/data/PrivateTransaction.java
Outdated
Show resolved
Hide resolved
would it make sense to have an abstract class that FlatTrace can extend? For the failing test - i have created an issue for it #7108 - that is not caused by this PR - but a lot of those permissioning tests are flaky lately - so if you feel like fixing them separately that would be super! |
@macfarla Sure, will create an abstract class that FlatTrace can extend. Also will look into the issue #7108 |
Hey @macfarla ,
Right now not trying to modify logic for FlatTraceGenerator and PrivateTraceGenerator. Also, Can we get this merged soon, so I can pick other issues too. Thanks Edit: Any change in PrivateFlatTrace file will require whole refactoring and a lot of changes in current PR. Current solution works as expected, I think we should merge it as it is |
d129369
to
db7f44b
Compare
Hey @macfarla @non-fungible-nelson , Can we get this PR merged soon? It is open from a long time, also I have spent a lot of time on it so it would be great to see this merged. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at the comments.
...ledger/besu/ethereum/api/jsonrpc/internal/processor/privateProcessor/PrivateBlockReplay.java
Outdated
Show resolved
Hide resolved
...ledger/besu/ethereum/api/jsonrpc/internal/processor/privateProcessor/PrivateBlockReplay.java
Outdated
Show resolved
Hide resolved
...ledger/besu/ethereum/api/jsonrpc/internal/processor/privateProcessor/PrivateBlockReplay.java
Outdated
Show resolved
Hide resolved
...dger/besu/ethereum/api/jsonrpc/internal/privacy/methods/priv/AbstractPrivateTraceByHash.java
Outdated
Show resolved
Hide resolved
...ledger/besu/ethereum/api/jsonrpc/internal/processor/privateProcessor/PrivateBlockTracer.java
Outdated
Show resolved
Hide resolved
...ain/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/tracing/flat/Action.java
Outdated
Show resolved
Hide resolved
...dger/besu/ethereum/api/jsonrpc/internal/privacy/methods/priv/AbstractPrivateTraceByHash.java
Outdated
Show resolved
Hide resolved
...hyperledger/besu/ethereum/api/jsonrpc/internal/processor/privateProcessor/PrivateTracer.java
Show resolved
Hide resolved
...besu/ethereum/api/jsonrpc/internal/results/privacy/privateTracing/PrivateTraceGenerator.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NickSneo I think we are very close to get this merged. If my comments about the gas do not make sense just let me know :-)
4b12870
to
545458a
Compare
Hey @pinges Sorry for the delay on this, I just pushed new commits to resolved comments. Please review. |
7f09252
to
a73da2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a changelog entry
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
…acceptance/dsl/privacy/transaction/PrivacyTransactions.java Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com> Signed-off-by: Nischal Sharma <nischal@web3labs.com>
…s/acceptance/privacy/PrivTraceTransactionAcceptanceTest.java Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com> Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
…ateTransaction.java Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com> Signed-off-by: Nischal Sharma <nischal@web3labs.com>
…acceptance/dsl/transaction/privacy/PrivTraceTransaction.java Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com> Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
Signed-off-by: Nischal Sharma <nischal@web3labs.com>
1a7e806
to
43d8d80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for me it looks good, @pinges can you confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
* add private tx tracing feature Signed-off-by: Nischal Sharma <nischal@web3labs.com> Signed-off-by: Stefan Pingel <16143240+pinges@users.noreply.github.com> Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com> Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com> Signed-off-by: gconnect <agatevureglory@gmail.com>
PR description
PR for adding priv_traceTransaction API
Fixed Issue(s)
#5280