History

pass wallet UUID from AC to DS, cleanup noisy timer

Stephen Birarda committed 12 years ago

Commit 8a1fdf31 parent 899c89e4 files · +47 −16Browse files

Showing the changes to assignment-client/src/AssignmentClient.cpp (1 of 4 files). Show all

Unified · Split

assignment-client/src/AssignmentClient.cpp+11−0
@@ -67,9 +67,20 @@ AssignmentClient::AssignmentClient(int &argc, char **argv) : · 66 unmodified lines
6767 if (argumentIndex != -1) {
6868 assignmentPool = argumentList[argumentIndex + 1];
6969 }
70+
7071 // setup our _requestAssignment member variable from the passed arguments
7172 _requestAssignment = Assignment(Assignment::RequestCommand, requestAssignmentType, assignmentPool);
7273
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+
7384 // create a NodeList as an unassigned client
7485 NodeList* nodeList = NodeList::createInstance(NodeType::Unassigned);
7586