From f4e29c07930ba87ee5f266860623b56ece0bf470 Mon Sep 17 00:00:00 2001 From: "login (tilde.temm)" Date: Fri, 21 Feb 2020 23:33:26 -0500 Subject: Made a minor mistake in pcoin.cpp regarding symbolic constant TCOIN_MSG_LENGTH_LIMIT I made a switch from TCOIN_MSG_LENGTH to TCOIN_MSG_LENGTH_LIMIT for the symbolic constant representing the maximum number of characters of a transaction message. I changed all instances of the symbolic constant to this new name in tcoin.cpp, but forgot to do it in one instance in pcoin.cpp. This goes on to show that I need to develop tests for tcoin and pcoin, as well as start using getopt from util-linux for proper options handling. --- pcoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcoin.cpp b/pcoin.cpp index a7d9baa..e1c2d5d 100644 --- a/pcoin.cpp +++ b/pcoin.cpp @@ -52,7 +52,7 @@ #define MINERCOIN_CMD_POST_USERNAME "\": )[[:digit:]]+' /home/minerobber/Code/minerbot/minercoin.json" #endif #define USERNAME_LENGTH_LIMIT 25 -#define TCOIN_MSG_LENGTH 280 +#define TCOIN_MSG_LENGTH_LIMIT 280 #define ERR_MAIN_SEND_TOO_FEW_ARGS 6 #define ERR_MAIN_SEND_TOO_MANY_ARGS 7 -- cgit