Fix crash in auth checks

This commit is contained in:
Nathan Hourt 2020-08-23 19:31:38 -05:00
parent 3dd78de312
commit a9135cbdd2
No known key found for this signature in database
GPG key ID: B4344309A110851E

View file

@ -231,7 +231,7 @@ struct sign_state
sign_state( const flat_set<public_key_type>& sigs,
const std::function<const authority*(account_id_type)>& a,
const flat_set<public_key_type>& keys = flat_set<public_key_type>() )
const flat_set<public_key_type>& keys )
:get_active(a),available_keys(keys)
{
for( const auto& key : sigs )
@ -260,8 +260,9 @@ void verify_authority( const vector<operation>& ops, const flat_set<public_key_t
flat_set<account_id_type> required_active;
flat_set<account_id_type> required_owner;
vector<authority> other;
flat_set<public_key_type> available_keys;
sign_state s(sigs,get_active);
sign_state s(sigs,get_active, available_keys);
s.max_recursion = max_recursion_depth;
for( auto& id : active_aprovals )
s.approved_by.insert( id );