Commit Graph

131 Commits

Author SHA1 Message Date
login c0fc6ecbd6 Fixed bug in thousands separator so that it's not used for messages
The thousands separator was being used for messages and thus became incompatible with pcoin. Now, the thousands separator is only used to display amounts and not stored in the message files for tcoin/pcoin
2023-11-27 13:25:47 +00:00
login 1885cebc20 Removing thousands separator whenever the output of tcoin is piped
Whenever the output of tcoin is piped, the thousands separator will not show up now.
2023-11-25 19:38:14 +00:00
login 478534343c Fixed bug in thousands separator
When the input is 0, the thousands-separator function was sending nothing. Now, it sends 0.
2023-11-23 07:54:57 +00:00
login 5128e4408d Fix to thousands separator function
The thousands separator function used to add leading zeros to numbers less than three digits. That has been fixed now.
2023-11-22 09:54:04 +00:00
login ec88d61934 Added thousands separator to tcoin balance display
Added thousands separators to tcoin balance display to make large balances easier to read.
2023-11-19 07:34:42 +00:00
login 95d61933b5 Added the ability to block a user from running tcoin
This was added to prevent tcoin from being run by certain users
2023-11-04 11:07:13 +00:00
login eb23c73f2a Added the paramters TCOIN_ERR_CONTACT_EMAIL and TCOIN_PASS_RESET_CONTACT_EMAIL to tilde.guru and tilde.institute's ntcoin initialisation scripts 2023-07-23 11:30:29 +00:00
login 77683383eb Adding preprocessor directives TCOIN_ERR_CONTACT_EMAIL and TCOIN_PASS_RESET_CONTACT_EMAIL to parameterise contact details
Parameterised contact details via TCOIN_ERR_CONTACT_EMAIL and TCOIN_PASS_RESET_CONTACT_EMAIL will allow them to be customised for tilde.green's tcoin
2023-07-23 10:53:30 +00:00
login c1a67ff9b8 Fixing npcoin to initialise _MESSAGES.txt with "" instead of "0"
npcoin should initialise _MESSAGES.txt with "" instead of "0"
2023-06-18 17:59:36 +00:00
login f5a91acd55 locked users should not get krowbar, da or minerbot balances
locked users should not get krowbar, da or minerbot balances
2023-06-17 18:20:47 +00:00
login b0a8b96345 Negative krowbar balances for pcoin
Negative krowbar balances for pcoin too
2023-06-17 16:28:11 +00:00
login 281df6a9f1 Allowing krowbar balance to be negative
Allowing krowbar balance to be negative
2023-06-17 16:24:45 +00:00
login (tilde.temm) 4d5a62ed30 Weakened memory-hardness of scrypt
Weakened memory-hardness of scrypt to cater to memory requirements of tilde.team
2023-01-03 14:00:00 +00:00
login000 6c68da1052
Updated README.md (new pcoin_keys directory)
Updated README.md to correct the documentation for how a new program account should be created.
2022-07-03 16:36:53 +10:00
login000 a4bd4f629e
Update LICENCE year to 2022 2022-06-27 18:21:56 +10:00
login000 3b77d3336e
Merge pull request #6 from Juliaria08/master
Close parenthesis properly
2022-06-27 17:15:34 +10:00
Julian Marcos 0726265256
Close parenthesis properly
As seems login forgot to close a parenthesis in the manual recovery
messages, and also appears like I am hunting for errors in tcoin :)
I have just changed the instances of the manual recovery messages from
"login@tilde.town (town-only) or login@tilde.team (internet wide [...]"
to:
"login@tilde.town (town-only) or login@tilde.team (internet wide) [...]"
2022-06-27 08:54:19 +02:00
login000 27654b65c5
Merge pull request #5 from Juliaria08/master
Maken editors generic in edit_program
2022-06-25 00:12:48 +10:00
Julian Marcos e70cf7ba33
Maken editors generic in edit_program
I have just maken `which nano` to be \$EDITOR
2022-06-24 13:58:56 +02:00
login e50751da39 Try-catch blocks in those cases where fork() fails
I've tried to add try-catch blocks in those cases where fork()s fail.
It doesn't quite work well though.
2022-05-18 17:21:32 +00:00
login cad83e8167 Checking for empty key in pcoin
pcoin now checks if an empty key was entered, and sends a different error message and error code for empty key as compared to incorrect key.
2022-05-14 20:04:32 +00:00
login 82d02462de Fixes to how total balance are calculated
I can't believe I made this mistake, but I doublecounted minercoins, so now that doesn't happen.
2022-03-12 05:38:12 +00:00
login a7e69a46df Adding jmjl's 'ju coin' to the balance
Adding jmjl's 'ju coin' (which is a copy of tildebot) to the tcoin and pcoin balance
2022-03-11 13:36:07 +00:00
login 397d299c55 pcoin add_internal_balance now doesn't allow you to add to your own internal balance
pcoin -aib now doesn't allow you to add to your own internal balance. in the future, pcoin -ib <your own program name> will allow you to see what your 'net balance' is, i.e., pcoin -b minus pcoin -to
2022-01-28 13:46:46 +00:00
login 4fad62d818 Fix to pcoin's silentsend
Thanks to ~jmjl, found a bug where pcoin's silentsend was sending the wrong message even though the send itself was correct.
2022-01-26 17:09:27 +00:00
login c616b71eb1 Changed tildescores file location
Due to krowbar not being here and krowbar's tildebot not rejoining, shifting tildescores file location to jmjl's tildescores location. jmjl is running krobwar's tildebot with the name 'ju' in tilde.town's internal irc's #bots channel
2022-01-23 10:19:12 +00:00
login 49f8da3cb7 Added 'pcoin name' or 'pcoin -n' to get the name on the account
This is expected to help a pcoin escrow program confirm that a key supplied to it is that of the right pcoin account by checking what the output of 'pcoin name' is. In the future, it may be expected that 'view key', 'spend key' and 'transfer key' would be three different keys that would split power over the pcoin account. And each of the previously mentioned 'keys' could be m-of-n keys. Maybe some kind of social recovery feature could also be added (where other users confirm who you are so you can get your account back, but you nominate them as your 'social recovery circle' beforehand.
2022-01-22 13:39:32 +00:00
login c0d1761053 made changes to be compatible with minerbot's new "username" format vs. the old "~username" format
Made this change so that new "!minercoin ask" awarded minercoins will still show up in tcoin without losing old !minercoins awarded.

In other words, the inflation will continue until morale improves.
2021-12-12 13:40:13 +00:00
login 337ce90729 New pcoin function to change pcoin keys
This will allow pcoin accounts to be transferred from one person to another
2021-11-20 11:24:07 +00:00
login (tilde.temm) b9dbe4b703 Fixes to permissions set by ntcoin
ntcoin creates a new tcoin directory structure, and copies relevant files. Some permissions were set wrongly by ntcoin and its variants. Those have been fixed now.
2021-10-18 06:16:03 +00:00
login b0de38eafe pcoin_keys fixed
Thanks to ~jmjl, I was able to find that pcoin_keys didn't work. To fix it, tcoin uses sneaky magic but with stdin isntead of an argument, and a new library imported called popen2, that lets me send both stdin and receive stdout, to successfully get "ls <path to the pcoin_keys directory>" to work (it execl's another instance of the tcoin comand so that it runs under setuid instead of as the original user who ran it.
2021-10-17 16:25:53 +00:00
login bd53b1ec0c Simple mistake, !a || !b is wrong, !a && !b is correct
Simple logical mistake in checking for the TILDEGURU flag has been corrected in tcoin.cpp
2021-09-30 15:23:39 +00:00
login 305ab2bd8c Fixes for tilde.guru to tcoin.cpp and ntcoin_freebsd_tildeguru
/usr/bin/whoami doesn't give the euid's username, but the uid's on FreeBSD, so did the same thing I did for tilde.institute, but for tilde.guru too and introduced a new flag for it, TILDEGURU.
2021-09-30 15:17:52 +00:00
login a6d0ab3551 Update to ntcoin_freebsd_tildeguru to chgrp in compile_tcoin and compile_pcoin
tilde.guru doesn't have the default group of new files be the 'tilde' group, so the group should be manually changed in the compile_tcoin and compile_pcoin scripts. ntcoin_freebsd_tildeguru creates those scripts, so the changes have been made in that file.
2021-09-30 15:06:50 +00:00
login 5b06f2f2dd FreeBSD-specific compilation of scrypt was required
scrypt_freebsd is the FreeBSD-compiled version of scrypt, included here.
2021-09-25 01:52:28 +00:00
login 2707546ee6 Typo fix in ntcoin_freebsd_tildeguru
/ missing from /usr/local/bin/bash in one place.
2021-09-24 21:45:09 +00:00
login e40da251c6 Made ntcoin_freebsd_tildeguru
Freebsd version of ntcoin, specifically targetting tilde.guru but could work on other default FreeBSD configs.
2021-09-24 21:23:47 +00:00
login000 d1e38c0a2f
Updated LICENSE year to 2021 2021-09-25 04:51:46 +10:00
login bc268e30f1 Update the way pcoin_keys works to use a folder/directory instead of a single file
This is preparing tcoin/pcoin for the automatic registration of program accounts.
Eventually, I want program accounts to be tradeable by there being a way to regenerate a new key.
So, send the current key to whomever you want the program account to be used by, then the new owner regenerates the key
to complete the transfer. The old owner will no longer be able to use the old key to operate the new account. The key is
long and the key generation random enough for key collisions to be virtually impossible.
2021-06-30 16:18:51 +00:00
login (__tcoin) (tilde.my.to) 2e22b08ff7 Better way to handle 5 arguments
Improved the way 5 arguments were handled, where the intention was to
send a message along with the amount and receiver, with a new error code
and a slightly modified error message.
2021-02-03 13:44:07 +00:00
login (__tcoin) (tilde.my.to) 0e3853cdf5 Fixed an unhandled case of too many arguments in 'tcoin send'
Fixed a case of too many arguments in 'tcoin send' that wasn't handled.
Thank you for finding this ~julian.
2021-02-03 13:32:18 +00:00
login (__tcoin) (tilde.my.to) 57bb322f7b More buffer overflows fixed
There were many more places where I had hardcoded values, but
should have used strlen() or sizeof(). I have gone through
tcoin.cpp and pcoin.cpp, found those, and fixed them.

Hopefully, this is all of them.
2021-01-31 19:11:32 +00:00
login (__tcoin) (tilde.my.to) 982027f93e Fixed buffer overflow because of hardcoded lengths
In user_has_initialised(..), the path lengths were hardcoded.
This has now been changed to being calculated via sizeof().

In get_file_value and add_file_value, strlen() was used. This has
also been replaced with sizeof().
2021-01-31 16:53:36 +00:00
login 7797356119 Merge branch 'master' of https://github.com/login000/tcoin
Merging changes from the master branch because I forgot to do git pull
2021-01-06 13:13:37 +00:00
login 030a8552db Added comment to tcoin.cpp
Added comment to tcoin.cpp to send the actual error message to
stderr when running exit_program(err_no).
2021-01-06 13:05:23 +00:00
login 6ce0b0687f scrypt binary file's permissions were modified
The scrypt binary file's permissions were modified on tilde.town.
2021-01-06 13:01:45 +00:00
login (thunix.net) 78e039d246 Updated README.md with the correct instructions to use ntcoin
I had updated the 'ntcoin' script but had forgotten to change README.md.
2020-12-22 05:25:06 -05:00
login (tilde.institute) 51a0f31676 Refactored send function in tcoin and pcoin
Refactored the send function in tcoin and pcoin, and in the process,
fixed a bug in pcoin's silentsend function.
2020-10-09 18:44:41 -04:00
login000 e3cd47a6c7
Merge pull request #3 from MineRobber9000/master
Remove outdated comment
2020-10-04 19:30:35 +11:00
Robert Miles 8c098d8abf
Remove outdated comment
The comment referred to using || instead of &&, despite the fact that the code now uses &&.
2020-10-04 03:10:35 -04:00