fixed unit tests; fixed core tests; fixed performance tests; added fix to prevent change in block reward split (thanks Akil); added prelim code for spend authority proof - not complete / working

This commit is contained in:
Some Random Crypto Guy
2024-12-15 11:09:46 +00:00
parent 49fd907073
commit b87c243da1
46 changed files with 631 additions and 268 deletions

View File

@@ -42,19 +42,12 @@ TEST(pricing_record, verify_serialization)
oracle::pricing_record pr;
oracle::pricing_record pr1;
pr.pr_version = 1;
pr.height = 1234;
pr.supply = {100000,0};
pr.timestamp = 1632401454;
pr.spot = COIN<<1;
pr.moving_average = (COIN * 3) >> 2;
memset(pr.signature, 0, 64);
pr.assets = {};
pr.signature = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
/*
oracle::pricing_record_entry foo;
foo.first = "FULM";
foo.second.first = 2;
foo.second.second = 3;
pr.assets.push_back(foo);
*/
std::string blob;
ASSERT_TRUE(serialization::dump_binary(pr, blob));
ASSERT_TRUE(serialization::parse_binary(blob, pr1));