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
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 arguments71 // 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 client84 // create a NodeList as an unassigned client
74 NodeList* nodeList = NodeList::createInstance(NodeType::Unassigned);85 NodeList* nodeList = NodeList::createInstance(NodeType::Unassigned);
75 86