aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/string_tools.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-04-16Split epee/string_tools.h and encapsulate boost::lexical_castmj-xmr1-260/+40
2020-03-09Move hex->bin conversion to monero copyright files and with less includesLee Clagett1-31/+3
2020-03-09Remove temporary std::string creation in some hex->bin callsLee Clagett1-5/+6
2019-11-14epee: fix peer ids being truncated on displaymoneromooo-monero1-1/+3
2019-08-16epee: support unicode in parsed stringsmoneromooo-monero1-22/+2
2019-03-25epee: some more minor JSON parsing speedupmoneromooo-monero1-1/+3
2019-01-22Pruningmoneromooo-monero1-0/+9
The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
2019-01-16Merge pull request #5001Riccardo Spagni1-30/+0
a5ffc2d5 Remove boost::lexical_cast for uuid and unused uuid function (Lee Clagett)
2018-12-23Remove boost::lexical_cast for uuid and unused uuid functionLee Clagett1-30/+0
2018-12-08epee: avoid string allocation when parsing a pod from stringmoneromooo-monero1-36/+12
2018-11-15epee: speed up parse_hexstr_to_binbuff a littleHoward Chu1-15/+35
2018-08-16common: add a class to safely wrap mlock/munlockmoneromooo-monero1-0/+7
This class will allow mlocking small objects, of which there may be several per page. It adds refcounting so pages are only munlocked when the last object on that page munlocks.
2018-06-28epee.string_tools: add conversion between UTF-8 and UTF-16stoffu1-0/+35
2018-01-18Remove is_pod trait, and replace with is_standard_layout requirementLee Clagett1-1/+8
2017-12-18catch const exceptionsmoneromooo-monero1-1/+1
2017-12-16move includes around to lessen overall loadmoneromooo-monero1-7/+4
2017-10-15add string_tools::validate_hex()Jaquee1-0/+6
2017-08-23print peer id in 0 padded hex for consistencymoneromooo-monero1-0/+12
2017-05-27abstracted nework addressesmoneromooo-monero1-1/+1
All code which was using ip and port now uses a new IPv4 object, subclass of a new network_address class. This will allow easy addition of I2P addresses later (and also IPv6, etc). Both old style and new style peer lists are now sent in the P2P protocol, which is inefficient but allows peers using both codebases to talk to each other. This will be removed in the future. No other subclasses than IPv4 exist yet.
2017-04-25Removed some unused epee functionsLee Clagett1-356/+1
2017-04-11Improvements for epee binary to hex functions:Lee Clagett1-28/+5
- Performance improvements - Added `span` for zero-copy pointer+length arguments - Added `std::ostream` overload for direct writing to output buffers - Removal of unused `string_tools::buff_to_hex`
2017-03-18Removed boost/asio.hpp include from epee/string_tools.hLee Clagett1-23/+9
2016-10-31adding static_assert to pod functions in string toolsLee Clagett1-0/+4
2016-07-03allow peers without portmoneromooo-monero1-4/+9
The default port is then used
2016-06-19Require 64/16 characters for payment idsmoneromooo-monero1-1/+3
The default behavior for hex string parsing would allow the last digit to be made from a single hexadecimal character, which is correct, but we typically do not want that as it gets confusing and easy to not spot wrong input size.
2014-07-25move modified epee code to new classes, revert licensefluffypony1-25/+23
2014-07-23License updated to BSD 3-clausefluffypony1-23/+25
2014-05-250.8.8updatemydesktop1-0/+1
2014-03-20some fixesAntonio Juarez1-23/+31
2014-03-03moved all stuff to githubAntonio Juarez1-0/+736