From c1b93b5668c793a617a69e806535d5daa63961dc Mon Sep 17 00:00:00 2001 From: manikey123 Date: Sun, 24 Feb 2019 23:29:28 -0800 Subject: [PATCH] adding 782 code after pr 1513 a --- libraries/app/database_api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index c97db8273b..70183c12bd 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -649,7 +649,6 @@ dynamic_global_property_object database_api_impl::get_dynamic_global_properties( vector> database_api::get_key_references( vector key )const { - FC_ASSERT(key.size() <= 100, "Number of keys must be 100 or less"); return my->get_key_references( key ); } @@ -658,6 +657,8 @@ vector> database_api::get_key_references( vector> database_api_impl::get_key_references( vector keys )const { + uint64_t api_limit_get_key_references=_app_options->api_limit_get_key_references; + FC_ASSERT(keys.size() <= api_limit_get_key_references); const auto& idx = _db.get_index_type(); const auto& aidx = dynamic_cast(idx); const auto& refs = aidx.get_secondary_index();