block_weight: catch exceptions in main for clean exit on error

This commit is contained in:
moneromooo-monero 2019-03-29 12:18:09 +00:00
parent 4b3bb829c2
commit 0eee6cd7fe
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -195,8 +195,10 @@ static void test(test_t t, uint64_t blocks)
int main()
{
TRY_ENTRY();
test(test_max, 2 * LONG_TERM_BLOCK_WEIGHT_WINDOW);
test(test_lcg, 9 * LONG_TERM_BLOCK_WEIGHT_WINDOW);
test(test_min, 1 * LONG_TERM_BLOCK_WEIGHT_WINDOW);
return 0;
CATCH_ENTRY_L0("main", 1);
}