Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chain_id_type.cpp
Go to the documentation of this file.
3
4namespace sysio { namespace chain {
5
7 SYS_ASSERT( *reinterpret_cast<const fc::sha256*>(this) != fc::sha256(), chain_id_type_exception, "chain_id_type cannot be zero" );
8 }
9
10} } // namespace sysio::chain
11
12namespace fc {
13
15 to_variant( static_cast<const fc::sha256&>(cid), v);
16 }
17
19 from_variant( v, static_cast<fc::sha256&>(cid) );
20 }
21
22} // fc
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191
namespace sysio::chain
Definition authority.cpp:3
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition authority.cpp:4