mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
block_weight: catch exceptions in main for clean exit on error
This commit is contained in:
parent
4b3bb829c2
commit
0eee6cd7fe
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue