prevent assets with BIT prefix

This commit is contained in:
Daniel Larimer 2015-10-12 14:17:18 -04:00
parent 91c8e709fe
commit 52d88c57c9

View file

@ -24,6 +24,9 @@ bool is_valid_symbol( const string& symbol )
if( symbol.size() < GRAPHENE_MIN_ASSET_SYMBOL_LENGTH )
return false;
if( symbol.substring(0,3) == "BIT" )
return false;
if( symbol.size() > GRAPHENE_MAX_ASSET_SYMBOL_LENGTH )
return false;