contracts/arisen.system/src/com.cpp
/**
    * @brief Checks if account satisfies voting requirement (voting for a proxy or 21 producers)
    * for buying COM
    *
    * @param owner - account buying or already holding COM tokens
    * @err_msg - error message
    */
@brief Checks if account satisfies voting requirement (voting for a proxy or 21 producers)
for buying COM

@param owner - account buying or already holding COM tokens
@err_msg - error message
@brief Checks if account satisfies voting requirement ( voting for a proxy or 21 producers ) for buying COM @param owner - account buying or already holding COM tokens @err_msg - error message
void system_contract::check_voting_requirement( const name& owner, const char* error_msg )const
   {
      auto vitr = _voters.find( owner.value );
      check( vitr != _voters.end() && ( vitr->proxy || 21 <= vitr->producers.size() ), error_msg );
   }
void system_contract :: check_voting_requirement ( const name & owner , const char * error_msg ) const { auto vitr = _voters . find ( owner . value ) ; check ( vitr != _voters . end ( ) && ( vitr -> proxy || 21 <= vitr -> producers . size ( ) ) , error_msg ) ; }
@brief Checks if account satisfies voting requirement (voting for a proxy or 21 producers)
 for buying COM
@brief Checks if account satisfies voting requirement ( voting for a proxy or 21 producers ) for buying COM