| 906 | } |
| 907 | |
| 908 | int main(int argc, char* argv[]) |
| 909 | { |
| 910 | SetupEnvironment(); |
| 911 | |
| 912 | try { |
| 913 | int ret = AppInitRawTx(argc, argv); |
| 914 | if (ret != CONTINUE_EXECUTION) |
| 915 | return ret; |
| 916 | } |
| 917 | catch (const std::exception& e) { |
| 918 | PrintExceptionContinue(&e, "AppInitRawTx()"); |
| 919 | return EXIT_FAILURE; |
| 920 | } catch (...) { |
| 921 | PrintExceptionContinue(nullptr, "AppInitRawTx()"); |
| 922 | return EXIT_FAILURE; |
| 923 | } |
| 924 | |
| 925 | int ret = EXIT_FAILURE; |
| 926 | try { |
| 927 | ret = CommandLineRawTx(argc, argv); |
| 928 | } |
| 929 | catch (const std::exception& e) { |
| 930 | PrintExceptionContinue(&e, "CommandLineRawTx()"); |
| 931 | } catch (...) { |
| 932 | PrintExceptionContinue(nullptr, "CommandLineRawTx()"); |
| 933 | } |
| 934 | return ret; |
| 935 | } |
nothing calls this directly
no test coverage detected