MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / main

Function main

src/bitcoin-tx.cpp:843–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843int 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}

Callers

nothing calls this directly

Calls 4

SetupEnvironmentFunction · 0.85
AppInitRawTxFunction · 0.85
PrintExceptionContinueFunction · 0.85
CommandLineRawTxFunction · 0.85

Tested by

no test coverage detected