20 lines
447 B
C++
20 lines
447 B
C++
|
|
/* Copyright (C) Cryptonomex, Inc - All Rights Reserved **/
|
||
|
|
#include <graphene/chain/protocol/delegate.hpp>
|
||
|
|
|
||
|
|
namespace graphene { namespace chain {
|
||
|
|
|
||
|
|
void delegate_create_operation::validate()const
|
||
|
|
{
|
||
|
|
FC_ASSERT( fee.amount >= 0 );
|
||
|
|
FC_ASSERT(url.size() < GRAPHENE_MAX_URL_LENGTH );
|
||
|
|
}
|
||
|
|
|
||
|
|
void delegate_update_global_parameters_operation::validate() const
|
||
|
|
{
|
||
|
|
FC_ASSERT( fee.amount >= 0 );
|
||
|
|
new_parameters.validate();
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
} } // graphene::chain
|