aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-12-23Fix Windows builddEBRUYNE-11-0/+3
Fix no new line
2017-12-17Merge pull request #2134Riccardo Spagni31-368/+3829
ceabc4f9 change the N-1/N multisig second message signer for auth (moneromooo-monero) 55c2845d core_tests: multisig test now tests multiple inputs (moneromooo-monero) 98db7ee4 wallet: factor multisig info parsing (moneromooo-monero) 31a97e76 wallet: use raw encrypted data in multisig import/export RPC (moneromooo-monero) 2fa707d1 wallet: add multisig sign/submit RPC (moneromooo-monero) e36f5b60 Match surae's recommendation to derive multisig keys (moneromooo-monero) a36c261d wallet2: fix slow multisig unit tests with subaddress patch (moneromooo-monero) fa569712 make multisig work with subaddresses (moneromooo-monero) dffa0dce simplewallet: add export_raw_multisig command (moneromooo-monero) 7f4c220b simplewallet: add multisig to wallet type in wallet_info output (moneromooo-monero) 26529038 wallet: guard against partly initialized multisig wallet (moneromooo-monero) 66e34e85 add multisig core test and factor multisig building blocks (moneromooo-monero) f4eda44c N-1/N multisig (moneromooo-monero) cd64c799 multisig address generation RPC (moneromooo-monero) fff871a4 gen_multisig: generates multisig wallets if participants trust each other (moneromooo-monero) 95a21a79 wallet2: allow empty wallet filename to avoid saving data (moneromooo-monero) b84b3565 tests: add multisig unit tests (moneromooo-monero) 4c313324 Add N/N multisig tx generation and signing (moneromooo-monero) 6d219a92 wallet: add multisig key generation (moneromooo-monero)
2017-12-17cryptonote_core: fix blockchain init call after prototype changemoneromooo-monero1-1/+1
2017-12-17change the N-1/N multisig second message signer for authmoneromooo-monero1-10/+9
2017-12-17wallet: factor multisig info parsingmoneromooo-monero4-102/+68
2017-12-17wallet: use raw encrypted data in multisig import/export RPCmoneromooo-monero5-163/+73
2017-12-17wallet: add multisig sign/submit RPCmoneromooo-monero6-108/+465
2017-12-17Match surae's recommendation to derive multisig keysmoneromooo-monero5-33/+43
2017-12-17wallet2: fix slow multisig unit tests with subaddress patchmoneromooo-monero2-8/+47
While there, move the wallet2 ctor to the cpp file as it's a huge amount of init list now, and remove an unused one.
2017-12-17make multisig work with subaddressesmoneromooo-monero7-75/+78
Thanks to kenshi84 for help getting this work
2017-12-17simplewallet: add export_raw_multisig commandmoneromooo-monero2-0/+74
It exports raw transactions, so they may be used by other tools, for instance to be relayed to the network externally.
2017-12-17simplewallet: add multisig to wallet type in wallet_info outputmoneromooo-monero1-1/+11
2017-12-17wallet: guard against partly initialized multisig walletmoneromooo-monero5-14/+70
2017-12-17add multisig core test and factor multisig building blocksmoneromooo-monero11-127/+303
2017-12-17N-1/N multisigmoneromooo-monero11-133/+827
2017-12-17multisig address generation RPCmoneromooo-monero6-6/+400
2017-12-17gen_multisig: generates multisig wallets if participants trust each othermoneromooo-monero8-2/+275
2017-12-17wallet2: allow empty wallet filename to avoid saving datamoneromooo-monero1-29/+57
Useful to speed tests up and avoid unnecessary leftover files
2017-12-17Add N/N multisig tx generation and signingmoneromooo-monero16-263/+1410
Scheme by luigi1111: Multisig for RingCT on Monero 2 of 2 User A (coordinator): Spendkey b,B Viewkey a,A (shared) User B: Spendkey c,C Viewkey a,A (shared) Public Address: C+B, A Both have their own watch only wallet via C+B, a A will coordinate spending process (though B could easily as well, coordinator is more needed for more participants) A and B watch for incoming outputs B creates "half" key images for discovered output D: I2_D = (Hs(aR)+c) * Hp(D) B also creates 1.5 random keypairs (one scalar and 2 pubkeys; one on base G and one on base Hp(D)) for each output, storing the scalar(k) (linked to D), and sending the pubkeys with I2_D. A also creates "half" key images: I1_D = (Hs(aR)+b) * Hp(D) Then I_D = I1_D + I2_D Having I_D allows A to check spent status of course, but more importantly allows A to actually build a transaction prefix (and thus transaction). A builds the transaction until most of the way through MLSAG_Gen, adding the 2 pubkeys (per input) provided with I2_D to his own generated ones where they are needed (secret row L, R). At this point, A has a mostly completed transaction (but with an invalid/incomplete signature). A sends over the tx and includes r, which allows B (with the recipient's address) to verify the destination and amount (by reconstructing the stealth address and decoding ecdhInfo). B then finishes the signature by computing ss[secret_index][0] = ss[secret_index][0] + k - cc[secret_index]*c (secret indices need to be passed as well). B can then broadcast the tx, or send it back to A for broadcasting. Once B has completed the signing (and verified the tx to be valid), he can add the full I_D to his cache, allowing him to verify spent status as well. NOTE: A and B *must* present key A and B to each other with a valid signature proving they know a and b respectively. Otherwise, trickery like the following becomes possible: A creates viewkey a,A, spendkey b,B, and sends a,A,B to B. B creates a fake key C = zG - B. B sends C back to A. The combined spendkey C+B then equals zG, allowing B to spend funds at any time! The signature fixes this, because B does not know a c corresponding to C (and thus can't produce a signature). 2 of 3 User A (coordinator) Shared viewkey a,A "spendkey" j,J User B "spendkey" k,K User C "spendkey" m,M A collects K and M from B and C B collects J and M from A and C C collects J and K from A and B A computes N = nG, n = Hs(jK) A computes O = oG, o = Hs(jM) B anc C compute P = pG, p = Hs(kM) || Hs(mK) B and C can also compute N and O respectively if they wish to be able to coordinate Address: N+O+P, A The rest follows as above. The coordinator possesses 2 of 3 needed keys; he can get the other needed part of the signature/key images from either of the other two. Alternatively, if secure communication exists between parties: A gives j to B B gives k to C C gives m to A Address: J+K+M, A 3 of 3 Identical to 2 of 2, except the coordinator must collect the key images from both of the others. The transaction must also be passed an additional hop: A -> B -> C (or A -> C -> B), who can then broadcast it or send it back to A. N-1 of N Generally the same as 2 of 3, except participants need to be arranged in a ring to pass their keys around (using either the secure or insecure method). For example (ignoring viewkey so letters line up): [4 of 5] User: spendkey A: a B: b C: c D: d E: e a -> B, b -> C, c -> D, d -> E, e -> A Order of signing does not matter, it just must reach n-1 users. A "remaining keys" list must be passed around with the transaction so the signers know if they should use 1 or both keys. Collecting key image parts becomes a little messy, but basically every wallet sends over both of their parts with a tag for each. Thia way the coordinating wallet can keep track of which images have been added and which wallet they come from. Reasoning: 1. The key images must be added only once (coordinator will get key images for key a from both A and B, he must add only one to get the proper key actual key image) 2. The coordinator must keep track of which helper pubkeys came from which wallet (discussed in 2 of 2 section). The coordinator must choose only one set to use, then include his choice in the "remaining keys" list so the other wallets know which of their keys to use. You can generalize it further to N-2 of N or even M of N, but I'm not sure there's legitimate demand to justify the complexity. It might also be straightforward enough to support with minimal changes from N-1 format. You basically just give each user additional keys for each additional "-1" you desire. N-2 would be 3 keys per user, N-3 4 keys, etc. The process is somewhat cumbersome: To create a N/N multisig wallet: - each participant creates a normal wallet - each participant runs "prepare_multisig", and sends the resulting string to every other participant - each participant runs "make_multisig N A B C D...", with N being the threshold and A B C D... being the strings received from other participants (the threshold must currently equal N) As txes are received, participants' wallets will need to synchronize so that those new outputs may be spent: - each participant runs "export_multisig FILENAME", and sends the FILENAME file to every other participant - each participant runs "import_multisig A B C D...", with A B C D... being the filenames received from other participants Then, a transaction may be initiated: - one of the participants runs "transfer ADDRESS AMOUNT" - this partly signed transaction will be written to the "multisig_monero_tx" file - the initiator sends this file to another participant - that other participant runs "sign_multisig multisig_monero_tx" - the resulting transaction is written to the "multisig_monero_tx" file again - if the threshold was not reached, the file must be sent to another participant, until enough have signed - the last participant to sign runs "submit_multisig multisig_monero_tx" to relay the transaction to the Monero network
2017-12-17wallet: add multisig key generationmoneromooo-monero6-7/+332
Scheme by luigi1111
2017-12-17Merge pull request #2857Riccardo Spagni4-22/+58
7193b89f Scrub keys from memory just before scope end. (moneromooo-monero)
2017-12-17Merge pull request #2877Riccardo Spagni24-1291/+179
43f5269f Wallets now do not depend on the daemon rpc lib (moneromooo-monero) bb89ae8b move connection_basic and network_throttle from src/p2p to epee (moneromooo-monero) 4abf25f3 cryptonote_core does not depend on p2p anymore (moneromooo-monero)
2017-12-16Wallets now do not depend on the daemon rpc libmoneromooo-monero3-4/+23
The shared RPC code is now moved off into a separate lib
2017-12-16move connection_basic and network_throttle from src/p2p to epeemoneromooo-monero9-1217/+3
These even had the epee namespace. This fixes some ugly circular dependencies.
2017-12-16cryptonote_core does not depend on p2p anymoremoneromooo-monero14-71/+154
As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
2017-12-16move includes around to lessen overall loadmoneromooo-monero40-80/+112
2017-12-16Scrub keys from memory just before scope end.moneromooo-monero4-22/+58
Partially implements #74. Securely erases keys from memory after they are no longer needed. Might have a performance impact, which I haven't measured (perf measurements aren't generally reliable on laptops). Thanks to @stoffu for the suggestion to specialize the pod_to_hex/hex_to_pod functions. Using overloads + SFINAE instead generalizes it so other types can be marked as scrubbed without adding more boilerplate.
2017-12-16Merge pull request #2878Riccardo Spagni7-13/+42
abebe392 rpc: add offline state in info rpc (moneromooo-monero) 7696e849 core: make --offline also disable DNS lookups (moneromooo-monero)
2017-12-16Merge pull request #2873Riccardo Spagni2-3/+3
1c838552 Simplewallet.cpp: Fewer pleases in seed NOTE (xmr-eric) 3f18c642 Fix password capitalization mismatch (xmr-eric)
2017-12-16Merge pull request #2871Riccardo Spagni1-2/+2
2b0a32f8 Small cleanup of daemon synchronization output (xmr-eric)
2017-12-16Merge pull request #2866Riccardo Spagni7-36/+21
cf5f6236 Corrections in rate limiting / trottle code, especially in 'out' direction (rbrunner7)
2017-12-16Merge pull request #2885Riccardo Spagni1-1/+6
a1e3670b catch wallet decrypt false positive (Riccardo Spagni)
2017-12-16Merge pull request #2860Riccardo Spagni13-64/+224
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-16Merge pull request #2856Riccardo Spagni1-1/+1
009eed17 rpc: increase the max number of outs one can request (moneromooo-monero)
2017-12-16Merge pull request #2551Riccardo Spagni2-2/+44
3af19c80 set_node command, allows setting node without restart (Tobias Hoffmann)
2017-12-12Merge pull request #2913Riccardo Spagni1-0/+4
b927f0b1 cryptonote_protocol: fix corner case looping asking for same block hashes (moneromooo-monero)
2017-12-09ringct: always use outPk.mask to decode amountsmoneromooo-monero1-19/+3
2017-12-09Merge pull request #2903Riccardo Spagni1-3/+3
8d4469a0 ringct: do not include bulletproof commitments in signed message (moneromooo-monero)
2017-12-09ringct: do not include bulletproof commitments in signed messagemoneromooo-monero1-3/+3
Those are not serialized, but are restored from the outPk masks, so depending on what tries to validate the tx, those commitments may or may not be filled with valid data at the time. The outPk masks are already hashed as part of the rctSigBase field.
2017-12-09core: fix input ordering from v7moneromooo-monero1-1/+1
2017-12-08add bulletproofs from v7 on testnetmoneromooo-monero9-62/+193
2017-12-08bulletproofs: switch H/G in Pedersen commitments to match rctmoneromooo-monero1-13/+14
Changes from sarang
2017-12-08integrate bulletproofs into moneromoneromooo-monero8-71/+163
2017-12-08add bulletproofs to the build, with basic unit testsmoneromooo-monero3-2/+843
Based on Java code from Sarang Noether
2017-12-07perf_timer: add non scoped start/stop timer definesmoneromooo-monero1-0/+3
2017-12-07add a version of ge_double_scalarmult_precomp_vartime with A precompmoneromooo-monero4-3/+19
2017-12-07ringct: add a version of addKeys which returns the resultmoneromooo-monero2-0/+6
2017-12-07sc_mul and sc_muladdluigi11112-0/+654
2017-12-06set_node command, allows setting node without restartTobias Hoffmann2-2/+44
2017-12-04catch wallet decrypt false positiveRiccardo Spagni1-1/+6
2017-12-03cryptonote_protocol: fix corner case looping asking for same block hashesmoneromooo-monero1-0/+4
2017-12-02Merge pull request #2836Riccardo Spagni4-32/+69
23b6f685 RPC: allow binding of restricted port in addition to core port (Tim L)
2017-12-02Merge pull request #2833Riccardo Spagni3-20/+44
b0426d4c Fixes #759 Add sanity check on restore height (Cifrado)
2017-12-02Merge pull request #2853Riccardo Spagni1-0/+10
c0ae52c0 simplewallet: prevent (wrong) integrated adresses on accounts > 0 (moneromooo-monero)
2017-12-02Merge pull request #2850Riccardo Spagni1-1/+1
d875a9ff wallet2: detect multiple outputs from a tx to different subaddresses (moneromooo-monero)
2017-12-02Merge pull request #2840Riccardo Spagni1-0/+4
f9fad186 blockchain_db: sanity check on tx/hash vector sizes (flozilla)
2017-12-02Merge pull request #2838Riccardo Spagni4-7/+8
310b790a make connection_id a string in RPC (moneromooo-monero)
2017-12-02Merge pull request #2832Riccardo Spagni5-105/+361
287dde63 Added command descriptions (Cifrado)
2017-12-02Merge pull request #2828Riccardo Spagni1-2/+11
6cbe7bcd wallet2: check generate_key_derivation return value (moneromooo-monero)
2017-11-30rpc: add offline state in info rpcmoneromooo-monero2-1/+5
2017-11-30core: make --offline also disable DNS lookupsmoneromooo-monero5-12/+37
2017-11-28Corrections in rate limiting / trottle code, especially in 'out' directionrbrunner77-36/+21
Deleted 3 out of 4 calls to method connection_basic::sleep_before_packet that were erroneous / superfluous, which enabled the elimination of a "fudge" factor of 2.1 in connection_basic::set_rate_up_limit; also ended the multiplying of limit values and numbers of bytes transferred by 1024 before handing them over to the global throttle objects
2017-11-28Simplewallet.cpp: Fewer pleases in seed NOTExmr-eric1-2/+2
Monero.ts: Fewer pleases in seed NOTE Monero_it.ts: Fewer pleases in seed NOTE Monero_fr.ts: Fewer pleases in seed NOTE
2017-11-28Fix password capitalization mismatchxmr-eric1-1/+1
2017-11-27new wipeable_string class to replace std::string passphrasesmoneromooo-monero9-63/+64
2017-11-27utils: initialize easylogging++ in on_startupmoneromooo-monero1-0/+2
It will be reinitialized later once we know about log file and other command line configuration
2017-11-27use memwipe in a few relevant placesmoneromooo-monero2-4/+8
2017-11-27add a memwipe functionmoneromooo-monero3-0/+153
It's meant to avoid being optimized out memory_cleanse lifted from bitcoin
2017-11-27Small cleanup of daemon synchronization outputxmr-eric1-2/+2
Add period to second sentence
2017-11-27Merge pull request #2839Riccardo Spagni1-1/+1
0b08bf39 fixed common/util.cpp to link against libressl (ston1th)
2017-11-26Added command descriptionsCifrado5-105/+361
2017-11-25Merge pull request #2827Riccardo Spagni2-2/+7
fdf0acbf Tools, daemonizer: fix building on Windows (iDunk5400)
2017-11-25Merge pull request #2825Riccardo Spagni1-1/+1
ac5cd865 simplewallet: fix typo in incoming monero message (moneromooo-monero)
2017-11-25Merge pull request #2824Riccardo Spagni13-39/+102
51895fd7 split wallet and wallet_api (moneromooo-monero)
2017-11-25Merge pull request #2823Riccardo Spagni3-27/+47
0d149f70 Add out-of-bound exceptions and handle them in RPC (Michał Sałaban)
2017-11-25Merge pull request #2822Riccardo Spagni1-1/+1
93c33985 simplewallet: translate ring size 0 to mixin 0 (default values) (moneromooo-monero)
2017-11-25Merge pull request #2807Riccardo Spagni2-2/+2
61712384 daemon & simplewallet: don't set max-concurrency when unspecified (stoffu)
2017-11-25Merge pull request #2806Riccardo Spagni1-1/+3
da706b61 Fix false GCC warning '‘*((void*)& subaddr_account +4)’ may be used unitialized' (binaryFate)
2017-11-25Merge pull request #2800Riccardo Spagni1-102/+94
0b726be7 wallet2: minimize the number of construct_tx calls (moneromooo-monero) 9d505d26 wallet2: cleanup some debug logs (moneromooo-monero)
2017-11-25Merge pull request #2797Riccardo Spagni1-10/+14
7e387fb1 wallet2: only add a dummy 0 output if there's one output otherwise (moneromooo-monero)
2017-11-25Merge pull request #2796Riccardo Spagni1-5/+7
b42ee213 Wallet: update ring size in outdated error msgs with set_default_ring_size (binaryFate)
2017-11-25Merge pull request #2784Riccardo Spagni2-4/+4
54a4c1cb cryptonote: do not overwrite const data (moneromooo-monero)
2017-11-25Merge pull request #2368Riccardo Spagni10-0/+473
b0b7e0f0 Spend proof without txkey (stoffu)
2017-11-25Merge pull request #2794Riccardo Spagni4-0/+38
43f27c7d core: warn when free disk space is low (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-25Merge pull request #2788Riccardo Spagni8-3/+302
9739da1e wallet_rpc_server: new relay_tx command (moneromooo-monero) 01dc8297 wallet: transfer RPC can now return tx metadata (pending_tx) (moneromooo-monero) 83fa9047 serialization: add std::set and std::unordered_set serialization (moneromooo-monero)
2017-11-25Merge pull request #2785Riccardo Spagni2-19/+80
2d1ccc1b mnemonics: support for arbitrary (if multiple of 4 bytes) length data (moneromooo-monero)
2017-11-24wallet_rpc_server: new relay_tx commandmoneromooo-monero4-0/+72
It takes a full tx+metadata hex string as input
2017-11-24wallet: transfer RPC can now return tx metadata (pending_tx)moneromooo-monero4-3/+100
2017-11-24serialization: add std::set and std::unordered_set serializationmoneromooo-monero2-0/+130
2017-11-23rpc: increase the max number of outs one can requestmoneromooo-monero1-1/+1
It's getting hit too easily
2017-11-22simplewallet: prevent (wrong) integrated adresses on accounts > 0moneromooo-monero1-0/+10
2017-11-22cryptonote: do not overwrite const datamoneromooo-monero2-4/+4
2017-11-21wallet2: detect multiple outputs from a tx to different subaddressesmoneromooo-monero1-1/+1
2017-11-21Spend proof without txkeystoffu10-0/+473
2017-11-21fix for tx proof: use exception instead of error_str when signature gen failedstoffu7-36/+14
2017-11-20Merge pull request #2783Riccardo Spagni1-0/+4
416a7933 Print msg upon success for commands that were silent (binaryFate)
2017-11-20Merge pull request #2768Riccardo Spagni2-5/+10
ef941855 Wallet RPC: Add prompt-for-password flag (Tim L)
2017-11-18fixed common/util.cpp to link against libresslston1th1-1/+1
2017-11-18Tx proof (revised):stoffu13-527/+871
- refactoring: proof generation/checking code was moved from simplewallet.cpp to wallet2.cpp - allow an arbitrary message to be signed together with txid - introduce two types (outbound & inbound) of tx proofs; with the same syntax, inbound is selected when <address> belongs to this wallet, outbound otherwise. see GitHub thread for more discussion - wallet RPC: added get_tx_key, check_tx_key, get_tx_proof, check_tx_proof - wallet API: moved WalletManagerImpl::checkPayment to Wallet::checkTxKey, added Wallet::getTxProof/checkTxProof - get_tx_key/check_tx_key: handle additional tx keys by concatenating them into a single string
2017-11-18make connection_id a string in RPCmoneromooo-monero4-7/+8
It's sent as JSON, so raw binary is not appropriate
2017-11-17RPC: allow binding of restricted port in addition to core portTim L4-32/+69
2017-11-17Fixes #759 Add sanity check on restore heightCifrado3-20/+44
2017-11-16split wallet and wallet_apimoneromooo-monero13-39/+102
This speeds up building a lot when wallet2.h (or something it includes) changes, since all the API includes wallet2.h
2017-11-16wallet2: check generate_key_derivation return valuemoneromooo-monero1-2/+11
2017-11-16daemon & simplewallet: don't set max-concurrency when unspecifiedstoffu2-2/+2
2017-11-15Tools, daemonizer: fix building on WindowsiDunk54002-2/+7
2017-11-15Wallet RPC: Add prompt-for-password flagTim L2-5/+10
2017-11-15wallet2: minimize the number of construct_tx callsmoneromooo-monero1-95/+90
2017-11-15wallet2: cleanup some debug logsmoneromooo-monero1-7/+4
2017-11-15simplewallet: fix typo in incoming monero messagemoneromooo-monero1-1/+1
2017-11-15Add out-of-bound exceptions and handle them in RPCMichał Sałaban3-27/+47
2017-11-15simplewallet: translate ring size 0 to mixin 0 (default values)moneromooo-monero1-1/+1
Avoids turning it to a huge number
2017-11-15simplewallet: wrong ns for input_line in sweep_single (fix #2634)stoffu3-4/+3
2017-11-15blockchain_db: sanity check on tx/hash vector sizesflozilla1-0/+4
It could trip on a corrupt/crafted file if the user has disabled input verification.
2017-11-15Merge pull request #2778Riccardo Spagni1-9/+8
c957795b fix output_stream_header memory leak (MaxXor)
2017-11-15Merge pull request #2773Riccardo Spagni1-13/+12
ffe5b857 Correct totals computation (Michał Sałaban)
2017-11-15Merge pull request #2772Riccardo Spagni1-1/+1
5d92c7cc wallet2: typo fix in error message (moneromooo-monero)
2017-11-15Merge pull request #2771Riccardo Spagni2-4/+16
e3e838d0 kaccak: remove unused return value (moneromooo-monero) 4877aca2 keccak: some paranoid "can't happen" checks (moneromooo-monero)
2017-11-15Merge pull request #2634Riccardo Spagni7-0/+438
b738f4b5 wallet: add sweep_single command (stoffu)
2017-11-15Merge pull request #2628Riccardo Spagni1-42/+19
7cb303a4 wallet2: simplify incoming tx processing code (moneromooo-monero)
2017-11-15wallet: add sweep_single commandstoffu7-0/+438
2017-11-15wallet2 bugfix: loading old m_unconfirmed_paymentsstoffu1-3/+2
2017-11-14More missed readline dependencies thru scoped_message_writerHoward Chu2-5/+2
2017-11-14Fix 383ff4f68943c5d998fba8caa20aee481583f214Howard Chu1-1/+1
Missed a crypto::null_pkey in PR#2629
2017-11-14Fix e89994e98f85be95d68c7bf471fcadf9aabbc93aHoward Chu1-1/+1
Missed an input_line() change
2017-11-14Fix 437421ce42f1deaa7ec3f28c0c17aff519f1230dHoward Chu1-1/+1
Missing an error argument for an exception
2017-11-14Merge pull request #2789Riccardo Spagni1-1/+1
b0416f07 checkpoints: add a testnet checkpoint at 1000000 (moneromooo-monero)
2017-11-14Merge pull request #2765Riccardo Spagni1-3/+3
fc85d7a9 simplewallet: fix in show_transfer passing wrong arg to wallet2::get_payments etc (stoffu)
2017-11-14CMake: include RPC when building GUI depsanonimal1-33/+30
2017-11-14Merge pull request #2692Riccardo Spagni2-136/+2
0f2c2d4c rpc: remove obsolete busy core checks (moneromooo-monero)
2017-11-14Merge pull request #2739Riccardo Spagni1-10/+17
99f398a2 wallet2: avoid growing the short history when refreshing in a loop (moneromooo-monero)
2017-11-14Merge pull request #2736Riccardo Spagni23-290/+312
0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
2017-11-14Merge pull request #2644Riccardo Spagni3-1/+10
a17efcb0 make this build on SunOS/Solaris (Pavel Maryanov)
2017-11-14Merge pull request #2636Riccardo Spagni1-338/+101
ad03f778 simplewallet: factor transfer related exception handling (moneromooo-monero)
2017-11-14Merge pull request #2629Riccardo Spagni19-45/+42
383ff4f6 remove "using namespace std" from headers (moneromooo-monero)
2017-11-14rpc: remove obsolete busy core checksmoneromooo-monero2-136/+2
2017-11-14wallet2: avoid growing the short history when refreshing in a loopmoneromooo-monero1-10/+17
2017-11-14Do not build against epee_readline if it was not builtHoward Chu3-3/+3
2017-11-14split off readline code into epee_readlinemoneromooo-monero3-0/+5
2017-11-14link against readline only for monerod and wallet-wallet-{rpc,cli}moneromooo-monero2-0/+2
2017-11-14wallet: move some scoped_message_writer calls from the libsmoneromooo-monero6-86/+86
2017-11-14wallet: rejig to avoid prompting in wallet2moneromooo-monero8-78/+97
wallet2 is a library, and should not prompt for stdin. Instead, pass a function so simplewallet can prompt on stdin, and a GUI might display a window, etc.
2017-11-14move input_line from command_line to simplewalletmoneromooo-monero3-20/+13
It was only used there, and this removes one part of the common dependency on libreadline
2017-11-14move cryptonote command line options to cryptonote_coremoneromooo-monero10-108/+111
Those have no reason to be in a generic module
2017-11-14make this build on SunOS/SolarisPavel Maryanov3-1/+10
2017-11-14simplewallet: factor transfer related exception handlingmoneromooo-monero1-338/+101
This ensures they don't go out of sync when adding/changing them, and makes the code easier to deal with.
2017-11-14remove "using namespace std" from headersmoneromooo-monero19-45/+42
It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
2017-11-15simplewallet: fix in show_transfer passing wrong arg to ↵stoffu1-3/+3
wallet2::get_payments etc
2017-11-14Merge pull request #2756Riccardo Spagni4-0/+0
0bf09154 Fix file permission issue (Tim L)
2017-11-14Merge pull request #2755Riccardo Spagni1-2/+2
d70515fc Used declared default refresh status as default rather than it's current value (Maxime THIEBAUT)
2017-11-14Merge pull request #2753Riccardo Spagni2-0/+4
fa514082 RPC: get_info add rpc_connections_count (Tim L)
2017-11-14Merge pull request #2752Riccardo Spagni1-1/+1
68c01782 updates: add a special case for "install-" build tags on windows (moneromooo-monero)
2017-11-14Merge pull request #2750Riccardo Spagni1-6/+6
424852a6 Fix 'sweep_all' command when called with no args (Leon Klingele)
2017-11-14Merge pull request #2749Riccardo Spagni1-4/+0
f732e723 Disguise password length in prompt (Leon Klingele)
2017-11-14Merge pull request #2747Riccardo Spagni1-2/+3
37e1fd94 simplewallet: mark the active account in print_accounts (moneromooo-monero)
2017-11-14Merge pull request #2745Riccardo Spagni3-3/+0
6cf33446 Remove wallet dependency on p2p (moneromooo-monero)
2017-11-14Merge pull request #2742Riccardo Spagni2-2/+8
7c7d3672 Increase LMDB maxreaders if large number of threads in use (Howard Chu) 6738753b Use max_concurrency as-is (Howard Chu)
2017-11-14Merge pull request #2738Riccardo Spagni1-0/+57
4a17f0c2 rpc: add performance timers (moneromooo-monero)
2017-11-14Merge pull request #2735Riccardo Spagni2-1/+4
a524b750 rpc: added miner_tx_hash to resp of getblock (stoffu)
2017-11-14Merge pull request #2727Riccardo Spagni1-1/+14
9d6c6c5d wallet2: do not bother downloading block hashes below last checkpoint (moneromooo-monero)
2017-11-14wallet2: simplify incoming tx processing codemoneromooo-monero1-42/+19
2017-11-14Merge pull request #2624Riccardo Spagni4-16/+39
2677ade5 simplewallet: forbid 0 ring size (moneromooo-monero) da8b60cb simplewallet: reject attempts to use too low mixin early (moneromooo-monero)
2017-11-14Merge pull request #2701Riccardo Spagni2-2/+4
867b67c4 Wallet API: override update subdir when built from src (Jaquee)
2017-11-14Merge pull request #2697Riccardo Spagni2-24/+49
d269bff2 wallet2: use a vector, not a list, for selected_transfers (moneromooo-monero)
2017-11-14Merge pull request #2696Riccardo Spagni1-0/+7
937e7f8a Initialize openssl on startup (moneromooo-monero)
2017-11-14simplewallet: forbid 0 ring sizemoneromooo-monero1-0/+10
It'd be interpreted as a huge one (~0 fake outs)
2017-11-14simplewallet: reject attempts to use too low mixin earlymoneromooo-monero4-16/+29
This yields a clear error message rather then some possibly confusing more technical errors down the line
2017-11-14Merge pull request #2685Riccardo Spagni1-3/+6
1ff638e9 protocol: drop connections which don't handshake after some time (moneromooo-monero)
2017-11-14Merge pull request #2683Riccardo Spagni3-26/+95
105425b7 simplewallet: reject invalid argument for boolean parameter (stoffu)
2017-11-14Merge pull request #2682Riccardo Spagni1-2/+2
8ddcf1e7 simplewallet: remove XMR mentions (moneromooo-monero)
2017-11-14Merge pull request #2681Riccardo Spagni1-7/+1
ec48e8d8 core: do not forbid txes without destination (moneromooo-monero) 523084bc core: don't add empty additional pub keys field to extra (moneromooo-monero)
2017-11-14Merge pull request #2675Riccardo Spagni1-6/+11
00cc1fdd subaddress: remove unneeded scalarmultBase (kenshi84)
2017-11-14Merge pull request #2661Riccardo Spagni1-5/+21
ac4018a7 wallet2: workaround for lightwallet before supporting subaddress (followup #2656) (kenshi84)
2017-11-14Merge pull request #2651Riccardo Spagni1-1/+1
118a1bed rpc: make get_coinbase_tx_sum a restricted RPC (moneromooo-monero)
2017-11-14Merge pull request #2633Riccardo Spagni3-5/+38
ad96c478 wallet-cli: added --generate-from-spend-key option (stoffu)
2017-11-14Merge pull request #2620Riccardo Spagni1-1/+2
6bd4dac6 util: ignore SIGPIPE (moneromooo-monero)
2017-11-14Merge pull request #2617Riccardo Spagni1-1/+1
7dbf76d0 Fix an object lifetime bug in net load tests (moneromooo-monero)
2017-11-14Merge pull request #2615Riccardo Spagni12-73/+138
10013e94 Protect node privacy by proper filtering in restricted-mode RPC answers (binaryFate)
2017-11-14Merge pull request #2509Riccardo Spagni16-62/+216
ccf53a56 track double spending in the txpool (moneromooo-monero)
2017-11-14core: warn when free disk space is lowmoneromooo-monero4-1/+39
2017-11-14Fix false GCC warning '‘*((void*)& subaddr_account +4)’ may be used ↵binaryFate1-1/+3
unitialized'
2017-11-14simplewallet: reject invalid argument for boolean parameterstoffu3-26/+95
2017-11-14rpc: added miner_tx_hash to resp of getblockstoffu2-1/+4
2017-11-14wallet-cli: added --generate-from-spend-key optionstoffu3-5/+38
2017-11-13wallet2: use a vector, not a list, for selected_transfersmoneromooo-monero2-24/+49
Friendlier on memory/speed, we know in advance the max amount of items, which are small and constant size, and there's a lot of list walking involved.
2017-11-13wallet2: only add a dummy 0 output if there's one output otherwisemoneromooo-monero1-10/+14
2017-11-13Wallet: update ring size in outdated error msgs with set_default_ring_sizebinaryFate1-5/+7
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-11-11kaccak: remove unused return valuemoneromooo-monero2-4/+2
2017-11-11checkpoints: add a testnet checkpoint at 1000000moneromooo-monero1-1/+1
Makes working on testnet a lot easier (much less I/O when loading and saving wallets, and exercises the hashchain code before any changes are merged)
2017-11-10Print msg upon success for commands that were silentbinaryFate1-0/+4
2017-11-09Merge pull request #2694Riccardo Spagni2-75/+16
11e0deef cmake: add dep of version lib on version.cpp (redfish) 35340259 .gitignore: do not ignore cmake source files (redfish)
2017-11-09mnemonics: support for arbitrary (if multiple of 4 bytes) length datamoneromooo-monero2-19/+80
2017-11-08fix output_stream_header memory leakMaxXor1-9/+8
2017-11-08Protect node privacy by proper filtering in restricted-mode RPC answersbinaryFate12-73/+138
This patch allows to filter out sensitive information for queries that rely on the pool state, when running in restricted mode. This filtering is only applied to data sent back to RPC queries. Results of inline commands typed locally in the daemon are not affected. In practice, when running with `--restricted-rpc`: * get_transaction_pool will list relayed transactions with the fields "last relayed time" and "received time" set to zero. * get_transaction_pool will not list transaction that have do_not_relay set to true, and will not list key images that are used only for such transactions * get_transaction_pool_hashes.bin will not list such transaction * get_transaction_pool_stats will not count such transactions in any of the aggregated values that are computed The implementation does not make filtering the default, so developers should be mindful of this if they add new RPC functionality. Fixes #2590.
2017-11-08Correct totals computationMichał Sałaban1-13/+12
2017-11-07RPC: get_info add rpc_connections_countTim L2-1/+5
2017-11-07wallet2: typo fix in error messagemoneromooo-monero1-1/+1