MCPcopy Create free account
hub / github.com/ElementsProject/elements / main

Function main

src/bitcoin-tx.cpp:908–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

906}
907
908int 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}

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