aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-08-23cryptonote_protocol: simplify and remove unnecessary castsmoneromooo-monero1-5/+6
2017-08-23cryptonote_protocol: print peer top height along with its versionmoneromooo-monero1-1/+1
2017-08-23crypto: use malloc instead of allocamoneromooo-monero1-10/+9
2017-08-23thread_group: set thread size to THREAD_STACK_SIZEmoneromooo-monero1-1/+4
2017-08-23print peer id in 0 padded hex for consistencymoneromooo-monero3-22/+17
2017-08-21cryptonote_protocol: misc fixes to the new sync algorithmmoneromooo-monero5-38/+109
Fix sync wedge corner case: It could happen if a connection went into standby mode, while it was the one which had requested the next span, and that span was still waiting for the data, and that peer is not on the main chain. Other peers can then start asking for that data again and again, but never get it as only that forked peer does. And various other fixes
2017-08-17Merge pull request #2303Riccardo Spagni9-6/+59
5a283078 cryptonote_protocol: large block sync size before v4 (moneromooo-monero) 7b747607 cryptonote_protocol: kick idle synchronizing peers (moneromooo-monero)
2017-08-17Merge pull request #2300Riccardo Spagni2-6/+13
42b34b35 Consistently print peer id in hex and on 16 chars (moneromooo-monero)
2017-08-17Merge pull request #2291Riccardo Spagni2-5/+5
b59cd074 befor -> before (Nano Akron)
2017-08-17Merge pull request #2287Riccardo Spagni6-0/+28
827afcb7 protocol: pass blockchain cumulative difficulty when syncing (moneromooo-monero)
2017-08-17cryptonote_protocol: large block sync size before v4moneromooo-monero5-6/+15
2017-08-16cryptonote_protocol: kick idle synchronizing peersmoneromooo-monero5-0/+44
In case they dropped off downloading for any reason, they'll get sent to download again.
2017-08-16Consistently print peer id in hex and on 16 charsmoneromooo-monero2-6/+13
2017-08-15befor -> beforeNano Akron2-5/+5
Really unique yet consistent spelling mistake
2017-08-15protocol: pass blockchain cumulative difficulty when syncingmoneromooo-monero6-0/+28
Not used yet.
2017-08-15update major version numberRiccardo Spagni1-2/+2
2017-08-15Merge pull request #2288Riccardo Spagni4-1/+14
c6e200a8 core: add --db-salvage command line flag (moneromooo-monero)
2017-08-15Merge pull request #2293Riccardo Spagni2-1/+14
dee41efa simplewallet: mnemonic language command-line arg (Eugene Otto)
2017-08-15Merge pull request #2292Riccardo Spagni3-2/+1705
cb2d5ac7 mnemonics: new Esperanto word list (moneromooo-monero)
2017-08-15Merge pull request #2286Riccardo Spagni2-11/+18
8655ba04 wallet_rpc_server: adjust small ring sizes to 5 for v6 (moneromooo-monero)
2017-08-15Merge pull request #2283Riccardo Spagni1-1/+1
d1f204d6 miner: set thread name before logging (moneromooo-monero)
2017-08-15Merge pull request #2282Riccardo Spagni1-0/+2
7fdc178a p2p: fix random peer index being too large (moneromooo-monero)
2017-08-15Merge pull request #2281Riccardo Spagni2-82/+19
e499ff33 simplewallet: factor out message_writer (moneromooo-monero) 7ed5ab47 scoped_message_writer: pause readline to match simplewallet (moneromooo-monero)
2017-08-15Merge pull request #2279Riccardo Spagni2-1/+12
359517c7 wallet_rpc_server: fix possible privacy leak in on_import_key_images() (Jaquee) 20495b27 simplewallet: fix possible privacy leak in import_key_images() (Jaquee)
2017-08-15Merge pull request #2276Riccardo Spagni3-2/+26
a1891ebe tests: fix tests build (moneromooo-monero)
2017-08-15Merge pull request #2277Riccardo Spagni1-4/+3
6ce769c1 p2p: get net log spam down a bit (moneromooo-monero)
2017-08-15Merge pull request #2275Riccardo Spagni1-1/+1
88e83f94 cryptonote_protocol_handler: log versions as unsigned ints (moneromooo-monero)
2017-08-15Merge pull request #2236Riccardo Spagni1-22/+22
cb2d5110 Tweak net logs so we get more info on why networking can't start (moneromooo-monero)
2017-08-15Merge pull request #2274Riccardo Spagni2-6/+26
7591c528 p2p: fallback on seed nodes if we can't make a connection (moneromooo-monero)
2017-08-15Merge pull request #2273Riccardo Spagni1-2/+2
0e8d60c0 cryptonote_protocol: fix recv/send idle time before handshake (moneromooo-monero)
2017-08-15Merge pull request #2272Riccardo Spagni2-67/+56
f90bbe2a cryptonote_protocol: keep target in sync with dropped connections (moneromooo-monero)
2017-08-15Merge pull request #2270Riccardo Spagni3-0/+10
1307e3cc WalletAPI: add getDefaultDataDir() (Jaquee)
2017-08-15Merge pull request #2266Riccardo Spagni1-1/+1
7007bd14 Change default block sync size from 200 to 20 (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 #2258Riccardo Spagni1-3/+20
74597bd1 wallet2: improve refresh height determination (moneromooo-monero)
2017-08-15Merge pull request #2256Riccardo Spagni1-6/+11
042b86c4 simplewallet: do not ask wallet filename twice when restoring (moneromooo-monero)
2017-08-15Tweak net logs so we get more info on why networking can't startmoneromooo-monero1-22/+22
This should prevent "silent" failures to start
2017-08-15Merge pull request #2255Riccardo Spagni1-2/+2
8bbed275 simplewallet: Be explicit about secret keys (Erik de Castro Lopo)
2017-08-15Merge pull request #2252Riccardo Spagni1-0/+4
9707998a wallet2: clear some missing containers in clear() (moneromooo-monero)
2017-08-15Merge pull request #2250Riccardo Spagni1-1/+3
f4f7eeba blockchain: log more info when we reject an orphan (moneromooo-monero)
2017-08-15Merge pull request #2248Riccardo Spagni5-25/+194
71e28760 debug_utilities: only build for debug builds (moneromooo-monero) 55e150ff debug_utilities: new object-sizes debug tool (moneromooo-monero) fbaf5375 cn_deserialize: move to new debug_utilities subdirectory (moneromooo-monero)
2017-08-15Merge pull request #2246Riccardo Spagni2-14/+4
d732c73e blockchain: remove a few unused variables (moneromooo-monero)
2017-08-15Merge pull request #2245Riccardo Spagni1-2/+2
c8640a3d difficulty: fix misleading comment (Guillaume LE VAILLANT)
2017-08-15Merge pull request #2240Riccardo Spagni6-17/+73
b7d6ec83 simplewallet: add (out of sync) or (no daemon) markers in the prompt (moneromooo-monero) fa23a500 wallet2: add a is_synced function (moneromooo-monero) f1307bbd node_rpc_proxy: add a proxy for target height (moneromooo-monero)
2017-08-15Merge pull request #2238Riccardo Spagni5-3/+36
ad4649ac Enable verifying wallet password with having to load wallet. (m2049r)
2017-08-15Merge pull request #2237Riccardo Spagni2-14/+17
5d4ef719 core: speed up output index unique set calculation (moneromooo-monero) 19d7f568 perf_timer: allow profiling more granular than millisecond (moneromooo-monero) bda8c598 epee: add nanosecond timer and pause/restart profiling macros (moneromooo-monero)
2017-08-15Merge pull request #2233Riccardo Spagni1-0/+8
67ce4910 wallet2: store testnet bool in keys file (Jaquee)
2017-08-15Merge pull request #2232Riccardo Spagni1-1/+1
87b5ede9 miner: fix ignoring battery from command line (moneromooo-monero)
2017-08-15Merge pull request #2205Riccardo Spagni5-3/+53
c97d1bd3 wallet: return unlock_time in get_transfers (moneromooo-monero)
2017-08-15cryptonote_protocol: fix "holes" in block download schedulemoneromooo-monero1-1/+2
2017-08-15cryptonote_protocol: fix out of order additionmoneromooo-monero1-0/+37
This was broken by the reorg fix, since we now have to add blocks regardless of their starting height. We now check whether we know the parent for the first block in the next span, or whether it was requested. If neither, it's an orphan. If it is not known, but was requested, we wait to get that block.
2017-08-15block_queue: do not add empty spansmoneromooo-monero1-0/+2
2017-08-14mnemonics: new Esperanto word listmoneromooo-monero3-2/+1705
Word list authored by: Engelberg, ProkhorZ Sources: Baza Radikaro Oficiala Reta Vortaro (http://www.reta-vortaro.de/revo/) Esperanto Panorama - Esperanto-English Dictionary (http://www.esperanto-panorama.net/vortaro/eoen.htm) ESPDIC - Paul Denisowski (http://www.denisowski.org/Esperanto/ESPDIC/espdic.txt)
2017-08-13simplewallet: mnemonic language command-line argEugene Otto2-1/+14
Add `--mnemonic-language` command-line arg so it's possible to generate a wallet without interacting with the CLI.
2017-08-12daemon: print peers' top height in sync_infomoneromooo-monero3-2/+8
2017-08-12core: add --db-salvage command line flagmoneromooo-monero4-1/+14
Use to load the database when the primary meta page is corrupted
2017-08-12wallet_rpc_server: adjust small ring sizes to 5 for v6moneromooo-monero2-11/+18
2017-08-12cryptonote_protocol_handler: log versions as unsigned intsmoneromooo-monero1-1/+1
They're interpreted as characters otherwise
2017-08-12protocol: fix reorgs while syncingmoneromooo-monero4-101/+48
2017-08-12miner: set thread name before loggingmoneromooo-monero1-1/+1
2017-08-11p2p: fix random peer index being too largemoneromooo-monero1-0/+2
2017-08-11simplewallet: factor out message_writermoneromooo-monero2-82/+10
2017-08-11scoped_message_writer: pause readline to match simplewalletmoneromooo-monero1-0/+9
2017-08-11wallet_rpc_server: fix possible privacy leak in on_import_key_images()Jaquee1-1/+6
2017-08-11simplewallet: fix possible privacy leak in import_key_images()Jaquee1-0/+6
2017-08-10p2p: get net log spam down a bitmoneromooo-monero1-4/+3
2017-08-10tests: fix tests buildmoneromooo-monero3-2/+26
Add get_fork_version and add_ideal_fork_version to core so cryptonote_protocol does not have to need the Blockchain class directly, as it's not in its dependencies, and add those to the fake core classes in tests too.
2017-08-09p2p: fallback on seed nodes if we can't make a connectionmoneromooo-monero2-6/+26
This avoids failing to connect to the network in case all known peers are unavailable (which can happen if the peer list is small).
2017-08-09cryptonote_protocol: fix recv/send idle time before handshakemoneromooo-monero1-2/+2
2017-08-09cryptonote_protocol: keep target in sync with dropped connectionsmoneromooo-monero2-67/+56
When a node is dropped, we stop considering its claimed blockchain height as a factor in the target height calculation. This prevents a runaway chain from being still thought to be the target even if the nodes carrying it are dropped.
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-09Merge pull request #2269Riccardo Spagni3-0/+22
635929ea protocol: add checks for top block hard fork version (moneromooo-monero) 7482253a epee: fixup KV_SERIALIZE_OPT to work in more cases (moneromooo-monero)
2017-08-09WalletAPI: add getDefaultDataDir()Jaquee3-0/+10
2017-08-09protocol: add checks for top block hard fork versionmoneromooo-monero3-0/+22
We won't even talk to a peer which claims a wrong version for its top block. This will avoid syncing to known bad peers in the first place. Also add IP fails when failing to verify a block.
2017-08-08net_node: fix m_in_timedsync initializationmoneromooo-monero2-1/+2
This fixes nodes not being able to connect to nodes which use recent code. While there, init peer_id too.
2017-08-08Change default block sync size from 200 to 20moneromooo-monero1-1/+1
With the new sync algorithm, the network overhead will be masked as the thread adding blocks isn't interrupted by network calls anymore. This should reduce memory usage a lot during sync.
2017-08-08cryptonote_basic: fix silly CLANG warning about not emitting functionmoneromooo-monero1-1/+1
2017-08-07Merge pull request #2247Riccardo Spagni4-0/+10
a839a6fa Wallet API: add tx unlock time (Jaquee)
2017-08-07Merge pull request #2231Riccardo Spagni10-63/+67
61770ec2 change mixin to ring size in user visible places (moneromooo-monero)
2017-08-07change mixin to ring size in user visible placesmoneromooo-monero10-63/+67
2017-08-07Merge pull request #2262Riccardo Spagni1-1/+1
7f7d42f8 core: fix invalid memory access creating tx (moneromooo-monero)
2017-08-07Merge pull request #2225Riccardo Spagni3-1/+17
5d91b26c blockchain: skip checking tx semantics in embedded block hash range (moneromooo-monero)
2017-08-07core: fix invalid memory access creating txmoneromooo-monero1-1/+1
2017-08-07Merge pull request #2207Riccardo Spagni5-288/+162
c93b7692 blockchain_import: much faster when verifying with cryptonote::core (moneromooo-monero) 38756d00 core: new API to disable DNS checkpoint lookups (moneromooo-monero)
2017-08-07Merge pull request #2254Riccardo Spagni3-0/+9
e31aac80 walletAPI: add getRefreshFromBlockHeight() (Jaquee) 48c0cb1b wallet api: pause refresh while commiting tx (Jaquee) f233c01c CMakeLists.txt - ios/xcode fix (Jaquee)
2017-08-07updates: add "misc_log_ex.h" for logsmoneromooo-monero1-0/+1
2017-08-07dns_utils: add <functional> for std::functionmoneromooo-monero1-0/+1
2017-08-07blockchain_import: much faster when verifying with cryptonote::coremoneromooo-monero3-287/+152
Quick test with the first 56569 blocks from mainnet version verify batch time old 0 200 1:16 new 0 200 0:57 old 0 5000 0:53 new 0 5000 0:51 old 1 200 est > 1h new 1 200 10:21 old 1 5000 est > 1h new 1 5000 8:27
2017-08-07core: new API to disable DNS checkpoint lookupsmoneromooo-monero2-1/+10
2017-08-07Merge pull request #2218Riccardo Spagni2-3/+145
02f13d6c Fix handling of strings & simplify summation of spendkeys (JollyMort) 40fc9d7b Add option to join multisig wallet pieces together (JollyMort)
2017-08-07Merge pull request #2149Riccardo Spagni20-184/+1308
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 #2244Riccardo Spagni1-4/+1
328bebbe daemon: some more include cleanup (moneromooo-monero)
2017-08-07Merge pull request #2243Riccardo Spagni1-0/+2
4d873046 blockchain: add testnet v6 fork height at 971400 (moneromooo-monero)
2017-08-07Merge pull request #2242Riccardo Spagni1-1/+1
1c9196b0 cryptonote_protocol: fix days behind calc on testnet (moneromooo-monero)
2017-08-07Merge pull request #2239Riccardo Spagni1-4/+4
600353e2 fix wallet callback signatures (m2049r)
2017-08-07Merge pull request #2234Riccardo Spagni17-27/+30
214fd81e some include cleanup (moneromooo-monero)
2017-08-07Merge pull request #2230Riccardo Spagni1-0/+2
5dd722be core: add a message when loading checkpoints at init time (moneromooo-monero)
2017-08-07Merge pull request #2226Riccardo Spagni1-1/+0
14ec6ed8 tx_pool: remove obsolete unused m_config_folder field (moneromooo-monero)
2017-08-07Merge pull request #2223Riccardo Spagni1-1/+4
d37e8f88 daemon: add average seconds per block in bc_dyn_stats (moneromooo-monero)
2017-08-07Merge pull request #2222Riccardo Spagni1-1/+2
878205f1 core: fix lock ordering bug at init time (moneromooo-monero)
2017-08-07Merge pull request #2220Riccardo Spagni1-0/+3
c6ba7d11 p2p: move m_in_timedsync from connection_context to p2p_connection_context (moneromooo-monero)
2017-08-07Merge pull request #2219Riccardo Spagni1-6/+14
04ebfbfe p2p: close connections when exiting (moneromooo-monero) 9a10148c p2p: fix thread leak (moneromooo-monero)
2017-08-07Merge pull request #2216Riccardo Spagni2-7/+7
d8becf2e blockchain: fix cryptonight buffer leak on exit (moneromooo-monero) 91aa90fc blockchain: ensure all blocks get their longhash precalculated (moneromooo-monero) ff4bcaed blockchain: pass correct height to get_block_longhash (moneromooo-monero)
2017-08-07Merge pull request #2215Riccardo Spagni3-10/+9
06aea2cf move get_proof_of_trust_hash from util.h to p2p_protocol_defs.h (moneromooo-monero)
2017-08-07Merge pull request #2214Riccardo Spagni2-19/+6
41f935dd network_throttle: remove unneeded heap allocations (moneromooo-monero)
2017-08-07Merge pull request #2211Riccardo Spagni1-2/+4
525975ac wallet-cli: Minor improvement to help output (Erik de Castro Lopo)
2017-08-07Merge pull request #2210Riccardo Spagni7-64/+113
cb0b5594 Move OpenAlias console input back from libs (moneromooo-monero)
2017-08-07Merge pull request #2206Riccardo Spagni1-1/+1
340feede core: randomly shuffle outputs (moneromooo-monero)
2017-08-07Merge pull request #2203Riccardo Spagni2-20/+38
0c57df97 wallet2: fix temporarily missing incoming tx when being mined (moneromooo-monero)
2017-08-07Merge pull request #2201Riccardo Spagni2-7/+62
dc0b312f wallet_rpc_server: optionally return tx blobs on transfer calls (moneromooo-monero) 5eb79983 epee: add a KV_SERIALIZE variant for optional parameters (moneromooo-monero)
2017-08-07Merge pull request #2200Riccardo Spagni1-1/+1
f1b76c84 cryptonote_protocol: Set send_idle_time in connection_info correctly (rbrunner7)
2017-08-07Merge pull request #2198Riccardo Spagni1-0/+14
53af9768 blockchain: one off warning when seeing a block with unknown version (moneromooo-monero)
2017-08-07Merge pull request #2196Riccardo Spagni1-12/+50
16a55347 simplewallet: show payment ids on sign_transfer (moneromooo-monero)
2017-08-07Merge pull request #2195Riccardo Spagni1-1/+1
599436a4 mlog: default to msgwriter logs only for log level 1 (moneromooo-monero) 58f3fc68 Make msgwriter logs go to file only (moneromooo-monero)
2017-08-07Merge pull request #2191Riccardo Spagni1-1/+2
23909bb0 Make successful transfer log message more informative (JollyMort)
2017-08-07Merge pull request #2188Riccardo Spagni2-0/+31
a5031a7d core: forbid duplicate ring members from v6 (moneromooo-monero)
2017-08-07Merge pull request #2182Riccardo Spagni3-11/+58
2fac03e6 Update monerod systemd service file (Erik de Castro Lopo) 51efb217 daemon: Add ability to write a PID file (Erik de Castro Lopo)
2017-08-07Merge pull request #2153Riccardo Spagni2-10/+10
35d68b2c Fix spelling errors (Erik de Castro Lopo)
2017-08-07Merge pull request #2148Riccardo Spagni3-1/+44
125f823b Add on_get_alt_blocks_hashes RPC call (moneroexamples)
2017-08-07Merge pull request #2147Riccardo Spagni1-26/+86
94717021 fix on_battery_power for linux (Ryan Mehta)
2017-08-07Merge pull request #2132Riccardo Spagni1-6/+2
464afd4d Ensure DNSResolver destructor runs on exit (Howard Chu)
2017-08-07blockchain: add testnet v6 fork height at 971400moneromooo-monero1-0/+2
2017-08-07core: thread most of handle_incoming_txmoneromooo-monero3-31/+113
2017-08-07cryptonote_protocol: retry stale spans earlymoneromooo-monero3-0/+25
Connections can be dropped by the net_node layer, unbeknownst to cryptonote_protocol, which would then not flush any spans scheduled to that connection, which would cause it to be only downloaded again once it becomes the next span (possibly after a small delay if it had been requested less than 5 seconds ago).
2017-08-07cryptonote_protocol: light cleanupmoneromooo-monero2-26/+9
2017-08-07cryptonote_protocol: avoid spurious SYNCHRONIZED OK messagesmoneromooo-monero1-2/+12
2017-08-07cryptonote_protocol_handler: sync speedupmoneromooo-monero17-132/+1156
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-06wallet2: improve refresh height determinationmoneromooo-monero1-3/+20
As reported by jaquee, the calculation could underflow for very low heights. Additionally, we now use the target height too.
2017-08-06simplewallet: do not ask wallet filename twice when restoringmoneromooo-monero1-6/+11
It's annoying and pointless (especially as it's the only thing where the user is asked twice)
2017-08-06simplewallet: Be explicit about secret keysErik de Castro Lopo1-2/+2
Previously, the wallet just asked for "Spend key" and "View key" but now it specifies that these should be the secret versions of these keys.
2017-08-05walletAPI: add getRefreshFromBlockHeight()Jaquee2-0/+7
2017-08-05wallet api: pause refresh while commiting txJaquee1-0/+2
2017-08-05wallet2: clear some missing containers in clear()moneromooo-monero1-0/+4
2017-08-05wallet2: store testnet bool in keys fileJaquee1-0/+8
2017-08-05wallet2: fix temporarily missing incoming tx when being minedmoneromooo-monero2-20/+38
When scanning the txpool without having first updated the blockchain, the tx would be seen as neither in the txpool nor the chain, and removed, so it'd only reappear once the chain is refreshed, and the tx seen in a block.
2017-08-04blockchain: log more info when we reject an orphanmoneromooo-monero1-1/+3
We want to know what happened when a block is wrongly rejected
2017-08-04simplewallet: show payment ids on sign_transfermoneromooo-monero1-12/+50
Integrated addresses are shown when an encrypted payment id is used
2017-08-04debug_utilities: only build for debug buildsmoneromooo-monero1-0/+3
2017-08-04debug_utilities: new object-sizes debug toolmoneromooo-monero2-0/+139
It prints the size of various interesting types, to make it easier to match leaks to possible leaked object types
2017-08-03Wallet API: add tx unlock timeJaquee4-0/+10
2017-08-03cn_deserialize: move to new debug_utilities subdirectorymoneromooo-monero4-25/+52
2017-08-03blockchain: remove a few unused variablesmoneromooo-monero2-14/+4
2017-08-03Enable verifying wallet password with having to load wallet.m2049r5-3/+36
2017-08-02difficulty: fix misleading commentGuillaume LE VAILLANT1-2/+2
2017-08-02daemon: some more include cleanupmoneromooo-monero1-4/+1
2017-08-02cryptonote_protocol: fix days behind calc on testnetmoneromooo-monero1-1/+1
2017-08-02simplewallet: add (out of sync) or (no daemon) markers in the promptmoneromooo-monero2-2/+15
Should help people who don't realize why they haven't seen their monero yet.
2017-08-02wallet2: add a is_synced functionmoneromooo-monero2-0/+11
2017-08-02node_rpc_proxy: add a proxy for target heightmoneromooo-monero2-15/+47
2017-08-02wallet: return unlock_time in get_transfersmoneromooo-monero5-3/+53
also show it in simplewallet's show_transfer
2017-08-02fix wallet callback signaturesm2049r1-4/+4
2017-08-01network_throttle: remove unneeded heap allocationsmoneromooo-monero2-19/+6
This will keep leak traces less noisy, as those were one off allocations that were technically leaking.
2017-08-01p2p: move m_in_timedsync from connection_context to p2p_connection_contextmoneromooo-monero1-0/+3
It's got no place in the base class as it's P2P specific field
2017-08-01core: speed up output index unique set calculationmoneromooo-monero1-8/+8
A sort+uniq step was done for every tx in a 200 block chunk, causing a lot of repeated scanning as the size of the offset map got larger with every added tx. We now do the step only once at the end of the loop. Doing it this way potentially uses more memory, but testing shows that it's currently only about 2% more.
2017-08-01perf_timer: allow profiling more granular than millisecondmoneromooo-monero1-6/+9
2017-07-31some include cleanupmoneromooo-monero17-27/+30
2017-07-31miner: fix ignoring battery from command linemoneromooo-monero1-1/+1
2017-07-31core: add a message when loading checkpoints at init timemoneromooo-monero1-0/+2
This uses DNS, which can take a while, so it's useful to know this is the culprit when loading pauses
2017-07-30tx_pool: remove obsolete unused m_config_folder fieldmoneromooo-monero1-1/+0
2017-07-30blockchain: skip checking tx semantics in embedded block hash rangemoneromooo-monero3-1/+17
If the txes are bad, this'll be picked up by the block hash mismatch since the tx merkle root is part of the block hash.
2017-07-29daemon: add average seconds per block in bc_dyn_statsmoneromooo-monero1-1/+4
2017-07-29core: fix lock ordering bug at init timemoneromooo-monero1-1/+2
2017-07-29Fix handling of strings & simplify summation of spendkeysJollyMort1-13/+7
2017-07-29p2p: close connections when exitingmoneromooo-monero1-0/+8
This ensures they don't leak if they were in the middle of an async operation.
2017-07-29Add option to join multisig wallet pieces togetherJollyMort2-3/+151
Asks user for all the data required to merge secret keys from multisig wallets into one master wallet, which then gets full control of the multisig wallet. The resulting wallet will be the same as any other regular wallet.
2017-07-28p2p: fix thread leakmoneromooo-monero1-6/+6
2017-07-28blockchain: fix cryptonight buffer leak on exitmoneromooo-monero1-1/+1
2017-07-27blockchain: ensure all blocks get their longhash precalculatedmoneromooo-monero2-2/+4
If the number of blocks to check was not a multiple of the number of preparation threads, the last few blocks would not be included in the threaded long hash calculation. Those would still get calculated when the block gets added to the chain, however, so this was only a tiny performance hit, rather than a security bug.
2017-07-27blockchain: pass correct height to get_block_longhashmoneromooo-monero1-4/+2
2017-07-27move get_proof_of_trust_hash from util.h to p2p_protocol_defs.hmoneromooo-monero3-10/+9
This avoids having to include p2p_protocol_defs.h in util.h, as util.h is used a lot, and p2p_protocol_defs.h includes a lot of other things that most users don't need.
2017-07-27wallet-cli: Minor improvement to help outputErik de Castro Lopo1-2/+4
2017-07-27Move OpenAlias console input back from libsmoneromooo-monero7-64/+113
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-26wallet_rpc_server: optionally return tx blobs on transfer callsmoneromooo-monero2-7/+62
also add do_not_relay flag to them, so it now becomes possible to create a tx without sending it yet
2017-07-25core: randomly shuffle outputsmoneromooo-monero1-1/+1
They used to be sorted by amount, which was fine before rct, but is now suboptimal, since amounts are not known anymore. In particular, it would give a recipient knowledge of whether change was higher or lower than the amount received.
2017-07-24cryptonote_protocol: Set send_idle_time in connection_info correctlyrbrunner71-1/+1
2017-07-24blockchain: one off warning when seeing a block with unknown versionmoneromooo-monero1-0/+14
2017-07-24Make msgwriter logs go to file onlymoneromooo-monero1-1/+1
This was the case for monero-wallet-cli already, but not for monerod, which was making it pretty spammy as it was duplicating intended output. Since my original intent was to ensure logs included command output for debugging, this achieves both.
2017-07-22Make successful transfer log message more informativeJollyMort1-1/+2
"Payment successfully sent" can be misleading if the TX isn't confirmed and drops from TX-pool.
2017-07-22core: forbid duplicate ring members from v6moneromooo-monero2-0/+31
This avoids someone adding what amounts to mixin 0 rings in practice, as there is no other good reason to allow this.
2017-07-22daemon: Add ability to write a PID fileErik de Castro Lopo3-11/+58
The PID file will only be written if the daemon is called with the `--detach` command line argument and a `--pidfile /some/file/path` argument.
2017-07-19Merge pull request #2159Riccardo Spagni1-2/+2
6955976b Add various readline related fixes (Jethro Grassie)
2017-07-19Merge pull request #2170Riccardo Spagni1-5/+4
c3bb6bec daemon: fix status in command line mode if using restricted rpc (moneromooo-monero)
2017-07-19Merge pull request #2169Riccardo Spagni1-2/+2
f5f985c0 miner: fix background mining options parsing (moneromooo-monero)
2017-07-19Merge pull request #2166Riccardo Spagni1-3/+11
33d17c37 Don't hardcode /tmp (Howard Chu)
2017-07-19Merge pull request #2165Riccardo Spagni1-1/+1
8db68a57 Fix #2164 histogram output (Howard Chu)
2017-07-19Merge pull request #2142Riccardo Spagni2-0/+3
02d66db4 tx_pool: initialize padding in txpool meta structure (moneromooo-monero) 0722aea3 cryptonote_core: initialize checkpoint flag (moneromooo-monero)
2017-07-19Merge pull request #2135Riccardo Spagni1-0/+2
5cea3552 simplewallet: lock idle scope when sweeping (moneromooo-monero)
2017-07-13daemon: fix status in command line mode if using restricted rpcmoneromooo-monero1-5/+4
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-11Don't hardcode /tmpHoward Chu1-3/+11
2017-07-10Fix #2164 histogram outputHoward Chu1-1/+1
When there are more than 50txs, the timestamp for the last bin was printed incorrectly. Subtracting "now" was omitted by mistake in 3fc22e7b78ab1dd409de4f3e8f5bff27be19735b
2017-07-09Add various readline related fixesJethro Grassie1-2/+2
- Add missing unbind key - Fix colored messages - Add command completion - Preserve last command input - Fix cursor position issues - Fix trailing whitespace in commands - Synchronize set_prompt
2017-07-06fix on_battery_power for linuxRyan Mehta1-26/+86
fix ac/battery linux
2017-07-05Fix spelling errorsErik de Castro Lopo2-10/+10
2017-07-04Add on_get_alt_blocks_hashes RPC callmoneroexamples3-1/+44
2017-07-03Merge pull request #2125Riccardo Spagni2-3/+3
f98bf48b Minor cleanup: tab vs. space + logs messages (binaryFate)
2017-07-03Merge pull request #2124Riccardo Spagni2-21/+17
3b599d2b wallet2: get current height from the daemon on creation (moneromooo-monero) d3bb72ff wallet2: fix infinite loop on future refresh height (moneromooo-monero) 32754784 wallet: fix refresh_from_height setting on new wallet (moneromooo-monero)
2017-07-03Merge pull request #2121Riccardo Spagni2-0/+9
5a09d79c Fix #2120: return per-tx amount in transfer_split RPC call. (binaryFate)
2017-07-03Merge pull request #2114Riccardo Spagni1-1/+1
b592cb3f Fix on_transfer RPC incorrect logging info (Mike C)
2017-07-03Merge pull request #2112Riccardo Spagni1-0/+15
76043b17 monero-wallet-cli: hang on exit in readline code (#2117) (moneromooo-monero) a73a42a6 monero-wallet-cli: hang on exit in readline code (#2117) (moneromooo-monero) be9d4f04 Fix multiline wallet cli output with readline (Jethro Grassie)