| 841 | } |
| 842 | |
| 843 | int main(int argc, char* argv[]) |
| 844 | { |
| 845 | SetupEnvironment(); |
| 846 | |
| 847 | try { |
| 848 | int ret = AppInitRawTx(argc, argv); |
| 849 | if (ret != CONTINUE_EXECUTION) |
| 850 | return ret; |
| 851 | } |
| 852 | catch (const std::exception& e) { |
| 853 | PrintExceptionContinue(&e, "AppInitRawTx()"); |
| 854 | return EXIT_FAILURE; |
| 855 | } catch (...) { |
| 856 | PrintExceptionContinue(nullptr, "AppInitRawTx()"); |
| 857 | return EXIT_FAILURE; |
| 858 | } |
| 859 | |
| 860 | int ret = EXIT_FAILURE; |
| 861 | try { |
| 862 | ret = CommandLineRawTx(argc, argv); |
| 863 | } |
| 864 | catch (const std::exception& e) { |
| 865 | PrintExceptionContinue(&e, "CommandLineRawTx()"); |
| 866 | } catch (...) { |
| 867 | PrintExceptionContinue(nullptr, "CommandLineRawTx()"); |
| 868 | } |
| 869 | return ret; |
| 870 | } |
nothing calls this directly
no test coverage detected