Ref #1506/#1737: Fix clean_name()

This commit is contained in:
Nathan Hourt 2019-05-04 18:20:13 -05:00 committed by Nathan Hourt
parent c94e46f451
commit f2814a451c
No known key found for this signature in database
GPG key ID: B4344309A110851E

View file

@ -39,9 +39,9 @@ namespace impl {
std::string clean_name( const std::string& name )
{
const static std::string prefix = "graphene::chain::";
const static std::string prefix = "graphene::protocol::";
const static std::string suffix = "_operation";
// graphene::chain::.*_operation
// graphene::protocol::.*_operation
if( (name.size() >= prefix.size() + suffix.size())
&& (name.substr( 0, prefix.size() ) == prefix)
&& (name.substr( name.size()-suffix.size(), suffix.size() ) == suffix )