mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
Merge pull request #5384
0eee6cd7
block_weight: catch exceptions in main for clean exit on error (moneromooo-monero)4b3bb829
epee: init a new ssl related variable in ctor (moneromooo-monero)
This commit is contained in:
commit
716f5a2a6a
2 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,7 @@ PRAGMA_WARNING_DISABLE_VS(4355)
|
|||
:
|
||||
connection_basic(std::move(sock), state, ssl_support),
|
||||
m_protocol_handler(this, check_and_get(state).config, context),
|
||||
buffer_ssl_init_fill(0),
|
||||
m_connection_type( connection_type ),
|
||||
m_throttle_speed_in("speed_in", "throttle_speed_in"),
|
||||
m_throttle_speed_out("speed_out", "throttle_speed_out"),
|
||||
|
|
|
@ -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