aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-12-17wallet: add multisig key generationmoneromooo-monero2-0/+8
Scheme by luigi1111
2017-12-16move includes around to lessen overall loadmoneromooo-monero4-2/+43
2017-12-16Merge pull request #2860Riccardo Spagni2-4/+10
3dffe71b new wipeable_string class to replace std::string passphrases (moneromooo-monero) 7a2a5741 utils: initialize easylogging++ in on_startup (moneromooo-monero) 54950829 use memwipe in a few relevant places (moneromooo-monero) 000666ff add a memwipe function (moneromooo-monero)
2017-12-08add bulletproofs from v7 on testnetmoneromooo-monero1-4/+4
2017-12-08integrate bulletproofs into moneromoneromooo-monero1-0/+21
2017-11-27new wipeable_string class to replace std::string passphrasesmoneromooo-monero2-4/+10
2017-11-25Merge pull request #2784Riccardo Spagni2-4/+4
54a4c1cb cryptonote: do not overwrite const data (moneromooo-monero)
2017-11-25Merge pull request #2792Riccardo Spagni1-5/+107
47c0948a Implement missing miner functions on FreeBSD (Vasil Dimov) fdb5bd16 Remove unused variables and fix typos in comments (Vasil Dimov)
2017-11-22cryptonote: do not overwrite const datamoneromooo-monero2-4/+4
2017-11-14remove "using namespace std" from headersmoneromooo-monero1-0/+2
It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
2017-11-11Implement missing miner functions on FreeBSDVasil Dimov1-1/+105
cryptonote::miner::get_system_times(): Fetch the system's total and idle time using sysctl kern.cp_time. cryptonote::miner::get_process_time(): Use the same implementation as Linux and OSX, the times(3) function conforms to POSIX.1 and is available on FreeBSD. cryptonote::miner::on_battery_power(): Try to fetch the battery status using sysctl hw.acpi.acline. If that fails (if ACPI is not enabled on the system), then try querying /dev/apm.
2017-11-11Remove unused variables and fix typos in commentsVasil Dimov1-4/+2
2017-10-15Merge pull request #2597Riccardo Spagni1-2/+1
c4136134 miner: always update block template when starting (moneromooo-monero)
2017-10-15refactor cryptonote_basic::add_tx_pub_key_to_extraJaquee2-3/+15
2017-10-07miner: always update block template when startingmoneromooo-monero1-2/+1
This fixes using the previous address when starting mining, then stopping and restarting with a different address
2017-10-07Subaddresseskenshi8410-84/+333
2017-09-27connection_context: initialize m_callback_request_count to 0moneromooo-monero1-1/+1
2017-09-25fix typo in basic and core CMakeLists.txtmoneromooo-monero1-1/+1
2017-09-25move checkpoints in a separate librarymoneromooo-monero7-522/+3
2017-09-25Merge pull request #2257Riccardo Spagni2-0/+19
651baaec wallet: add encrypted seed functionality (moneromooo-monero)
2017-09-20Merge pull request #2410Riccardo Spagni1-13/+0
20256b7c Fix AC power supply detection on Linux (Guillaume LE VAILLANT)
2017-09-12wallet: add encrypted seed functionalitymoneromooo-monero2-0/+19
This uses luigi1111's CN_Add method. See https://xmr.llcoins.net for details.
2017-09-08Fix AC power supply detection on LinuxGuillaume LE VAILLANT1-13/+0
The /sys/class/power_supply/*/present file usually does not exist for AC power supplies.
2017-09-06update hardcoded checkpointsRiccardo Spagni1-0/+2
2017-08-17Merge pull request #2303Riccardo Spagni1-0/+3
5a283078 cryptonote_protocol: large block sync size before v4 (moneromooo-monero) 7b747607 cryptonote_protocol: kick idle synchronizing peers (moneromooo-monero)
2017-08-16cryptonote_protocol: kick idle synchronizing peersmoneromooo-monero1-0/+3
In case they dropped off downloading for any reason, they'll get sent to download again.
2017-08-15befor -> beforeNano Akron1-4/+4
Really unique yet consistent spelling mistake
2017-08-15Merge pull request #2283Riccardo Spagni1-1/+1
d1f204d6 miner: set thread name before logging (moneromooo-monero)
2017-08-15Merge pull request #2264Riccardo Spagni1-1/+1
980e476c cryptonote_basic: fix silly CLANG warning about not emitting function (moneromooo-monero)
2017-08-15Merge pull request #2245Riccardo Spagni1-2/+2
c8640a3d difficulty: fix misleading comment (Guillaume LE VAILLANT)
2017-08-15Merge pull request #2232Riccardo Spagni1-1/+1
87b5ede9 miner: fix ignoring battery from command line (moneromooo-monero)
2017-08-12protocol: fix reorgs while syncingmoneromooo-monero1-1/+3
2017-08-12miner: set thread name before loggingmoneromooo-monero1-1/+1
2017-08-09connection_context: initialize statemoneromooo-monero1-0/+1
Why this was initialized properly before I have no idea, but it is not anymore. Fix it, which fixes syncing in release mode.
2017-08-08cryptonote_basic: fix silly CLANG warning about not emitting functionmoneromooo-monero1-1/+1
2017-08-07Merge pull request #2149Riccardo Spagni1-0/+1
158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
2017-08-07Merge pull request #2234Riccardo Spagni1-1/+0
214fd81e some include cleanup (moneromooo-monero)
2017-08-07Merge pull request #2210Riccardo Spagni2-6/+15
cb0b5594 Move OpenAlias console input back from libs (moneromooo-monero)
2017-08-07Merge pull request #2147Riccardo Spagni1-26/+86
94717021 fix on_battery_power for linux (Ryan Mehta)
2017-08-07cryptonote_protocol_handler: sync speedupmoneromooo-monero1-0/+1
A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
2017-08-02difficulty: fix misleading commentGuillaume LE VAILLANT1-2/+2
2017-07-31some include cleanupmoneromooo-monero1-1/+0
2017-07-31miner: fix ignoring battery from command linemoneromooo-monero1-1/+1
2017-07-27Move OpenAlias console input back from libsmoneromooo-monero2-6/+15
Library code should definitely not ask for console input unless it's clearly an input function. Delegating the user interaction part to the caller means it can now be used by a GUI, or have a decision algorithm better adapted to a particular caller.
2017-07-12miner: fix background mining options parsingmoneromooo-monero1-2/+2
They were set as uint8_t, which boost was apparently treating as a character type, rather than a numeric type
2017-07-06fix on_battery_power for linuxRyan Mehta1-26/+86
fix ac/battery linux
2017-06-08Add OSX background miningjethro2-1/+43
Implements miner::get_system_times, miner::get_process_time and miner::on_battery_power for OSX so that background mining works on OSX.
2017-05-23changed crypto to cncrypto so it generated libcncryptoGentian1-1/+1
fix a cmakelist
2017-04-24Merge pull request #1938Riccardo Spagni2-2/+4
bff90264 Add expected total reward to RPC "getblocktemplate". Only works from V5 fork onward - returns 0 before that block. (assylias)
2017-04-19Add expected total reward to RPC "getblocktemplate".assylias2-2/+4
Only works from V5 fork onward - returns 0 before that block.
2017-04-11Simplified the implementation and features of spanLee Clagett1-7/+22
2017-04-11Improvements for epee binary to hex functions:Lee Clagett2-17/+8
- 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-04-11Merge pull request #1955Riccardo Spagni2-7/+1
5b632468 core: fix blob size cache, and reenable hash and blob size caches (moneromooo-monero)
2017-04-11Merge pull request #1946Riccardo Spagni1-0/+2
a38343bf miner: add a debug log in pause and resume (moneromooo-monero)
2017-04-03core: fix blob size cache, and reenable hash and blob size cachesmoneromooo-monero2-7/+1
2017-03-31miner: add a debug log in pause and resumemoneromooo-monero1-0/+2
2017-03-28Add other possible paths of AC power status file on LinuxGuillaume LE VAILLANT1-3/+5
2017-03-26core: disable tx/block hash cachemoneromooo-monero1-0/+6
Looks like it doesn't work on win64
2017-03-25core: avoid possible reordering bugs wth tx/bloch hash cachemoneromooo-monero3-28/+42
2017-03-23core: cache tx and block hashes in the respective classesmoneromooo-monero4-2/+114
An idea from smooth
2017-03-17wallet-rpc: enable openaliasstoffu2-2/+6
2017-03-15Add intervening v5 fork for increased min block sizemoneromooo-monero2-1/+11
Minimum mixin 4 and enforced ringct is moved from v5 to v6. v5 is now used for an increased minimum block size (from 60000 to 300000) to cater for larger typical/minimum transaction size. The fee algorithm is also changed to decrease the base per kB fee, and add a cheap tier for those transactions which we do not care if they get delayed (or even included in a block).
2017-03-10fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi843-0/+684
BlockchainDB functions virtual again to avoid missing symbols error
2017-03-05format_utils: fix typo in assert messagelethos31-2/+2
Fix two small typos as mentioned by reddit user nthterm.
2017-03-03Merge pull request #1826Riccardo Spagni2-9/+60
2c468dd4 allow user I/O in millinero, micronero, nanonero, piconero (moneromooo-monero)
2017-03-03Merge pull request #1820Riccardo Spagni3-0/+33
7a44f38a Add support for the wallet to refresh pruned blocks (moneromooo-monero) da18898f ringct: do not require range proof in decodeRct/decodeRctSimple (moneromooo-monero) b49c6ab4 rpc: add a default category for daemon rpc (moneromooo-monero) f113b92b core: add functions to serialize base tx info (moneromooo-monero) 6fd4b827 node_rpc_proxy: allow caching daemon RPC version (moneromooo-monero) b5c74e40 wallet: invalidate node proxy cache when reconnecting (moneromooo-monero)
2017-03-02allow user I/O in millinero, micronero, nanonero, piconeromoneromooo-monero2-9/+60
2017-02-27core: add functions to serialize base tx infomoneromooo-monero3-0/+33
That is, information without signatures (for v1) nor range proofs and MGs (for v2)
2017-02-25core: move hardfork back to cryptonote_coremoneromooo-monero3-685/+2
should fix a cross dependency betewen cryptonote_basic and blockchain_db
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni22-22/+22
2017-02-21Merge pull request #1731Riccardo Spagni1-3/+3
a427235e core: add a missing newline on a string to be logged (moneromooo-monero) b6a2230e unit_tests: fix minor blockchain_db regression (moneromooo-monero) c488eca5 hardfork: tone down some logs (moneromooo-monero)
2017-02-21Merge pull request #1733Riccardo Spagni1-4/+3
a493c0b1 BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS was odr-used, so required a definition. (Dion Ahmetaj)
2017-02-21Merge pull request #1744Riccardo Spagni1-104/+5
a5a0a3c8 core: updates can now be downloaded (and SHA256 hash checked) (moneromooo-monero) 216f062e util: add a SHA256 function (moneromooo-monero) 4bf78492 mlog: only silence errors for net by default, not net.* (moneromooo-monero) d282cfcc core: test key images against validity domain (moneromooo-monero) efb72e74 http_client: add a couple consts (moneromooo-monero) f640512c Optionally query moneropulse DNS records to check for updates (moneromooo-monero) e3cae4ae core: display any fork warning at startup too (moneromooo-monero) 969ad710 dns_utils: fix first checked DNS entry being ignored (moneromooo-monero) 08c3f380 util: add a vercmp function to compare version numbers (moneromooo-monero) e8a7525c dns_utils: factor TXT record loading code from checkpoint code (moneromooo-monero)
2017-02-20dns_utils: factor TXT record loading code from checkpoint codemoneromooo-monero1-104/+5
2017-02-16More robust battery status handling.Dion Ahmetaj2-21/+64
Added an extra path to check for linux power supply status. Added ignore battery option. If set to true, then when we can't figure out the power status, we'll assume the system is plugged in.
2017-02-15BACKGROUND_MINING_MINER_MONITOR_INVERVAL_IN_SECONDS was odr-used, so ↵Dion Ahmetaj1-4/+3
required a definition. Instead of adding a declaration to cpp file, I changed it to non odr-used.
2017-02-14hardfork: tone down some logsmoneromooo-monero1-3/+3
2017-02-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj2-4/+4
was resetting bg mining enabled instead of started. Upped the miner threshold. Also moved setting of enabled on start above miner thread creation since starting with true, then stopping, then starting with false resulted in race condition.
2017-02-10Changed ac_line_status to on_battery_power.Dion Ahmetaj2-6/+6
2017-02-10Use defined directive to silence pre-proc warnings.Dion Ahmetaj1-1/+1
2017-02-10Cleaned up some logging. Thanks to moneromooo for help.Dion Ahmetaj1-20/+20
2017-02-10Added some //TODO comments pertaining to returning enums instead of bools in ↵Dion Ahmetaj1-0/+5
order to be better able to handle failure states.
2017-02-10Moved around checking of AC power in order to bail quicker to sleep if not ↵Dion Ahmetaj1-4/+6
plugged in.
2017-02-10Moved setting of previous process times to block where background mining is ↵Dion Ahmetaj1-14/+11
started, and added an explicit sleep in that block to wait for some mining to occur.
2017-02-10Set background mining started bool to false on bg thread start. If ↵Dion Ahmetaj1-0/+1
mining::stop then mining::start, idle logic is re-run instead of starting immediately (if it was running before stop).
2017-02-10Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj2-11/+442
source, and CPU has been idle for some time, then begin mining to some threshold (don't destroy the users' CPU). This patch only supports windows and linux (I've only tested on Win64 and Ubuntu). The variables currently default to pretty conservative values (i.e. 20% CPU mining threshold).
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi8422-0/+4908