You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Change get_table_rows_ex to set upper (within the if statement checking if upper_bound was specified by the caller) using the upper_bound function rather than the lower_bound function.
Change get_table_rows_by_seckey to set upper (within the if statement checking if upper_bound was specified by the caller) using the upper_bound function rather than the lower_bound function. However the upper_bound function should be passed a tuple that includes a third argument std::numeric_limits<uint64_t>::max().
Change get_table_by_scope to set upper (within the if statement branch that asserts that upper_bound was specified by the caller) using the upper_bound function rather than the lower_bound function and with a tuple boost::make_tuple(p.code, scope, std::numeric_limits<uint64_t>::max()) passed to the upper_bound function.
Set lower_bound_lookup_tuple and upper_bound_lookup_tuple appropriately based on passed in RPC arguments. Ensure lower_bound_lookup_tuple <= upper_bound_lookup_tuple. Then the lower and upper iterators in all cases should just be:
auto lower = idx.lower_bound( lower_bound_lookup_tuple );
auto upper = idx.upper_bound( upper_bound_lookup_tuple );
Audit all uses of lower_bound and upper_bound in cleos and update them as appropriate to work with the corrected upper_bound implementation in chain_plugin.
The text was updated successfully, but these errors were encountered:
#6273
Still need to request larger range than necessary and do additional
checks just so v1.5.0 of cleos can still work with nodeos versions older
than v1.5.0.
See the comment here: #6070 (comment)
Changeget_table_rows_ex
to setupper
(within the if statement checking ifupper_bound
was specified by the caller) using theupper_bound
function rather than thelower_bound
function.Changeget_table_rows_by_seckey
to setupper
(within the if statement checking ifupper_bound
was specified by the caller) using theupper_bound
function rather than thelower_bound
function. However theupper_bound
function should be passed a tuple that includes a third argumentstd::numeric_limits<uint64_t>::max()
.Changeget_table_by_scope
to setupper
(within the if statement branch that asserts thatupper_bound
was specified by the caller) using theupper_bound
function rather than thelower_bound
function and with a tupleboost::make_tuple(p.code, scope, std::numeric_limits<uint64_t>::max())
passed to theupper_bound
function.Set
lower_bound_lookup_tuple
andupper_bound_lookup_tuple
appropriately based on passed in RPC arguments. Ensurelower_bound_lookup_tuple <= upper_bound_lookup_tuple
. Then thelower
andupper
iterators in all cases should just be:Audit all uses of
lower_bound
andupper_bound
in cleos and update them as appropriate to work with the correctedupper_bound
implementation in chain_plugin.The text was updated successfully, but these errors were encountered: