MCPcopy Create free account
hub / github.com/cryptonomex/graphene / validate

Method validate

libraries/chain/protocol/worker.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace graphene { namespace chain {
24
25void worker_create_operation::validate() const
26{
27 FC_ASSERT(fee.amount >= 0);
28 FC_ASSERT(work_end_date > work_begin_date);
29 FC_ASSERT(daily_pay > 0);
30 FC_ASSERT(daily_pay < GRAPHENE_MAX_SHARE_SUPPLY);
31 FC_ASSERT(name.size() < GRAPHENE_MAX_WORKER_NAME_LENGTH );
32 FC_ASSERT(url.size() < GRAPHENE_MAX_URL_LENGTH );
33}
34
35} }

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected