-
Notifications
You must be signed in to change notification settings - Fork 36
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
Linking error potential fix #131
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neotheprogramist
force-pushed
the
commit-root-rename
branch
from
December 18, 2023 15:50
e690440
to
08ce91a
Compare
seems to work . could we add a small description in the PR ? |
Shouldn't we have a test in ipa-multipoint/src/test/java/org/hyperledger/besu/nativelib/ipa_multipoint/ for this method as well ? |
neotheprogramist
force-pushed
the
commit-root-rename
branch
from
December 18, 2023 18:13
9163b5b
to
b608aa9
Compare
Good with me. Thanks! |
neotheprogramist
force-pushed
the
commit-root-rename
branch
from
December 19, 2023 20:15
d177327
to
6b86956
Compare
neotheprogramist
force-pushed
the
commit-root-rename
branch
from
January 5, 2024 08:33
589fb58
to
70e25ef
Compare
matkt
reviewed
Jan 5, 2024
ipa-multipoint/src/test/java/org/hyperledger/besu/nativelib/ipa_multipoint/CommitRootTest.java
Show resolved
Hide resolved
neotheprogramist
force-pushed
the
commit-root-rename
branch
from
January 5, 2024 08:52
fe8e62a
to
7bb7c43
Compare
Signed-off-by: Neo <neotheprogramist@proton.me>
Signed-off-by: Neo <neotheprogramist@proton.me>
Signed-off-by: Neo <neotheprogramist@proton.me>
Signed-off-by: Neo <neotheprogramist@proton.me>
neotheprogramist
force-pushed
the
commit-root-rename
branch
from
January 5, 2024 08:54
7bb7c43
to
55f04d9
Compare
matkt
approved these changes
Jan 5, 2024
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
Good for me as well, thanks @neotheprogramist |
kevaundray
pushed a commit
to kevaundray/besu-native
that referenced
this pull request
Jan 24, 2024
Signed-off-by: Neo <neotheprogramist@proton.me> Signed-off-by: Kevaundray Wedderburn <kevtheappdev@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request addresses a critical linking error encountered in the Hyperledger Besu native library. The issue came to light following a modification in the method invocation within the
PedersenHasher
class, whereLibIpaMultipoint.commit
was changed toLibIpaMultipoint.commit_root
. As a result of this change, ajava.lang.UnsatisfiedLinkError
is triggered when calling thecommit_root
method, with the error message:'byte[] org.hyperledger.besu.nativelib.ipamultipoint.LibIpaMultipoint.commit_root(byte[])'
.Proposed Fix
The fix proposed in this pull request involves renaming the
commit_root
method from snake_case to camelCase. This renaming aims to:Context
While other methods in the
LibIpaMultipoint
class, such ascommit
andpedersenHash
, continue to operate as expected, it is believed that the naming convention employed forcommit_root
may be contributing to the linking error.