prevent assets with BIT prefix
This commit is contained in:
parent
91c8e709fe
commit
52d88c57c9
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue