aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2017-03-20blockchain: lower the relay fee by 2%moneromooo-monero1-1/+1
This ensures we accept txes with a fee that's slightly too small, to accomodate blockchain median jitter
2017-03-20tx_pool: use new filling algorithm from v5 onlymoneromooo-monero1-20/+30
2017-03-20wallet2: start using new fee priorities at v5, not 14 days laermoneromooo-monero1-1/+1
Waiting would mean the fee used is 1x base, but the base will have suddenly dropped
2017-03-20wallet2: speed up transactions using remote nodesmoneromooo-monero2-4/+42
Asking for a full histogram from a remote node (since it's untrusted) is pretty slow, and spams the remote node, so we replace it by only adding a second input if we have rct ones, which are for all intents and purposes always mixable.
2017-03-19core: call {prepare|cleanup}_handle_incoming_blocks when adding a mined blockmoneromooo-monero1-0/+17
This ensures that a batch can't also be started/stopped out of sync by another thread and us getting in the middle
2017-03-19Partial fix #1876, check thread in block_txn_start()Howard Chu1-1/+2
Don't allow use of existing batch txn if it's from the wrong thread
2017-03-19wallet-rpc bugfix: get_transfer_by_txid previously checking against payment idkenshi841-1/+1
2017-03-18Removed boost/asio.hpp include from epee/string_tools.hLee Clagett1-0/+1
2017-03-18wallet: increase node_rpc_proxy timeout to match wallet2moneromooo-monero1-4/+6
2017-03-18daemon: fix missing close parenthesis in alt_chain_info outputmoneromooo-monero1-1/+1
Reported by assylias_ on IRC
2017-03-18update version to 0.10.3.0Riccardo Spagni1-1/+1
2017-03-18simplewallet: allow setting tx priority in watch walletsmoneromooo-monero1-5/+0
Those can create unsigned transactions
2017-03-18daemon: alt_chain_info now prints fork depthmoneromooo-monero1-2/+14
2017-03-18wallet_rpc_server: make a few RPCs unavailable in restricted modemoneromooo-monero1-0/+28
Address book modification, setting tx nodes, importing key images
2017-03-18use const references in catch blocksmoneromooo-monero5-13/+13
2017-03-18wallet2: call is_key_image_spent in blocks in rescan_spentmoneromooo-monero1-21/+24
This is a potentially long lasting daemon RPC call
2017-03-18wallet_rpc_server: add a rescan_spent RPCmoneromooo-monero3-0/+39
2017-03-18simplewallet: catch case where no transactions are mademoneromooo-monero1-1/+7
This would otherwise be a silent noop, which is confusing. This can happen if the daemon is started, but not yet ready to service all requests, and this is a safe catch all.
2017-03-18p2p: use the fallback seed IPs when not enough seeds are foundmoneromooo-monero2-27/+64
In case the DNS seed(s) is/are down, which would otherwise cause the fallback seeds to never be used. Also if the seeds resolve to too few IPs.
2017-03-17bump version numberRiccardo Spagni1-1/+1
2017-03-17wallet-rpc: enable openaliasstoffu5-9/+15
2017-03-15Add intervening v5 fork for increased min block sizemoneromooo-monero9-51/+87
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-14Specify "524,288" iterations instead of "500,000"darentuzi1-5/+5
CryptoNight does exactly 524,288 iterations over the scratchpad as defined in CNS008, saying 500,000 could be confusing. I know its meant to give a rough idea (around 500k) to the reader but if you are reading the code, might as well know the exact number.
2017-03-13protocol: fix wrong tx being looked up from fluffy blockmoneromooo-monero1-1/+10
Found by smooth
2017-03-12Adds a config file option to the walletArne Brutschy1-0/+19
2017-03-12core: don't try to re-relay an empty set of pool transactionsmoneromooo-monero1-1/+1
2017-03-12protocol: fix fluffy to normal block dropping txesmoneromooo-monero1-1/+1
2017-03-10fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi847-9/+9
BlockchainDB functions virtual again to avoid missing symbols error
2017-03-05blockchain: don't try to load an empty block hash setmoneromooo-monero1-1/+1
If the blocks aren't being linked against a binary (such as one of the blockchain utilities), the symbol will not be NULL, but the size will be 0. This avoids a apurious warning about the data hash.
2017-03-05blockchain_import: make --log-level understand categoriesmoneromooo-monero1-3/+6
2017-03-05blockchain_export: make --log-level understand categoriesmoneromooo-monero1-4/+6
2017-03-05blockchain_import: error out nicely on exceptionsmoneromooo-monero1-0/+4
2017-03-05blockchain_export: error out nicely on exceptionsmoneromooo-monero1-0/+5
2017-03-05rpc: fix BUILD_TAG mispelling (BUILDTAG)moneromooo-monero1-2/+2
This ensures a manual or RPC update tries the right build tag, rather than source, which is currently not setup
2017-03-05core: print the "new update found" message in cyan, for visibilitymoneromooo-monero1-2/+2
2017-03-05download: check available disk space before downloadingmoneromooo-monero1-0/+8
We don't check *while* the download happens, so it might still be that we don't have enough space later
2017-03-05download: give download threads distinct namesmoneromooo-monero1-0/+5
2017-03-05core: make update download cancellablemoneromooo-monero2-17/+55
2017-03-05download: async APImoneromooo-monero2-26/+153
2017-03-05wallet: add password commandmoneromooo-monero3-6/+7
Also tweak wallet2 password code to verify password without saying it's a new wallet, because it's assuming things.
2017-03-05format_utils: fix typo in assert messagelethos31-2/+2
Fix two small typos as mentioned by reddit user nthterm.
2017-03-04Add dependency for blocksdat.oHoward Chu2-4/+4
To make sure it gets regenerated whenever checkpoints.dat changes Likewise for blocks.o and testnet_blocks.o
2017-03-04wallet: fix get_tranfers with multiple incoming txes with same pidmoneromooo-monero1-3/+13
2017-03-04Revert "wallet: fix insertion of pool transactions"moneromooo-monero1-1/+1
This reverts commit d47dac9a88ddd46b88850a899311363b3261c89e. Callers actually expect the key to be payment id, so this needs a lot more changes (like storing payment ids in the structure, and possibly also to other existing structures which do the same thing).
2017-03-03core: quantize per kB fee to 8 decimalsmoneromooo-monero2-1/+20
2017-03-03tx_pool: log separately "not ready" and "double spend" casesmoneromooo-monero1-2/+8
2017-03-03Fix double-importHoward Chu1-8/+10
Incomplete ifdef cleanup in 9e82b694da120708652871b55f639d1ef306a7ec
2017-03-03Remove redundant num_txs() methodHoward Chu2-18/+4
Cleanup of bf1348b7e2b2c72a6d40b23567afaa46b53e6cb7
2017-03-03Fix #1824 don't end batch that we didn't startHoward Chu1-2/+3
2017-03-03wallet api: fix parameters in wallet2callbackImplJaquee1-7/+7
2017-03-03use txid in wallet2::process_new_transaction()Jaquee1-1/+1
2017-03-02allow user I/O in millinero, micronero, nanonero, piconeromoneromooo-monero6-10/+123
2017-03-02wallet api: add missing mining optionsJaquee3-3/+5
2017-02-28wallet: fix insertion of pool transactionsmoneromooo-monero1-1/+1
They were inserted using payment id as key, not txid
2017-02-28Make gray peer selection uniformMiguel Herranz1-1/+8
Prevents the system from always picking the gray peers with the most recent last_seen.
2017-02-28wallet: fix --log-file not workingmoneromooo-monero4-29/+30
2017-02-27Add support for the wallet to refresh pruned blocksmoneromooo-monero6-62/+105
2017-02-27ringct: do not require range proof in decodeRct/decodeRctSimplemoneromooo-monero1-4/+2
These fields aren't used, and they'll actually be pruned in some cases
2017-02-27rpc: add a default category for daemon rpcmoneromooo-monero1-0/+3
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-27node_rpc_proxy: allow caching daemon RPC versionmoneromooo-monero2-0/+26
2017-02-27wallet: invalidate node proxy cache when reconnectingmoneromooo-monero3-0/+14
2017-02-27Make get_random_gray_peer distribution uniformMiguel Herranz1-5/+2
get_random_gray_peer is used to implement feeler connections, described in: https://eprint.iacr.org/2015/263.pdf 2. Random selection
2017-02-26daemon: fix bc_dyn_stats via rpcmoneromooo-monero1-2/+2
2017-02-26Revert attempt to write to console on daemon shutdownNano Akron1-1/+0
2017-02-25Wallet API: Add support for daemon rpc loginJaquee3-4/+7
2017-02-25core: move hardfork back to cryptonote_coremoneromooo-monero7-9/+9
should fix a cross dependency betewen cryptonote_basic and blockchain_db
2017-02-25protocol: tone down a rate limit not implemented yet warningmoneromooo-monero1-1/+1
it scares users
2017-02-24daemon/rpc: updates command and RPCmoneromooo-monero8-0/+199
subcommands "check", "download", and "update". update is not yet implemented.
2017-02-24daemon: avoid pre-log-init spew on creating directoriesmoneromooo-monero1-1/+3
2017-02-24wallet: avoid pre-log-init spew on --versionmoneromooo-monero1-11/+11
2017-02-24update versionRiccardo Spagni1-1/+1
2017-02-24wallet_rpc_server: new --trusted-daemon flagmoneromooo-monero3-13/+17
and remove trusted_daemon fields from transfer RPCs, it is much friendlier on users
2017-02-24add rpc timeouts to calls that might timeoutRiccardo Spagni1-4/+4
2017-02-24blockchain_utilities: link against blockchain_dbmoneromooo-monero1-0/+1
2017-02-24simplewallet: updated help message for 'set ask-password'kenshi841-1/+1
2017-02-24protocol: fix "sync done" message not appearingmoneromooo-monero1-1/+3
2017-02-23core: protect precomputed block hashes with SHA256moneromooo-monero3-1/+41
2017-02-23rpc: s/rcp/rpc/moneromooo-monero1-1/+1
2017-02-23rpc: make mining_status RPC work when syncingmoneromooo-monero1-1/+1
2017-02-23core: bound the amount of entries in bad tx semantics cachemoneromooo-monero2-6/+16
This is to prevent unbounded memory use. Since I don't think there is a container that has quick insert, quick lookup, and automatic FIFO, I use two and swap every N, clearing the oldest one.
2017-02-23core: remove a couple unused/obsolete bitsmoneromooo-monero1-3/+0
2017-02-23Add print_pl_stats daemon commandMiguel Herranz5-0/+44
2017-02-23wallet2: fix wrong status on daemon shutdown/startupJaquee1-1/+5
2017-02-22fix broken checkpoints.datRiccardo Spagni1-0/+0
2017-02-22updates: fix user/auto url splitmoneromooo-monero1-1/+1
2017-02-22wallet2_api: add updates check apimoneromooo-monero2-0/+31
2017-02-22updates: remove testnet casemoneromooo-monero3-7/+4
It need not be any different
2017-02-22updates: we now have a user URL, and an automatic onemoneromooo-monero3-4/+5
So the user can use https, while the automatic does not have to
2017-02-22updates: s/monerod/monero/ for the main downloadmoneromooo-monero1-2/+2
Also print download success message as global log
2017-02-22updates: add all update serversmoneromooo-monero1-0/+4
2017-02-22updates: use HTTP, not HTTPSmoneromooo-monero1-1/+1
The files are hashed and the hashes signed
2017-02-21core: do not download an update we already downloadedmoneromooo-monero1-14/+23
2017-02-21updates: use updates host, not downloads, for HTTPmoneromooo-monero1-1/+1
2017-02-21updated fallback nodesRiccardo Spagni1-6/+12
2017-02-21update version to 0.10.2Riccardo Spagni1-1/+1
2017-02-21update checkpoints.datRiccardo Spagni1-0/+0
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni220-220/+220
2017-02-21Add support for smart mining through wallet.Dion Ahmetaj1-8/+7
2017-02-21cmakify opensslRiccardo Spagni1-1/+3
2017-02-21Fix core_tests breaking on startupmoneromooo-monero2-1/+2
You're wondering how this fixes core tests, aren't you... It prevents the miner (initialized by cryptonote::core) from breaking trying to access arguments that were not added. Since the tests don't use the miner directly, it makes more sense to have cryptonote_core add those, since it also uses the miner.
2017-02-21dns_utils: fix infinite recursion when distributing empty dns_urlsanonimal1-0/+3
load_txt_records_from_dns attempts to distribute `a = 0, b = -1` where (b = dns_urls.size() - 1) and IntType is signed integer. This results in an infinite recursion which leads to SIGSEGV.
2017-02-21core: add p2p bind port options from net_nodemoneromooo-monero2-2/+6
They're now used by core to determine the data directory to use for the txpool directory. This fixes an assert in the core tests, which don't use the RPC server, which normally initializes the P2P code.
2017-02-20core: updates can now be downloaded (and SHA256 hash checked)moneromooo-monero4-0/+206
2017-02-20util: add a SHA256 functionmoneromooo-monero3-1/+37
2017-02-20core: test key images against validity domainmoneromooo-monero3-0/+32
2017-02-20Optionally query moneropulse DNS records to check for updatesmoneromooo-monero7-2/+225
It just checks and prints a message if there is a new version for now.
2017-02-20core: display any fork warning at startup toomoneromooo-monero1-1/+1
This is a good time for the operator to be around and see it
2017-02-20dns_utils: fix first checked DNS entry being ignoredmoneromooo-monero1-1/+0
2017-02-20util: add a vercmp function to compare version numbersmoneromooo-monero2-0/+18
It is simple, supports simple x.y.z type numeric versions, and does not attempt any kind of validation
2017-02-20dns_utils: factor TXT record loading code from checkpoint codemoneromooo-monero3-104/+110
2017-02-20tx_pool: revert template filling changesmoneromooo-monero1-0/+16
They are not ready yet
2017-02-19wallet2: fix failure to send (relatedness check in wrong case)moneromooo-monero1-5/+5
A relatedness check was meant to be done in the case of adding an extra output if just one was enough. This was mistakenly added to the "preferred output" case.
2017-02-18Get rid of directory lockHoward Chu2-58/+0
We don't need it any more. Fixes issue #1633
2017-02-18Handle map resizes from other processesHoward Chu1-9/+52
2017-02-18Can't cache num_txs or num_outputs eitherHoward Chu2-34/+34
Same reason as 3ff54bdd7a8b5e08e4e8ac17b7fff23ad3a82312
2017-02-18Add a few read txns to streamlineHoward Chu3-3/+11
Slight perf gain, but mainly to reduce spam at loglevel 3
2017-02-18wallet_api: fix logging init via apimoneromooo-monero3-1/+6
2017-02-16More robust battery status handling.Dion Ahmetaj8-29/+81
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-15Fix spurious synchronization status msgsHoward Chu1-1/+5
Only update target height if it's actually greater than the current target. Only display "synchronized" when current height equals target.
2017-02-14simplewallet: validate hex input sizemoneromooo-monero5-21/+21
2017-02-14core: add a missing newline on a string to be loggedmoneromooo-monero1-1/+1
2017-02-14hardfork: tone down some logsmoneromooo-monero1-3/+3
2017-02-13rpc: fix some RPC calls not returning OK status when neededmoneromooo-monero1-0/+3
2017-02-13daemon: silence spurious warning about uninitialized variablemoneromooo-monero1-3/+3
Also fixes a leak
2017-02-13Fix compiler error about nested externs in slow_hash.c by moving declarationsNanoAkron1-3/+3
2017-02-13blockchain_db: add "raw" blobdata getters for block and transactionmoneromooo-monero10-84/+225
This speeds up operations such as serving blocks to syncing peers
2017-02-13cryptonote_protocol: tweaks to the syncing speedupmoneromooo-monero1-6/+10
- only pause mining once we've got the lock (in practice, it'll already be paused by another thread if we can't get the lock at once though) - do not call prepare_handle_incoming_blocks when we dismissed all the blocks, it only causes cleanup_handle_incoming_blocks to complain afterwards
2017-02-13blockchain_db: do not throw on expected partial results getting keysmoneromooo-monero4-4/+11
When scanning for outputs used in a set of incoming blocks, we expect that some of the inputs in their transactions will not be found in the blockchain, as they could be in previous blocks in that set. Those outputs will be scanned there at a later point. In this case, we add a flag to control wehther an output not being found is expected or not.
2017-02-13network_throttle: demote spammy logs to TRACEmoneromooo-monero1-2/+2
2017-02-12tools: log to the correct filemoneromooo-monero2-2/+6
2017-02-12tools: set requested log levelmoneromooo-monero3-2/+4
also move a couple logs from INFO to DEBUG
2017-02-12protocol: speed up sync by minimizing duplicate workmoneromooo-monero2-2/+31
In particular, the prepare_handle_incoming_blocks call is pretty lengthy, and entirely pointless in the common case where several different connections will prepare the exact same blocks.
2017-02-12net_node: fix spurious warning about using uninitialized datamoneromooo-monero1-1/+1
This is only used to load, not save
2017-02-12Fixup choice of easylogging++ vs libunwind stack trace codemoneromooo-monero1-1/+1
2017-02-12tx_pool: add a debug message when adding a tx to the poolmoneromooo-monero1-0/+1
2017-02-12cryptonote_protocol: misc fluffy block fixesmoneromooo-monero2-42/+78
- fix wrong block being used when a new block is received between a node elaying a fluffy block and sending a new fluffy block with txes a peer did not have - misc a neverending ping pong requesting the same missing txids when a new block is received in the meantime, causing the top block to not be the one we need - send the original fluffy block message block height when sending a new fluffy block, not the current top height, which might have been updated since - avoid sending back the whole block blob when asking for txes, send only the hash instead - plus misc cleanup and additional debugging logs
2017-02-12rpc: fix daemon mixed style set_log 2,category:levelmoneromooo-monero1-1/+1
2017-02-12daemon: fix crash on exit when miningmoneromooo-monero1-0/+2
When exiting while the miner is running, finding a block after the p2p layer has been shutdown will cause a crash as the now uninitialized p2p layer is asked to relay the found block to any peers.
2017-02-11Fix GUI building after libcryptonote_core was split (#1626)iDunk54001-1/+1
2017-02-11db_lmdb: fix bad height saved in tx datamoneromooo-monero2-6/+7
The recent change to not keep separate track of the blockchain height caused the reported height to jump early in the lmdb transaction (when the block data is added to the blocks table), rather than at the end, after everything succeeded. Since the block data is added before the transaction data, this caused the transaction data to be saved with a height one more than its expected value. Fix this by saving the block data last. This should have no side effects.
2017-02-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj5-5/+8
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 Ahmetaj8-18/+459
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-08simplewallet: print error when address is wrongkenshi841-0/+6
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi8469-610/+762
2017-02-06wallet2: fix transactions not considering rct inputsmoneromooo-monero2-11/+11
I broke this very recently in 2bf029be172a47ace8134143e1320fdb10d3ea44 and didn't notice in time
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett28-133/+385
2017-02-05Wallet API: Easylogger wrapper for guiJaquee2-0/+8
2017-02-05 bugfix: infinite recursion in get_account_address_from_str_or_urlkenshi841-1/+1
2017-02-05Clarify in/out connections for usersNanoAkron1-1/+1
2017-02-05common: fix link error on at least one platform (no clue which one)moneromooo-monero1-0/+1
Bug and fix reported by tdprime
2017-02-05Wallet API: Catch error from tools::is_local_addressJaquee1-2/+7
2017-02-04GUI: Improved refresh performanceJaquee1-7/+10
2017-02-04wallet api: Remove initAsync() and don't start refresh automatically on initJaquee3-31/+6
2017-02-04wallet2::init() - disconnect before init if connectedJaquee1-0/+2
Makes it possible for GUI to reinit with new daemon without closing and reopening wallet.
2017-02-04Use easylogging++'s stack trace facility where possiblemoneromooo-monero1-0/+19
This avoids using libunwind, which often causes trouble.
2017-02-04wallet_rpc_server: add address book RPC callsmoneromooo-monero4-0/+184
2017-02-03simplewallet: option to always ask password for any crytical operationskenshi844-2/+54
2017-02-02Fix missing parenthesesMiguel Herranz1-2/+2
2017-02-02simplewallet: cleanupmoneromooo-monero1-5/+0
Remove empty static function which was refactored, as well as leftover exception testing code.
2017-02-02simplewallet: fix build (unqualified type not in current scope)moneromooo-monero1-1/+1
2017-02-02core: fix integrated addresses breaking with auto zero changemoneromooo-monero1-0/+2
Zero change is sent to a random address, which confuses the code which determines which key to use to encrypt the payment id. Ignore zero amounts for this purpose, so the payment id gets encrypted with the real destination's key.
2017-02-02Add missing includeMiguel Herranz1-0/+2
Fails to build without it.
2017-01-31Added days uptime to the status messageNanoAkron1-4/+6
Also broke down the time calculations for legibility
2017-01-30Wallet API: Create wallet from keysJaquee5-0/+178
2017-01-30Changed console output for transaction from L0 to L1NanoAkron1-1/+1
2017-01-29wallet_rpc_server: fix short payment id validation in transfermoneromooo-monero1-1/+1
2017-01-29Add change_password for simplewalletAshley Perpetual2-0/+28
2017-01-28wallet2: fix corner case failing to send a second outputmoneromooo-monero1-1/+2
If a rct transaction can be made with just one input, a second output will be added. This output will be the smallest amount output available. However, if this output is a non rct output with less available fake outs than requested, the transaction will be rejected. We now check the histogram to only consider outputs with enough available fake outs in the first place.
2017-01-28Factor is_address_local code into a tools functionmoneromooo-monero4-65/+43
2017-01-28Update and use blockchain data files definesMiguel Herranz2-6/+7
2017-01-28Separate data per P2P portMiguel Herranz2-1/+16
poolstate.bin and p2pstate.bin are stored in .bitmonero/ if the default P2P port is being used. If another port is used both files are stored in .bitmonero/PORTNUMBER/.
2017-01-28wallet_rpc_server: fix logs going to the wrong filemoneromooo-monero3-7/+7
2017-01-28core: set missing verifivation_failed flag when rejecting a txmoneromooo-monero1-0/+1
This fixes two core rct tests
2017-01-28Add concurrency check to rpc mining to ensure not too many threads. number ↵Ashley Perpetual1-0/+17
of cores times 4 or 257.
2017-01-26Fix clang build failure, caused by mixing C and C++Timothy D. Prime1-1/+1
Easily fixed by moving a C++ header out of 'extern "C" {...}'. When building with CC=clang CXX=clang++ make, [ 21%] Building CXX object src/ringct/CMakeFiles/obj_ringct.dir/rctTypes.cpp.o In file included from /home/tdprime/bitmonero/src/ringct/rctTypes.cpp:31: In file included from /home/tdprime/bitmonero/src/ringct/rctTypes.h:43: In file included from /home/tdprime/bitmonero/src/crypto/generic-ops.h:34: /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/cstring:100:3: error: conflicting types for 'memchr' memchr(void* __s, int __c, size_t __n) ^ /usr/include/string.h:92:14: note: previous declaration is here extern void *memchr (const void *__s, int __c, size_t __n) ^ ... and 4 more similar errors
2017-01-26Fix invalid + of std::string and intTimothy D. Prime2-4/+4
These warnings were emitted by clang++, and they are real bugs. src/rpc/core_rpc_server.cpp:208:58: warning: adding 'uint64_t' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int] res.status = "Error retrieving block at height " + height; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ The obvious intent is achieved by using std::to_string().
2017-01-25Updates to epee HTTP client codeLee Clagett10-121/+90
- http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed
2017-01-25Blockfill - Sort tx pool correctlyAlexis Enston1-2/+2
2017-01-25Blockfill - Take TX fees into account properlyAlexis Enston1-1/+1
2017-01-25Consider empty block when filling with TXsAlexis Enston1-1/+5
2017-01-25Clear feedback to user when daemon has stopped successfullyNanoAkron1-0/+1
2017-01-24moved get_account_address_from_str_or_url from libcommon to libcryptonote_corekenshi845-29/+48
2017-01-23rpc: fix bc_dyn_stats not setting grace blocksmoneromooo-monero1-0/+1
This caused a random value to be used, and the resulting incorrect fee when it wasn't 0.
2017-01-23Remove unreachable returnsMiguel Herranz1-3/+0
CATCH_ENTRY_L0 already returns the second value.
2017-01-23fixed typo: monero-wallet-cli,logkenshi841-1/+1
2017-01-23Update log messages to reflect fact we no longer need to type `exit` to save ↵NanoAkron2-10/+6
database before quitting
2017-01-22Remove boost/foreach.cpp includesMiguel Herranz12-12/+0
2017-01-22Wallet api: testnet getter=2-0/+2
2017-01-22Replace BOOST_REVERSE_FOREACH with ranged forMiguel Herranz2-4/+6
2017-01-22Replace BOOST_FOREACH with C++11 ranged forMiguel Herranz12-78/+78
2017-01-22protocol: log received messages in a separate categorymoneromooo-monero1-8/+10
Makes it easier to log just what's going on on P2P