functional_tests: add more blockchain related tests

Related to emission, reorgs, getting tx data back, output
distribution and histogram
This commit is contained in:
moneromooo-monero 2019-03-23 16:20:08 +00:00
parent 21b1ac1dd2
commit 064ab12340
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
11 changed files with 399 additions and 77 deletions

View file

@ -142,6 +142,16 @@ namespace cryptonote
std::string print_money(uint64_t amount, unsigned int decimal_point = -1);
//---------------------------------------------------------------
template<class t_object>
bool t_serializable_object_from_blob(t_object& to, const blobdata& b_blob)
{
std::stringstream ss;
ss << b_blob;
binary_archive<false> ba(ss);
bool r = ::serialization::serialize(ba, to);
return r;
}
//---------------------------------------------------------------
template<class t_object>
bool t_serializable_object_to_blob(const t_object& to, blobdata& b_blob)
{
std::stringstream ss;