- remove circular dependency with fee_schedule - unitiy build db_* as database.cpp - move protocol definitions in separate directory - combined some objects/evaluators - combined limit/call evaluator/objects into market_evaluator.*
19 lines
430 B
C++
19 lines
430 B
C++
/* Copyright (C) Cryptonomex, Inc - All Rights Reserved **/
|
|
#include <graphene/chain/protocol/witness.hpp>
|
|
|
|
namespace graphene { namespace chain {
|
|
|
|
|
|
void witness_create_operation::validate() const
|
|
{
|
|
FC_ASSERT(fee.amount >= 0);
|
|
FC_ASSERT(url.size() < GRAPHENE_MAX_URL_LENGTH );
|
|
}
|
|
|
|
void witness_withdraw_pay_operation::validate() const
|
|
{
|
|
FC_ASSERT( fee.amount >= 0 );
|
|
FC_ASSERT( amount >= 0 );
|
|
}
|
|
|
|
} } // graphene::chain
|