message: Reverse priority order of peer private and producer keys.
diff: @@ -2134,23 +2134,23 @@ namespace eosio {
  }
  chain::public_key_type net_plugin_impl::get_authentication_key() const {
  + if(!private_keys.empty())
  + return private_keys.begin()->first;
  producer_plugin* pp = app().find_plugin<producer_plugin>();
  if(pp != nullptr)
  return pp->first_producer_public_key();
  - if(!private_keys.empty())
  - return private_keys.begin()->first;
  return chain::public_key_type();
  }
  fc::ecc::compact_signature net_plugin_impl::sign_compact(const chain::public_key_type& signer, const fc::sha256& digest) const
  {
  + auto private_key_itr = private_keys.find(signer);
  + if(private_key_itr != private_keys.end())
  + return private_key_itr->second.sign_compact(digest);
  producer_plugin* pp = app().find_plugin<producer_plugin>();
  if(pp != nullptr)
  return pp->sign_compact(signer, digest);
  - auto private_key_itr = private_keys.find(signer);
  - if(private_key_itr == private_keys.end())
  return ecc::compact_signature();
  - return private_key_itr->second.sign_compact(digest);
  }
  void
  