Skip to content

Commit

Permalink
prevent assets with BIT prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemaster committed Oct 12, 2015
1 parent 91c8e70 commit 52d88c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/chain/protocol/asset_ops.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 52d88c5

Please sign in to comment.