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

Added IF ibc contract + test #2314

Merged
merged 10 commits into from
Mar 21, 2024
Merged

Added IF ibc contract + test #2314

merged 10 commits into from
Mar 21, 2024

Conversation

systemzax
Copy link
Member

No description provided.

unittests/if_ibc_tests.cpp Outdated Show resolved Hide resolved
unittests/if_ibc_tests.cpp Outdated Show resolved Hide resolved
unittests/if_ibc_tests.cpp Outdated Show resolved Hide resolved
unittests/if_ibc_tests.cpp Outdated Show resolved Hide resolved
unittests/test-contracts/if_ibc/if_ibc.hpp Outdated Show resolved Hide resolved
unittests/test-contracts/if_ibc/if_ibc.cpp Outdated Show resolved Hide resolved
@greg7mdp

This comment was marked as resolved.

@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: INTERNALS
summary: Interblock BlockChain Communication (IBC) contracts and test with Savanna Consensus.
Note:end

@systemzax
Copy link
Member Author

Can you remove all the empty lines especially at the end of functions? Thanks!

Fixed

: num_bits(size), data((size + 63) / 64) {}

bitset(size_t size, const std::vector<uint64_t>& raw_bitset)
: num_bits(size), data(raw_bitset) {}
Copy link
Member

Choose a reason for hiding this comment

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

might want to consider validating that raw_bitset is properly sized. otherwise it seems like it's possible to construct a bitset where num_bits is greater than actual data.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@systemzax systemzax merged commit fbe6455 into hotstuff_integration Mar 21, 2024
34 checks passed
@systemzax systemzax deleted the if_ibc_contract branch March 21, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit tests of IBC functionality with new algorithm
5 participants