Skip to content

Commit

Permalink
Enable large votes (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Jun 22, 2024
1 parent 5c0ee32 commit 2c9562f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nano/core_test/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ TEST (message, confirm_header_flags_max)
TEST (message, confirm_ack_hash_serialization)
{
std::vector<nano::block_hash> hashes;
for (auto i (hashes.size ()); i < nano::network::confirm_ack_hashes_max; i++)
for (auto i = 0; i < 12; i++)
{
nano::keypair key1;
nano::block_hash previous;
Expand Down Expand Up @@ -188,7 +188,7 @@ TEST (message, confirm_ack_hash_serialization)
TEST (message, confirm_ack_hash_serialization_v2)
{
std::vector<nano::block_hash> hashes;
for (auto i (hashes.size ()); i < 255; i++)
for (auto i = 0; i < 255; i++)
{
nano::keypair key1;
nano::block_hash previous;
Expand Down
4 changes: 2 additions & 2 deletions nano/node/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ class network final
static unsigned const broadcast_interval_ms = 10;
static std::size_t const buffer_size = 512;

static std::size_t const confirm_req_hashes_max = 7;
static std::size_t const confirm_ack_hashes_max = 12;
static std::size_t const confirm_req_hashes_max = 255;
static std::size_t const confirm_ack_hashes_max = 255;
};

std::unique_ptr<container_info_component> collect_container_info (network & network, std::string const & name);
Expand Down

0 comments on commit 2c9562f

Please sign in to comment.