update reflect

This commit is contained in:
Daniel Larimer 2013-10-22 22:02:55 -04:00
parent 2030623243
commit cf37cd776b
2 changed files with 13 additions and 0 deletions

View file

@ -322,6 +322,15 @@ namespace fc
vars[i] = variant(t[i]);
v = vars;
}
/** @ingroup Serializable */
template<typename A, typename B>
void to_variant( const std::pair<A,B>& t, variant& v )
{
std::vector<variant> vars(2);
vars[0] = variant(t.first);
vars[1] = variant(t.second);
v = vars;
}
template<typename T>

View file

@ -26,6 +26,10 @@ char* ripemd160::data()const { return (char*)&_hash[0]; }
struct ripemd160::encoder::impl {
impl()
{
memset( (char*)&ctx, 0, sizeof(ctx) );
}
RIPEMD160_CTX ctx;
};