Showing the changes to assignment-client/src/AssignmentClient.cpp (1 of 4 files). Show all
Unified · Split
| @@ -67,9 +67,20 @@ AssignmentClient::AssignmentClient(int &argc, char **argv) : · 66 unmodified lines | |||
| 67 | if (argumentIndex != -1) { | 67 | if (argumentIndex != -1) { |
| 68 | assignmentPool = argumentList[argumentIndex + 1]; | 68 | assignmentPool = argumentList[argumentIndex + 1]; |
| 69 | } | 69 | } |
| 70 | |||
| 70 | // setup our _requestAssignment member variable from the passed arguments | 71 | // setup our _requestAssignment member variable from the passed arguments |
| 71 | _requestAssignment = Assignment(Assignment::RequestCommand, requestAssignmentType, assignmentPool); | 72 | _requestAssignment = Assignment(Assignment::RequestCommand, requestAssignmentType, assignmentPool); |
| 72 | 73 | ||
| 74 | // check if we were passed a wallet UUID on the command line | ||
| 75 | // this would represent where the user running AC wants funds sent to | ||
| 76 | |||
| 77 | const QString ASSIGNMENT_WALLET_DESTINATION_ID_OPTION = "--wallet"; | ||
| 78 | if ((argumentIndex = argumentList.indexOf(ASSIGNMENT_WALLET_DESTINATION_ID_OPTION)) != -1) { | ||
| 79 | QUuid walletUUID = QString(argumentList[argumentIndex + 1]); | ||
| 80 | qDebug() << "The destination wallet UUID for credits is" << uuidStringWithoutCurlyBraces(walletUUID); | ||
| 81 | _requestAssignment.setWalletUUID(walletUUID); | ||
| 82 | } | ||
| 83 | |||
| 73 | // create a NodeList as an unassigned client | 84 | // create a NodeList as an unassigned client |
| 74 | NodeList* nodeList = NodeList::createInstance(NodeType::Unassigned); | 85 | NodeList* nodeList = NodeList::createInstance(NodeType::Unassigned); |
| 75 | 86 | ||