1
0
Fork 0
forked from lthn/blockchain

added check if console is available #510

This commit is contained in:
cryptozoidberg 2025-06-07 14:10:45 +04:00
parent 87fae9440c
commit 9efce2ddb3
No known key found for this signature in database
GPG key ID: 2E10CC61CAC8F36D

View file

@ -409,10 +409,14 @@ int main(int argc, char* argv[])
LOG_PRINT_MAGENTA("[Warp]: Warm up finished!", LOG_LEVEL_0);
}
// start components
if (!command_line::has_arg(vm, command_line::arg_console))
//detect if console is available
if (isatty(fileno(stdin)))
{
dch.start_handling();
// start components
if (!command_line::has_arg(vm, command_line::arg_console))
{
dch.start_handling();
}
}
uint32_t rpc_threads_count = RPC_SERVER_DEFAULT_THREADS_NUM;