about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Custom host name possible in tcoin --help nowlogin (tilde.club)2020-07-243-12/+27
| | | | | | | 1. Custom host name now possible in tcoin --help 2. Changes to ntcoin and ntcoin_openbsd_tildeinstitute to fix a bug in -d/--def. 3. Changes to ntcoin and ntcoin_openbsd_tildeinstitute to check for the correct number of arguments. 4. Changes to ntcoin and ntcoin_openbsd_tildeinstitute to include the host name as a preprocessor constant.
* Updated tcoin.cpp and pcoin.cpplogin (tilde.institute)2020-07-143-3/+6
| | | | | | 1. Removed unneeded WHOAMI_PATH preprocessor constant from pcoin.cpp. 2. Updated WHOAMI_PATH for tilde.institute to use "id -ru" to get the real uid on OpenBSD (/usr/bin/whoami doesn't get the real username on OpenBSD).
* Fixed bug in ntcoin_openbsd_tildeinstitutelogin (tilde.institute)2020-07-122-1/+1
| | | | Thanks to gbmor, I was able to replace base64 (fourmilab version) (which outputs \r\n and thus interferes with tr -d '\n') with gbase64 (the GNU coreutils version) which only outputs '\n'.
* Fixed README.md againlogin (tilde.institute)2020-07-111-1/+1
| | | | Removed references to realpath.c, which is no longer included. Added a few more requirements to the README.md for "ntcoin" to run.
* Added ntcoin_openbsd_tildeinstitutelogin (tilde.institute)2020-07-113-0/+227
| | | | I have created a version of ntcoin that works on tilde.institute's OpenBSD system. I suppose I have to make ntcoin better by using something like make and more POSIX-compliant.
* Removed realpath.clogin (tilde.institute)2020-07-112-279/+1
| | | | It wasn't useful.
* Added new file realpath.login (tilde.institute)2020-07-111-0/+278
|
* Updated README.mdlogin0002020-07-111-1/+2
| | | Updated README.md to include some dependencies for running "ntcoin".
* Updated README.mdlogin0002020-07-111-1/+1
| | | Changed first line of description to match Github's description.
* Fixed tcoin --help againlogin0002020-04-231-2/+2
| | | I forgot that base_amount held the number of centitildecoins, and that I had to use cout_formatted_amount() to actually send to stdout the number of tildecoins (with decimal places).
* Fixed a typo in void help(long long int)login0002020-04-231-1/+1
| | | I forgot to type "help(" and had just typed "void long long int base_amount)".
* Fixed a mistake in tcoin --helplogin0002020-04-231-3/+3
| | | Brought to my attention by ~mastergeek on tilde.team, the tcoin help incorrectly said that the number of tildecoins a user started with was 1000. It was actually the current base amount (unaltered by other sources like minercoin, tildebot or daily-adventure). Now, the help shows the right amount of starting coins.
* Fixed typo 'creata' to 'create'login2020-03-111-1/+1
| | | | Thanks to ~lickthecheese on tilde.town, tilde.team and other tildeboxes, I was informed of this typo: 'creata' -> 'create'
* Nobody's perfect: .n\n -> .\n\n in tcoin.cpp and pcoin.cpplogin (envs.net)2020-02-222-6/+6
| | | | | And I don't know how to clean my commits after having pushed them to remote origin/master. Maybe a Git stash and hard reset?
* Made a minor mistake in pcoin.cpp regarding symbolic constant ↵login (tilde.temm)2020-02-211-1/+1
| | | | | | | | | | 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.
* Implemented message-character limits in tcoin.cpp and pcoin.cpplogin (tilde.temm)2020-02-212-0/+60
| | | | | | | | | | | | | After having received a 10000-character transaction message from ~jan6@envs.net, I finally came around to implementing character limits on transaction messages. Previously, I was of the opinion that one should be able to send a movie as a transaction message if one so wished. I took inspiration for an appropriate character limit from Australia's NPP (New Payments Platform), which has a 280-character limit on transaction messages. I strongly suspect this limit came from Twitter's analysis of tweets in different languages and Twitter research that concluded that a 280-character tweet was the appropriate length of tweet. A transaction message is supposedly like a tweet with some money sent along with it.
* Added silentsend with message case to pcoin.cpplogin (tilde.temm)2020-02-211-0/+15
| | | | | | | | I don't know how I missed this, because I remember coming across this deficiency before. I had missed a case, where silentsend is requested but with a message. Previously, it would fail without any message to stdout or stderr (only a return code). Now, silentsend with a message works even on pcoin.cpp (tcoin.cpp already had this change).
* Merge branch 'master' of https://github.com/login000/tcoinlogin (tilde.temm)2020-02-212-5/+15
|\ | | | | | | | | I made a mistake. I should have done this before making my commits. That's the only reason why this merge is necessary.
| * Many instances of \u23CE were left unmodified, so those were changed toologin (envs.net)2020-02-222-5/+15
| | | | | | | | | | | | I had forgotten to change \u23CE to <new-line> and introduce a check for <vertical-tab> in many many places in tcoin.cpp and pcoin.cpp. I should probably put these things in some kind of function so I don't repeat myself. I'll probably do that in a future commit.
* | Some more errors (specifically, fatal errors) were taken out into symbolic ↵login (tilde.temm)2020-02-212-20/+35
|/ | | | | | constants I had forgotten to handle the fatal errors and take the error numbers out into symbolic constants. I have now done that in tcoin.cpp and pcoin.cpp
* Separated error codes out into symbolic constants in tcoin.cpp and pcoin.cpplogin (envs.net)2020-02-222-60/+110
| | | | This doesn't change functionality. It is simply a refactor that separates error codes out into symbolic constants in tcoin.cpp and pcoin.cpp.
* Replacing newlines and vertical tabs in messages with <new-line> and ↵login (envs.net)2020-02-213-4/+8
| | | | | | <vertical-tab> Newlines and vertical tabs in messages are replaced with <new-line> and <vertical-tab> to prevent transaction spoofing inside a message.
* Updated LICENCE year to 2020login0002020-02-191-1/+1
|
* Modified ntcoin help to be clearerlogin (envs.net)2020-02-111-1/+1
| | | | ntcoin's help said "tcoin subdirectories" for the first path argument. It was not clear whether this argument should include "/tcoin" or not. Now, this has been made clearer so that it means the 'tcoin' directory itself.
* Fixed typo in ntcoinlogin (envs.net)2020-02-111-1/+1
| | | | Fixed a typographical error in ntcoin (there was an extra ').
* Ensuring verifiability of build by copying tcoin_defs.cpp and pcoin_defs.cpplogin2020-02-091-2/+4
| | | | To ensure that builds are verifiable, tcoin_defs.cpp and pcoin_defs.cpp are copied from tcoin/bin to ~/bin (i.e., to the same directory as the 'tcoin' and 'pcoin' executables)
* Minor grammatical correctionlogin2020-02-041-1/+1
| | | | Just added a period/fullstop to the message in the show_balances() function.
* Deleting swap fileslogin (tilde.club)2019-11-252-0/+0
| | | | Well, that was embarrassing. My nano tcoin.cpp and pcoin.cpp swap files got uploaded!
* Improving messaging around messageslogin2019-11-264-9/+96
| | | | The title is confusing, sorry. "No messages found" is shown in tcoin and pcoin when no messages are found (and this no-message message has one newline above and one newline below it instead of two newlines above it as before).
* Minor correction to READMElogin0002019-11-171-1/+1
| | | Minor correction to README.md, where the phrase "Program users" was replaced with "Program accounts" in the heading.
* Updated README with getting-started instructionslogin0002019-11-171-0/+15
| | | Updated README.md to provide instructions to get started easily, including program-account creation (which was not well-documented previously).
* Merge branch 'master' of https://github.com/login000/tcoinlogin (tilde.club)2019-11-151-1/+1
|\
| * Fixed newline extra gap when running 'tcoin init'login (tilde.temm)2019-11-151-5/+6
| | | | | | | | Just a minor aesthetic fix so that there is even newline gaps between statements when running 'tcoin init'.
* | Fixed newline extra gap when running 'tcoin init'login (tilde.temm)2019-11-151-4/+5
|/ | | | Just a minor aesthetic fix so that there is even newline gaps between statements when running 'tcoin init'.
* Fixed small error in ntcoinlogin (tilde.temm)2019-11-151-2/+2
| | | | A small error was present in ntcoin, where a chmod on a file that may not exist was blocking the execution of future commands due to failing. Now, the command is always set to succeed.
* Fixed symlinking bug in ntcoin regarding compile_(t/p)coin and edit_(t/p)coinlogin2019-11-151-2/+4
| | | | Fixed a bug in ntcoin where the symlinks from tcoin/bin/compile_tcoin and tcoin/bin/edit_tcoin to ~/bin/compile_tcoin and ~/bin/edit_tcoin are made properly. The previous command did something else.
* Added check for number of basecoins <n> in ntcoinlogin (tilde.club)2019-11-151-0/+5
| | | | ntcoin would accept no number of basecoins <n>. Now, there is a check added near the beginning for <n> existing and being a non-negative integer.
* Bugfix in ntcoin to fix error in compile_pcoinlogin2019-11-151-1/+1
| | | | ntcoin had an error in the way it created compile_pcoin. compile_pcoin had a missing \ at the end of the line (for line continuation). This bug has now been fixed.
* Improving the messaging around sending transaction messageslogin2019-11-152-36/+96
| | | | | | | | | | | Several changes were made that were difficult to separate into separate commits. Since features are directly committed to master, there are no feature branches. The high-level list of changes is as follows: 1. Fixed a bug in pcoin where using "pcoin send -s" for silentsend would forget to add the transaction message that provides a record of who transferred how much and when, even if there is no custom message appended (send_message(.) was not called). 2. Improved the help text to make it clear that sending messages could be done using silentsend too. 3. In several cases in tcoin and pcoin, certain ways of doing a silentsend would still send with verbose output because, by mistake, the option passed to send_message(.) was not changed from "verbose" to "silent". 4. In pcoin, there was the case of 6 arguments missing, where one does pcoin send -s <user> <amount> <message>. This case was handled in tcoin but not pcoin. Now, it is handled in pcoin too. 5. Now, when a custom message is sent in tcoin or pcoin, an additional text confirming the successful sending of the custom message as distinct from the one confirming the sending of the coins is displayed to the user.
* Optimisations to ntcoin's pcoin_defs.cpp and tcoin_defs.cpplogin2019-11-141-3/+0
| | | | pcoin_defs.cpp and tcoin_defs.cpp contained definitions which were used in one but not the other. ntcoin now only includes those definitions in either which are used by the respective source file (and no other definitions).
* Updated the scrypt file included here to use the latest libcrypto.so (so far)login2019-11-141-0/+0
| | | | scrypt, the executable, uses libcrypto.so, which was updated from 1.0.0 to a more recent version (most likely 1.1). Thus, it had to be recompiled. The new version is included by default now in this directory.
* Increasing reliability of edit_tcoin and edit_pcoin as defined in ntcoin~login@aussies.space2019-11-141-2/+2
| | | | ntcoin creates the scripts edit_tcoin and edit_pcoin. Now, instead of assuming 'nano' is included at /bin/nano, it uses `which nano` to determine where 'nano' is included in the current system. Quotation marks are used around 'nano''s file argument to increase robustness around spaces in file paths.
* Included quotation marks in compile_tcoin and compile_pcoin generated by ntcoin~login@aussies.space2019-11-141-2/+2
| | | | | | In order to be robust against spaces present in the directories passed to ntcoin, quotes around the additional directory to search for includes (g++ -I) and the output file directory specified in g++ are now included in ntcoin. ntcoin generates the compile_tcoin and compile_pcoin scripts.
* KROWBAR_OFF, DA_OFF and MINERCOIN_OFF are now treated as config definitions~login@aussies.space2019-11-143-11/+12
| | | | | | The KROWBAR_OFF, DA_OFF and MINERCOIN_OFF symbolic constants are now included in tcoin_defs.cpp and pcoin_defs.cpp and have been removed from the main source files, tcoin.cpp and pcoin.cpp. ntcoin has been modified to include #define KROWBAR_OFF, #define DA_OFF and #define MINERCOIN_OFF in pcoin_defs.cpp and tcoin_defs.cpp by default, since those three features are only (as of now) available on the tilde.town server and on no other server.
* Bugfix to disable minercoin-score addition in pcoin.cpp~login@aussies.space2019-11-141-1/+1
| | | | | | In pcoin.cpp, minercoin-score addition can be disabled by writing #define MINERCOIN_OFF near the symbolic-constant definitions. However, in one place, a check for the absence of the DA_OFF symbolic constant was being made instead of MINERCOIN_OFF. This is now fixed.
* Merge branch 'master' of https://github.com/login000/tcoin~login@aussies.space2019-11-141-0/+3
|\
| * tildecoin-check file includedlogin (tilde.club)2019-11-131-0/+3
| | | | | | | | tcc (which stands for 'tildecoin check'), simply adds all the balances and prints the sum. This can be used to check that the amounts sent and amounts received are equal.
* | Creates separate definition files for tcoin.cpp and pcoin.cpp~login@aussies.space2019-11-143-46/+46
|/ | | | | | I realised that different tilde servers will have different definitions but the same code otherwise, and 'git push' and 'git pull' to update the code on other servers would override those definitions. Thus, the tcoin.cpp and pcoin.cpp files now look the same for all tildeservers and have a #include "tcoin_defs.cpp" and #include "pcoin_defs.cpp" respectively. The configuration, which is in the form of #define symbolic constants, is stored in tcoin/bin/tcoin_defs.cpp and tcoin/bin/pcoin_defs.cpp. ntcoin is modified to create these two files with the right definitions. ntcoin is also modified so that compile_tcoin and compile_pcoin now include the -I option, which instructs the compiler to look for includes in additional directories, in this case, tcoin/bin .
* Merge branch 'master' of https://github.com/login000/tcoin~login@aussies.space2019-10-070-0/+0
|\
| * Bug fix to ntcoin~login@aussies.space2019-10-031-11/+19
| | | | | | | | | | | | Previously, the executables 'tcoin' and 'pcoin', which had setuid set, were stored in tcoin/bin/*. However, the "tcoin" directory is restricted, so any executables inside it are inaccessible to users. To fix this, the compile_tcoin and compile_pcoin scripts have been modified to store the executables in a third specified directory, called the <bin dir> in the help. <bin dir> will be accessible to all users. The symbolic constants/preprocessor directives have also been changed to reflect the updated paths.