From 8a9120e5179eed2640a8d0b926b7e61980bb42a2 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 20 Aug 2015 08:47:38 -0400 Subject: [PATCH] increasing the default minimum number of witnesses to 101 for testing --- libraries/chain/fork_database.cpp | 4 +++- libraries/chain/include/graphene/chain/config.hpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/chain/fork_database.cpp b/libraries/chain/fork_database.cpp index f867e69a..6c70fdde 100644 --- a/libraries/chain/fork_database.cpp +++ b/libraries/chain/fork_database.cpp @@ -64,7 +64,9 @@ void fork_database::_push_block(const item_ptr& item) { if( _head ) // make sure the block is within the range that we are caching { - FC_ASSERT( item->num > std::max( 0, int64_t(_head->num) - (_max_size) ) ); + FC_ASSERT( item->num > std::max( 0, int64_t(_head->num) - (_max_size) ), + "attempting to push a block that is too old", + ("item->num",item->num)("head",_head->num)("max_size",_max_size)); FC_ASSERT( item->num < _head->num + 32 ); } diff --git a/libraries/chain/include/graphene/chain/config.hpp b/libraries/chain/include/graphene/chain/config.hpp index f77f7144..388133c2 100644 --- a/libraries/chain/include/graphene/chain/config.hpp +++ b/libraries/chain/include/graphene/chain/config.hpp @@ -85,7 +85,7 @@ ///@} #define GRAPHENE_DEFAULT_MARGIN_PERIOD_SEC (30*60*60*24) -#define GRAPHENE_DEFAULT_MIN_WITNESS_COUNT (11) +#define GRAPHENE_DEFAULT_MIN_WITNESS_COUNT (101) #define GRAPHENE_DEFAULT_MIN_COMMITTEE_MEMBER_COUNT (11) #define GRAPHENE_DEFAULT_MAX_WITNESSES (1001) // SHOULD BE ODD #define GRAPHENE_DEFAULT_MAX_COMMITTEE (1001) // SHOULD BE ODD