mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
block_weight: catch exceptions in main for clean exit on error
This commit is contained in:
parent
4b3bb829c2
commit
0eee6cd7fe
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user