aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-03-27socks: fix build with boost 1.70moneromooo-monero1-1/+1
2019-03-25Added socks proxy (tor/i2pd/kovri) support to walletLee Clagett9-15/+239
2019-03-24Merge pull request #5286Riccardo Spagni1-1/+1
cce948a5 simplewallet: add some missing spacing before uses data (moneromooo-monero)
2019-03-24Merge pull request #5282Riccardo Spagni2-0/+6
f962449d wallet_rpc_server: include out subaddress indices in get_transfers (moneromooo-monero)
2019-03-24Merge pull request #5277Riccardo Spagni5-23/+36
adf6d773 wallet: fix offline signing calling a daemon RPC (moneromooo-monero)
2019-03-24Merge pull request #5207Riccardo Spagni4-6/+59
be6f426a rpc: Allow submitting tx as hex blob over ZMQ (Nathan Dorfman)
2019-03-24Merge pull request #5324Riccardo Spagni1-3/+2
223c6b07 dns_utils: really add default DNSSEC servers on failure (moneromooo-monero)
2019-03-24Merge pull request #5321Riccardo Spagni2-10/+8
e9519e98 cryptonote: fix calculating coinbase tx hash (moneromooo-monero)
2019-03-21cryptonote: fix calculating coinbase tx hashmoneromooo-monero2-10/+8
Also set error flag on exception when handling new txes to keep tests working
2019-03-21wallet: fix offline signing calling a daemon RPCmoneromooo-monero5-23/+36
2019-03-21wallet2: sanity check new tx before sendingmoneromooo-monero2-105/+217
We generate and check tx proofs and verify the amounts in those match what the original amounts were.
2019-03-21Merge pull request #5271Riccardo Spagni1-0/+3
2790d4d3 hardfork: update last_versions on popped block (moneromooo-monero)
2019-03-21Merge pull request #5270Riccardo Spagni1-1/+3
5ade7281 Wallet API: multisig_tx_set passing bug fixed (naughtyfox)
2019-03-21Merge pull request #5266Riccardo Spagni2-1/+18
576116d4 wallet: fix load failure if the mms isn't usable (moneromooo-monero)
2019-03-21Merge pull request #5256Riccardo Spagni6-15/+118
4b21d38d blockchain: speed up getting N blocks weights/long term weights (moneromooo-monero)
2019-03-21Merge pull request #5252Riccardo Spagni1-27/+31
7ac33342 slow-hash: cache TLS references locally once at function start (moneromooo-monero)
2019-03-21Merge pull request #5251Riccardo Spagni2-9/+24
7632dede crypto: fix PaX issue on NetBSD with CNv4 JIT (moneromooo-monero) 89b1630e gtest: build fix for NetBSD (moneromooo-monero) fa43b547 tests: handle any cmake detected python interpreter (moneromooo-monero)
2019-03-21Merge pull request #5250Riccardo Spagni1-4/+4
a48e49aa aesb: avoid stomping on an existing define on NetBSD (moneromooo-monero)
2019-03-21Merge pull request #5248Riccardo Spagni1-0/+11
3f6f90bb wallet2: do not use invalid keys as fake outs in rings (moneromooo-monero)
2019-03-21Merge pull request #5237Riccardo Spagni1-5/+10
3907588b rpc: make fill_pow restricted (moneromooo-monero)
2019-03-21Merge pull request #5235Riccardo Spagni2-22/+19
c6a70af8 wallet2: key image import fixes (moneromooo-monero)
2019-03-21Merge pull request #5213Riccardo Spagni1-1/+1
efb2bdd3 slow-hash: default to JIT on x86_64 (moneromooo-monero)
2019-03-21Merge pull request #5211Riccardo Spagni21-240/+1413
c9b13fbb tests/trezor: HF9 and HF10 tests (Dusan Klinec) a1fd1d49 device/trezor: HF10 support added, wallet::API (Dusan Klinec) d74d26f2 crypto: hmac_keccak added (Dusan Klinec)
2019-03-21slow-hash: default to JIT on x86_64moneromooo-monero1-1/+1
2019-03-20dns_utils: really add default DNSSEC servers on failuremoneromooo-monero1-3/+2
Coverity 196597
2019-03-20device/trezor: HF10 support added, wallet::APIDusan Klinec18-241/+1272
- import only key images generated by cold signing process - wallet_api: trezor methods added - wallet: button request code added - const added to methods - wallet2::get_tx_key_device() tries to decrypt stored tx private keys using the device. - simplewallet supports get_tx_key and get_tx_proof on hw device using the get_tx_key feature - live refresh enables refresh with trezor i.e. computing key images on the fly. More convenient and efficient for users. - device: has_ki_live_refresh added - a thread is watching whether live refresh is being computed, if not for 30 seconds, it terminates the live refresh process - switches Trezor state
2019-03-20crypto: hmac_keccak addedDusan Klinec3-0/+142
2019-03-19Adding classes, functions, and utilities for common LMDB operations.Lee Clagett13-0/+1553
2019-03-19Merge pull request #5201Riccardo Spagni1-50/+0
4921c794 cn_deserialize: remove some unused code (moneromooo-monero)
2019-03-19Merge pull request #5203Riccardo Spagni4-26/+70
8b514645 add multisig tx sets to describe_transfer rpc endpoint (spoke0)
2019-03-19Merge pull request #5199Riccardo Spagni3-0/+45
eef164f7 cryptonote_protocol_handler: search for syncing peers in "cruise mode" (moneromooo-monero)
2019-03-19Merge pull request #5198Riccardo Spagni1-6/+34
9c4d403a dns_utils: use fallback if the default resolver does not support DNSSEC (moneromooo-monero)
2019-03-19Merge pull request #5195Riccardo Spagni5-1/+17
a54e81e5 daemon: add '--no-sync' arg to optionally disable blockchain sync (xiphon)
2019-03-19Merge pull request #4889Riccardo Spagni4-25/+159
f42263eb wallet: adds rescan_bc option with preserving key images (Dusan Klinec)
2019-03-17Merge pull request #5192Riccardo Spagni2-14/+4
d0e07b3d performance_tests: fix NetBSD build (moneromooo-monero) 7d88d8f2 discontinue use of alloca (moneromooo-monero)
2019-03-17Merge pull request #5190Riccardo Spagni20-30/+147
551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
2019-03-17Merge pull request #5185Riccardo Spagni9-7/+134
59478c80 daemon: new mining_status command (moneromooo-monero)
2019-03-17Merge pull request #5182Riccardo Spagni2-3/+21
b674728d Better error when sending a tx with a too large extra field (moneromooo-monero)
2019-03-17Merge pull request #5179Riccardo Spagni1-4/+4
7c09882a dns_utils: remove MoneroPulse/checkpoints mention in TXT record code (moneromooo-monero)
2019-03-17Merge pull request #5177Riccardo Spagni1-1/+8
bb2aed8e rpc: quantize db size up to 5 GB in restricted mode (moneromooo-monero)
2019-03-17Merge pull request #5168Riccardo Spagni1-7/+6
8630a028 wallet: fix payment ID decryption for construction data (Dusan Klinec)
2019-03-17Merge pull request #5166Riccardo Spagni1-1/+1
75e5aafd device/trezor: dummy payment ID fix (Dusan Klinec)
2019-03-17Merge pull request #5165Riccardo Spagni3-0/+203
36451697 Simplify RPC endpoint, emoving second RPC endpoint generate_from_view_key (Joel) c17c8188 Remove code duplication (Joel) acb14c10 Add generate_from_view_key RPC method (Joel) 7dd7a3b7 Add generate_from_keys RPC method (Joel)
2019-03-17Merge pull request #5135Riccardo Spagni1-0/+1
de32dcea Human readable message if maximum outputs reached (italocoin)
2019-03-17Merge pull request #5061Riccardo Spagni308-308/+308
1f2930ce Update 2019 copyright (binaryFate)
2019-03-16Merge pull request #5249Riccardo Spagni1-1/+1
3ac40938 timings: fix errno.h mispelt as error.h (moneromooo-monero)
2019-03-16Merge pull request #5280Riccardo Spagni1-0/+1
aac4e2f5 wallet_rpc_server: add missing --rpc-ssl-allowed-fingerprints (moneromooo-monero)
2019-03-15wallet: adds rescan_bc option with preserving key imagesDusan Klinec4-25/+159
- enables to perform rescan_spent / ki sync with untrusted daemon. Spent check status involves RPC calls which require trusted daemon status as it leaks information. The new call performs soft reset while preserving key images thus a sequence: refresh, ki sync / import, rescan_bc keep_ki will correctly perform spent checking without need for trusted daemon. - useful to detect spent outputs with untrusted daemon on watch_only / multisig / hw-cold wallets after expensive key image sync. - cli: rescan_bc keep_ki
2019-03-14simplewallet: add some missing spacing before uses datamoneromooo-monero1-1/+1
2019-03-14Merge pull request #4977Riccardo Spagni12-59/+512
5ea17909 device/trezor: debugging features, trezor tests (Dusan Klinec)
2019-03-13wallet_rpc_server: include out subaddress indices in get_transfersmoneromooo-monero2-0/+6
2019-03-13wallet_rpc_server: add missing --rpc-ssl-allowed-fingerprintsmoneromooo-monero1-0/+1
2019-03-12wallet2: don't store 0 amount outputs, they'll fail to be spentmoneromooo-monero1-1/+7
It's better to just ignore them, the user does not really need to know they're here. If the mask is wrong, they'll fail to be used, and sweeping will fail as it tries to use it. Reported by Josh Davis.
2019-03-12hardfork: update last_versions on popped blockmoneromooo-monero1-0/+3
2019-03-12Wallet API: multisig_tx_set passing bug fixednaughtyfox1-1/+3
2019-03-11wallet: fix load failure if the mms isn't usablemoneromooo-monero2-1/+18
2019-03-10blockchain: fix ahead of time PoW batch calcmoneromooo-monero1-2/+2
2019-03-09daemon: new mining_status commandmoneromooo-monero9-7/+134
2019-03-08blockchain: speed up getting N blocks weights/long term weightsmoneromooo-monero6-15/+118
2019-03-07slow-hash: cache TLS references locally once at function startmoneromooo-monero1-27/+31
2019-03-07crypto: fix PaX issue on NetBSD with CNv4 JITmoneromooo-monero2-9/+24
2019-03-07aesb: avoid stomping on an existing define on NetBSDmoneromooo-monero1-4/+4
2019-03-07timings: fix errno.h mispelt as error.hmoneromooo-monero1-1/+1
2019-03-07wallet2: do not use invalid keys as fake outs in ringsmoneromooo-monero1-0/+11
2019-03-07Merge pull request #5232Riccardo Spagni4-3/+4
082149c5 fix merge errors, update recommended version to 0.14.0.2 (Riccardo Spagni) f3b368c6 update checkpoints hash (Riccardo Spagni) e518f2b1 update checkpoints, update README for 0.14.1 release (Riccardo Spagni) 8780d6b4 update readme via cherry-pick (Riccardo Spagni)
2019-03-06rpc: make fill_pow restrictedmoneromooo-monero1-5/+10
It's slow work, so let's not expose it
2019-03-05wallet2: key image import fixesmoneromooo-monero2-22/+19
- return the right output data when offset is not zero - do not consider import failed if result height is zero (it can be 0 if unknown) - select the right tx pubkey when using subaddresses (it's faster, and we might select the wrong one if we got an output using one of the additional tx keys) - account for skipped outputs for spent/unspent balance info "spent" is arguably wrong, since it will count spent change multiple times as it goes through receive/spend cycles.
2019-03-05Update 2019 copyrightbinaryFate308-308/+308
2019-03-05Merge pull request #4852Riccardo Spagni5-6/+29
057c279c epee: add SSL support (Martijn Otto)
2019-03-05add multisig tx sets to describe_transfer rpc endpointspoke04-27/+71
2019-03-05epee: add SSL supportMartijn Otto5-6/+29
RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
2019-03-05device/trezor: debugging features, trezor testsDusan Klinec13-60/+513
2019-03-05Merge pull request #5119Riccardo Spagni1-5/+5
f024a10b db_lmdb: make mdb_block_info format conversion more future proof (moneromooo-monero)
2019-03-05Merge pull request #5103Riccardo Spagni1-1/+9
ceb72be3 p2p: avoid busy loop when we have nothing to connect to (moneromooo-monero)
2019-03-05Merge pull request #5100Riccardo Spagni18-189/+309
c4851024 wallet_rpc_server: avoid repeated string allocations when parsing (moneromooo-monero) 88c85c18 cryptonote: avoid double parsing blocks when syncing (moneromooo-monero) 9feda0ee cryptonote: speed up calculating coinbase tx prunable hash (moneromooo-monero) 238401d4 core: avoid double parsing blocks after hoh (moneromooo-monero) dc5a7609 blockchain: avoid unneeded block copy (moneromooo-monero) 79b4e9f3 save some database calls when getting top block hash and height (moneromooo-monero) 98278808 blockchain: avoid pointless transaction copy and temporary (moneromooo-monero) 07d655e4 blockchain: avoid duplicate block hash computation (moneromooo-monero) f75d51ab core: avoid calculating tx prefix hash when we don't need it (moneromooo-monero) b044d03a Avoid repeated (de)serialization when syncing (moneromooo-monero) b747e836 wallet2: don't calculate prefix hash when we don't need it (moneromooo-monero) e69477bf db: speedup block addition (moneromooo-monero)
2019-03-05db_lmdb: make mdb_block_info format conversion more future proofmoneromooo-monero1-5/+5
If mdb_block_info changes again, the v2 to v3 conversion would convert to an incorrect format.
2019-03-05p2p: avoid busy loop when we have nothing to connect tomoneromooo-monero1-1/+9
2019-03-05wallet_rpc_server: avoid repeated string allocations when parsingmoneromooo-monero1-20/+14
2019-03-05cryptonote: avoid double parsing blocks when syncingmoneromooo-monero3-15/+32
2019-03-05cryptonote: speed up calculating coinbase tx prunable hashmoneromooo-monero1-2/+9
It's a hash of an empty buffer, so we can avoid keccak
2019-03-05core: avoid double parsing blocks after hohmoneromooo-monero6-25/+50
2019-03-05blockchain: avoid unneeded block copymoneromooo-monero1-1/+2
2019-03-05save some database calls when getting top block hash and heightmoneromooo-monero5-29/+43
2019-03-05blockchain: avoid pointless transaction copy and temporarymoneromooo-monero1-3/+4
2019-03-05blockchain: avoid duplicate block hash computationmoneromooo-monero1-2/+1
2019-03-05core: avoid calculating tx prefix hash when we don't need itmoneromooo-monero4-21/+26
2019-03-05Avoid repeated (de)serialization when syncingmoneromooo-monero10-38/+49
2019-03-05fix merge errors, update recommended version to 0.14.0.2Riccardo Spagni1-1/+1
2019-03-05update checkpoints hashRiccardo Spagni2-2/+2
2019-03-05update checkpoints, update README for 0.14.1 releaseRiccardo Spagni2-2/+3
2019-03-05wallet2: don't calculate prefix hash when we don't need itmoneromooo-monero1-6/+6
2019-03-05db: speedup block additionmoneromooo-monero4-37/+83
by avoiding repeated (de)serialization
2019-03-05CryptonightR: define out i386/x86_64 specific code on other archsmoneromooo-monero2-0/+8
2019-03-05slow-hash: fix build on armmoneromooo-monero4-27/+42
2019-03-04check load_t_from_json return valuesmoneromooo-monero2-4/+11
2019-03-04default initialize rpc structuresmoneromooo-monero8-321/+623
2019-03-04various: remove unused variablesmoneromooo-monero7-18/+1
2019-03-04Merge pull request #5156Riccardo Spagni2-20/+48
3d2772a0 wallet-rpc: get balance for all accounts and subaddresses (stoffu)
2019-03-04Merge pull request #5154Riccardo Spagni2-4/+14
8a1ff079 wallet-rpc: get transfers for all accounts and subaddresses (Jethro Grassie)
2019-03-04Merge pull request #5146Riccardo Spagni1-1/+1
4a9257b4 Support docker for gitian builds (TheCharlatan)
2019-03-04Merge pull request #5143Riccardo Spagni1-1/+3
1f5680c8 simplewallet: add help for ask-password options (moneromooo-monero) c7c74caf simplewallet: mark confirm-missing-payment-id as obsolete (moneromooo-monero)
2019-03-04Merge pull request #5141Riccardo Spagni3-1/+89
5c81a9f1 wallet_rpc_server: add a validate_address RPC (moneromooo-monero)
2019-03-04Merge pull request #5140Riccardo Spagni1-1/+1
a3973fc9 debug compilation fix: net lib missing common deps (Dusan Klinec)
2019-03-04Merge pull request #5131Riccardo Spagni1-1/+1
d2c95ab9 Don't decrypt keys in view only wallets in wallet_keys_unlocker (Doyle)
2019-03-04Merge pull request #5125Riccardo Spagni4-9/+96
8298f42e miner: it can now autodetect the optimal number of threads (moneromooo-monero)
2019-03-04Merge pull request #5111Riccardo Spagni1-1/+1
6a3608d3 cryptonote_protocol_handler: pad tx messages when using tor/i2p (moneromooo-monero)
2019-03-04Merge pull request #5108Riccardo Spagni1-0/+18
1c9d5285 blockchain_prune: don't prune before v10 (moneromooo-monero)
2019-03-04Merge pull request #5102Riccardo Spagni4-0/+162
1eef0565 performance_tests: better stats, and keep track of timing history (moneromooo-monero)
2019-03-04Merge pull request #5092Riccardo Spagni1-2/+2
eec79276 blockchain: fix default genesis block timestamp (moneromooo-monero)
2019-03-04Merge pull request #5091Riccardo Spagni12-9/+419
123fc2a2 i2p: initial support (Jethro Grassie)
2019-03-04Merge pull request #5084Riccardo Spagni1-0/+5
9d58749b wallet2: fix hashchain going out of sync on refresh error (moneromooo-monero)
2019-03-04Merge pull request #5082Riccardo Spagni1-6/+22
1bc5f9fa bulletproofs: speed up vector_power_sum (moneromooo-monero)
2019-03-04Merge pull request #5081Riccardo Spagni1-3/+3
d78addcb db_lmdb: don't unnecessarily cast to double on the way to uint64_t (moneromooo-monero)
2019-03-04Merge pull request #4054Riccardo Spagni14-30/+168
24569454 epee: add SSL support (moneromooo-monero)
2019-03-04Merge pull request #5224Riccardo Spagni1-1/+1
807903bb hardfork: fix fork determination for historical heights (moneromooo)
2019-03-04Merge pull request #5217Riccardo Spagni2-7/+13
fa2fbc39 wallet2: fix mishandling rct outputs in coinbase tx (moneromooo-monero)
2019-03-04blockchain: forbid older BP rct versions from v11moneromooo-monero1-1/+18
2019-03-04Merge pull request #5175Riccardo Spagni1-0/+1
85088d9f db_lmdb: fix missing mdb_dbi_close in migration (moneromooo-monero)
2019-03-04Merge pull request #5174Riccardo Spagni7-3/+2855
0de14396 tests: add a CNv4 JIT test (moneromooo-monero) 24d281c3 crypto: plug CNv4 JIT into cn_slow_hash (moneromooo-monero) 78ab59ea crypto: clear cache after generating random program (moneromooo-monero) b9a61884 performance_tests: add tests for new Cryptonight variants (moneromooo-monero) fff23bf7 CNv4 JIT compiler for x86-64 and tests (SChernykh) 3dde67d8 blockchain: add v10 fork heights (moneromooo-monero)
2019-03-04Merge pull request #5132Riccardo Spagni8-121/+314
2dbc487e Add support for V10 protocol with BulletProofV2 and short amount. (cslashm) 63cc02c0 Fix dummy decryption in debug mode (cslashm) f0e55ceb fix log namespace (cslashm) 460da140 New scheme key destination contrfol (cslashm)
2019-03-04tests: add a CNv4 JIT testmoneromooo-monero1-7/+8
2019-03-04crypto: plug CNv4 JIT into cn_slow_hashmoneromooo-monero2-3/+100
Enabled by setting the MONERO_USE_CNV4_JIT env var to 1
2019-03-04crypto: clear cache after generating random programmoneromooo-monero1-0/+3
2019-03-04CNv4 JIT compiler for x86-64 and testsSChernykh4-0/+2746
Minimalistic JIT code generator for random math sequence in CryptonightR. Usage: - Allocate writable and executable memory - Call v4_generate_JIT_code with "buf" pointed to memory allocated on the previous step - Call the generated code instead of "v4_random_math(code, r)", omit the "code" parameter
2019-03-04blockchain: add v10 fork heightsmoneromooo-monero1-0/+5
2019-03-04Print the reason why a notification spec failed to parsemoneromooo-monero2-3/+3
2019-03-04blockchain: include number of discarded blocks in --reorg-notifymoneromooo-monero2-3/+5
2019-03-04core: add a few more block rate window sizesmoneromooo-monero1-1/+1
The 10 minute one will never trigger for 0 blocks, as it's still fairly likely to happen even without the actual hash rate changing much, so we add a 20 minute window, where it will (for 0 blocks) and a one hour window.
2019-03-04core: add --block-rate-notifymoneromooo-monero2-0/+33
This runs a command whenever the block rate deviates too much from the expectation
2019-03-04notify: fix tokenizing being too strictmoneromooo-monero1-1/+1
2019-03-04hardfork: fix fork determination for historical heightsmoneromooo1-1/+1
2019-03-04Merge pull request #5126Riccardo Spagni6-45/+576
f1fb06b1 Fixed path to int-util.h (SChernykh) 9da0892b Adding cnv4-2 tweaks (SChernykh) f51397b3 Cryptonight variant 4 aka CryptonightR (SChernykh)
2019-03-04Merge pull request #5124Riccardo Spagni14-33/+530
b8787f43 ArticMine's new block weight algorithm (moneromooo-monero)
2019-03-04Merge pull request #5122Riccardo Spagni1-15/+2
52964501 ringct: fix v1 ecdhInfo serialization (moneromooo-monero)
2019-03-04Merge pull request #5120Riccardo Spagni1-5/+1
45b7df70 wallet_rpc_server: remove detached short payment ids support (moneromooo-monero)
2019-03-04Merge pull request #5118Riccardo Spagni1-1/+1
49b2a48a simplewallet: tell the user to complain to the recipient (moneromooo-monero)
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero14-33/+530
This curbs runaway growth while still allowing substantial spikes in block weight Original specification from ArticMine: here is the scaling proposal Define: LongTermBlockWeight Before fork: LongTermBlockWeight = BlockWeight At or after fork: LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight) Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time. Define: LongTermEffectiveMedianBlockWeight LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight)) Change Definition of EffectiveMedianBlockWeight From (current definition) EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight)) To (proposed definition) EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight) Notes: 1) There are no other changes to the existing penalty formula, median calculation, fees etc. 2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork. 3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty. Note: the long term block weight is stored in the database, but not in the actual block itself, since it requires recalculating anyway for verification.
2019-03-03wallet2: fix mishandling rct outputs in coinbase txmoneromooo-monero2-7/+13
Reported by cutcoin
2019-03-02Simplify RPC endpoint, emoving second RPC endpoint generate_from_view_keyJoel2-17/+4
2019-02-27rpc: Allow submitting tx as hex blob over ZMQNathan Dorfman4-6/+59
2019-02-27dns_utils: use fallback if the default resolver does not support DNSSECmoneromooo-monero1-6/+34
2019-02-26cn_deserialize: remove some unused codemoneromooo-monero1-50/+0
2019-02-26cryptonote_protocol_handler: search for syncing peers in "cruise mode"moneromooo-monero3-0/+45
When all our outgoing peer slots are filled, we cycle one peer at a time looking for syncing peers until we have at least two such peers. This brings two advantages: - Peers without incoming connections will find more syncing peers that before, thereby strengthening network decentralization - Peers will have more resistance to isolation attacks, as they are more likely to find a "good" peer than they were before
2019-02-25discontinue use of allocamoneromooo-monero2-14/+4
NetBSD emits: warning: Warning: reference to the libc supplied alloca(3); this most likely will not work. Please use the compiler provided version of alloca(3), by supplying the appropriate compiler flags (e.g. not -std=c89). and man 3 alloca says: Normally, gcc(1) translates calls to alloca() with inlined code. This is not done when either the -ansi, -std=c89, -std=c99, or the -std=c11 option is given and the header <alloca.h> is not included. Otherwise, (without an -ansi or -std=c* option) the glibc version of <stdlib.h> includes <alloca.h> and that contains the lines: #ifdef __GNUC__ #define alloca(size) __builtin_alloca (size) #endif It looks like alloca is a bad idea in modern C/C++, so we use VLAs for C and std::vector for C++.
2019-02-25daemon: add '--no-sync' arg to optionally disable blockchain syncxiphon5-1/+17
2019-02-25daemon: add --public-node mode, RPC port propagation over P2Pxiphon20-30/+147
2019-02-23miner: it can now autodetect the optimal number of threadsmoneromooo-monero4-9/+96
2019-02-22Better error when sending a tx with a too large extra fieldmoneromooo-monero2-3/+21
2019-02-21rpc: quantize db size up to 5 GB in restricted modemoneromooo-monero1-1/+8
2019-02-21dns_utils: remove MoneroPulse/checkpoints mention in TXT record codemoneromooo-monero1-4/+4
This code is used for more than just these
2019-02-21Remove code duplicationJoel3-190/+20
2019-02-21db_lmdb: fix missing mdb_dbi_close in migrationmoneromooo-monero1-0/+1
Fixed by hyc
2019-02-20wallet-rpc: get balance for all accounts and subaddressesstoffu2-21/+49
2019-02-20wallet: fix payment ID decryption for construction dataDusan Klinec1-7/+6
2019-02-20device/trezor: dummy payment ID fixDusan Klinec1-1/+1
2019-02-19Add generate_from_view_key RPC methodJoel3-0/+185
2019-02-19Add generate_from_keys RPC methodJoel3-0/+201
2019-02-17wallet-rpc: get transfers for all accounts and subaddressesJethro Grassie2-5/+15
2019-02-14Support docker for gitian buildsTheCharlatan1-1/+1
Building with docker is arguably easier and more familiar to most people than either kvm, or lxc. This commit also relaxes the back compat requirement a bit. 32 bit linux now uses glibc version 2.0. Also, the docker shell could not handle gcc arguments containing spaces, so the explicit '-DFELT_TYPE' declaration was dropped. Lastly, this removes some packages from the osx descriptor.
2019-02-14wallet_rpc_server: add a validate_address RPCmoneromooo-monero3-1/+89
2019-02-14Fixed path to int-util.hSChernykh1-1/+1
2019-02-14Adding cnv4-2 tweaksSChernykh2-39/+79
Co-Authored-By: Lee Clagett <vtnerd@users.noreply.github.com>
2019-02-14Cryptonight variant 4 aka CryptonightRSChernykh6-17/+508
It introduces random integer math into the main loop.
2019-02-14simplewallet: add help for ask-password optionsmoneromooo-monero1-0/+2
2019-02-14simplewallet: mark confirm-missing-payment-id as obsoletemoneromooo-monero1-1/+1
2019-02-13debug compilation fix: net lib missing common depsDusan Klinec1-1/+1
``` Undefined symbols for architecture x86_64: "common_category()", referenced from: make_error_code(common_error) in parse.cpp.o make_error_code(common_error) in tor_address.cpp.o "boost::system::detail::system_category_ncx()", referenced from: boost::system::system_category() in parse.cpp.o boost::system::system_category() in socks.cpp.o boost::system::system_category() in libepee.a(net_utils_base.cpp.o) "boost::system::detail::generic_category_ncx()", referenced from: boost::system::generic_category() in parse.cpp.o boost::system::generic_category() in socks.cpp.o boost::system::generic_category() in tor_address.cpp.o boost::system::generic_category() in libepee.a(string_tools.cpp.o) boost::system::generic_category() in libepee.a(net_utils_base.cpp.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [src/net/libnet.dylib] Error 1 make[2]: *** [src/net/CMakeFiles/net.dir/all] Error 2 ```
2019-02-13Don't decrypt keys in view only wallets in wallet_keys_unlockerDoyle1-1/+1
2019-02-10Human readable message if maximum outputs reacheditalocoin1-0/+1
2019-02-08Add support for V10 protocol with BulletProofV2 and short amount.cslashm1-13/+34
2019-02-08Fix dummy decryption in debug modecslashm1-1/+3
2019-02-08fix log namespacecslashm1-45/+45
2019-02-08New scheme key destination contrfolcslashm7-63/+233
Implies protocol version management.
2019-02-03simplewallet: tell the user to complain to the recipientmoneromooo-monero1-1/+1
for long payment ids
2019-02-03ringct: fix v1 ecdhInfo serializationmoneromooo-monero1-15/+2
The change made for v2 broke v1, and we have no way to know which version we're serializing here. However, since we don't actually care about space savings in this case, we continue serialiazing both mask and amount.
2019-02-02epee: add SSL supportmoneromooo-monero14-30/+168
RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
2019-02-02wallet_rpc_server: remove detached short payment ids supportmoneromooo-monero1-5/+1
2019-02-01cryptonote: Fix enum check in expand_transaction_2Tom Smeding1-1/+1
This was noticed because GCC warned about using an enum value in a boolean context.
2019-02-01cryptonote: Add const-qualifier on comparison functorTom Smeding1-1/+1
The original code did not compile with GCC 8.2.1 in C++17 mode, since comparison functions for std::set's must be invocable as const.
2019-02-01serialization: Use pos_type instead of streamposTom Smeding1-1/+1
According to [1], the ios_base::streampos member type is deprecated, and removed in C++17. This type was an alias for pos_type, which this commit uses instead. [1]: https://en.cppreference.com/w/cpp/io/ios_base
2019-01-30cryptonote_protocol_handler: pad tx messages when using tor/i2pmoneromooo-monero1-1/+1
2019-01-30i2p: initial supportJethro Grassie12-9/+419
2019-01-30blockchain_prune: don't prune before v10moneromooo-monero1-0/+18
This uses system time since it doesn't see the p2p network, so is not 100% accurate
2019-01-29Merge pull request #4988Riccardo Spagni26-692/+2863
973403bc Adding initial support for broadcasting transactions over Tor (Lee Clagett)
2019-01-29Merge pull request #5104Riccardo Spagni1-1/+1
dc0b86ab block_queue: fix late sanity check off by one (moneromooo-monero)
2019-01-28Adding initial support for broadcasting transactions over TorLee Clagett26-692/+2863
- Support for ".onion" in --add-exclusive-node and --add-peer - Add --anonymizing-proxy for outbound Tor connections - Add --anonymous-inbounds for inbound Tor connections - Support for sharing ".onion" addresses over Tor connections - Support for broadcasting transactions received over RPC exclusively over Tor (else broadcast over public IP when Tor not enabled).
2019-01-28block_queue: fix late sanity check off by onemoneromooo-monero1-1/+1
2019-01-28Merge pull request #5062Riccardo Spagni5-315/+336
acfff8d0 rpc: fix internal daemon calls in restricted rpc getting partial data (moneromooo-monero)
2019-01-28Merge pull request #5053Riccardo Spagni7-7/+62
23813c71 blockchain: add --reorg-notify (moneromooo-monero) f6db59b0 notify: handle arbitrary tags (moneromooo-monero) ff959216 notify: warn if the spec contains one of '"\ (moneromooo-monero) 13852678 common: set MONERO_DEFAULT_LOG_CATEGORY for notify and spawn (moneromooo-monero)
2019-01-28rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero5-315/+336
2019-01-28Merge pull request #5080Riccardo Spagni4-8/+44
d294a577 daemon: extend 'print_pl' command, optional filter by type and limit (xiphon)
2019-01-28Merge pull request #5074Riccardo Spagni1-1/+1
b8c5f550 wallet api: don't truncate address in subaddress_account (selsta)
2019-01-28blockchain: add --reorg-notifymoneromooo-monero3-1/+32
This will trigger if a reorg is seen. This may be used to do things like stop automated withdrawals on large reorgs. %s is replaced by the height at the split point %h is replaced by the height of the new chain %n is replaced by the number of new blocks after the reorg
2019-01-28notify: handle arbitrary tagsmoneromooo-monero4-6/+22
2019-01-28notify: warn if the spec contains one of '"\moneromooo-monero1-0/+2
These aren't processed as a shell does, so this may surprise users
2019-01-28common: set MONERO_DEFAULT_LOG_CATEGORY for notify and spawnmoneromooo-monero2-0/+6
2019-01-28Merge pull request #5069Riccardo Spagni1-3/+10
2112060d wallet2: fix duplicate tx notifications for pool txes (moneromooo-monero)
2019-01-28Merge pull request #5068Riccardo Spagni1-1/+1
96e35506 wallet2: fix incorrect patch for determining fork rules (moneromooo-monero)
2019-01-28Merge pull request #5063Riccardo Spagni2-24/+115
11227e0b mnemonics: compare canonical words (lowercase) (moneromooo-monero)
2019-01-28Merge pull request #5056Riccardo Spagni3-10/+11
8258a9e7 wallet: do not check txpool in background mode (moneromooo-monero)
2019-01-28Merge pull request #5055Riccardo Spagni5-9/+43
6c060e6a device: proper handling of user input (selsta)