Commit Graph

5346 Commits

Author SHA1 Message Date
moneromooo-monero
d81e9178b8
daemon: print human friendly timestamp too 2019-01-17 00:10:50 +03:00
Howard Chu
d140d13603
Add --restore-date param
Estimate restore height from given date
Check date format early, error out early if invalid
2019-01-17 00:07:03 +03:00
Tadeas Moravec
87300a2f6a
Wallet: Initialize members without default ctor.
Found by Coverity (188336 in Anonimal's Coverity account).
2019-01-17 00:01:24 +03:00
moneromooo-monero
d41415ec48
epee: better network buffer data structure
avoids pointless allocs and memcpy
2019-01-17 00:00:38 +03:00
doy-lee
4f8c3b771f
Remove unused hash in export_key_images 2019-01-16 11:58:44 +03:00
selsta
7e339ea873
wallet api/device: set estimated restore height if none is provided 2019-01-16 11:48:47 +03:00
naughtyfox
0acdc0fe0c
Sync hashchain bug fixed 2019-01-16 01:19:09 +03:00
selsta
35d09f896b
wallet api: don't truncate address in subaddress_account
Same behaviour as subaddress.cpp now.
2019-01-16 01:09:25 +03:00
binaryFate
64c7ced3ed
Update 2019 copyright 2019-01-16 00:31:13 +03:00
rbrunner7
e543d779d8
simplewallet: Show new address after going multisig 2019-01-16 00:31:12 +03:00
Lee Clagett
99533d4592
Remove boost::lexical_cast for uuid and unused uuid function 2019-01-16 00:31:12 +03:00
stoffu
79d614652a
simplewallet: fix help text of rescan_bc to mention the "hard" option 2019-01-16 00:31:12 +03:00
stoffu
59614f874a
blockchain_blackball: make log file name consistent with executable 2019-01-16 00:31:12 +03:00
stoffu
7ea53abfdf
ringct: remove duplicate rv.mixRing = mixRing; in genRctSimple 2019-01-16 00:31:08 +03:00
moneromooo-monero
e3718d7c03
ringct: avoid repeated point conversion 2019-01-15 23:45:14 +03:00
moneromooo-monero
314e24d0ff
blockchain_db: speedup tx output gathering
We know all the data we'll want for getblocks.bin is contiguous
2019-01-15 23:44:32 +03:00
moneromooo-monero
fb3f6e723d
wallet2: cut down on the number of useless derivation threads 2019-01-15 23:44:10 +03:00
moneromooo-monero
ccaffcfbb5
blockchain: fix block rate check for empty blockchains 2019-01-15 23:43:06 +03:00
moneromooo-monero
6f53b0f14e
wallet2: finalize_multisig now rejects non N-1/N multisig wallets 2019-01-15 23:42:31 +03:00
moneromooo-monero
b2cb640b11
simplewallet: fix show_transfers colouring, and add red for failed
Also add the type back, as it was somehow weirdly split into
two different fields, one being a union...
2019-01-15 23:41:13 +03:00
moneromooo-monero
3f4fc508ff
cryptonote_core: revert extra_tx_map
While the lookups are faster, the zeroCommit calls have to be
done again when storing the new outputs in the db, which ends
up making the whole thing slower after all, and the ways this
can be cached aren't very nice code wise, so let's forget it
since the gains aren't very large anyway.
2019-01-15 23:40:06 +03:00
moneromooo-monero
1151ce6e6b
simplewallet: don't subtract 1 to estimate blockchain height
in case it returns 0, and other uses don't, plus it's a estimation anyway.
2019-01-15 23:37:11 +03:00
moneromooo-monero
880d14db91
i18n: filter LANG/LC_LANG for valid characters, and handle @
If there are more valid characters, add them in, I did not find
an actual list.
2019-01-15 23:35:51 +03:00
moneromooo-monero
d0953fb2b7
common: set MONERO_DEFAULT_LOG_CATEGORY for notify and spawn 2019-01-15 23:33:56 +03:00
moneromooo-monero
a9ef699472
notify: warn if the spec contains one of '"\
These aren't processed as a shell does, so this may surprise users
2019-01-15 23:33:46 +03:00
moneromooo-monero
bfd24d58c6
notify: handle arbitrary tags 2019-01-15 23:33:28 +03:00
moneromooo-monero
267e656d8b
blockchain: add --reorg-notify
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-15 23:33:19 +03:00
moneromooo-monero
a17a81b3a7
wallet: do not check txpool in background mode
This avoids the constant message about needed to run refresh
to enter a password.
Also mention the txpool when asking for the password if the
reason is a pool tx.
2019-01-15 23:32:45 +03:00
moneromooo-monero
e789d7c324
crptonote_core: do not error out sending unparsable extra field
extra is arbitrary, and the user may well want to send custom data
2019-01-15 23:28:45 +03:00
moneromooo-monero
83072c2165
core, wallet: remember original text version of destination address 2019-01-15 23:28:34 +03:00
moneromooo-monero
4411a412be
core: include a dummy encrypted payment id when no payment is used
For better transaction uniformity, even though this wastes space.
2019-01-15 23:28:02 +03:00
wowario
2439d2a39d
update checkpoints 2019-01-13 12:37:24 +03:00
jw
d85d908ddc
Merge pull request #153 from wowario/upstream
Upstream
2019-01-08 19:23:19 -08:00
moneromooo-monero
6cbafa9dd9
wallet_api: fix usage of LOG_ERROR 2019-01-08 21:36:17 +03:00
moneromooo-monero
842bcffbb8
blocks: fix checkpoint code generation on OpenBSD
Its od outputs small decimals with leading 0, which means octal in C
2019-01-08 21:36:17 +03:00
moneromooo-monero
c946a35985
message_store: fix error message adding const char * with offset 2019-01-08 21:36:17 +03:00
moneroexamples
41e12d4d29
Make get_output_key method const
get_output_key method is commonly used when working with txs and their key images. Because the method is not const, passing blockchain object though const& or pointers to const is not possible in this context. This is especially problematic in external projects (e.g., projects in moneroexamples) that use monero C++ api to operate on the blockchain and txs.

Thus, having get_output_key method will simplify moving blockchain object around through const references and pointers to const objects.
2019-01-08 21:36:17 +03:00
moneromooo-monero
6c76c778e7
wallet2: clear all payments on soft rescan_bc
They'll get duplicated otherwise
2019-01-08 21:36:16 +03:00
moneromooo-monero
34daa571e3
perf_timer: check allowed categories before logging 2019-01-08 21:36:16 +03:00
moneromooo-monero
70e4e4382e
perf_timer: add a way to get and reset the current time 2019-01-08 21:36:16 +03:00
moneromooo-monero
af2d19cf70
perf_timer: only log to file 2019-01-08 21:36:16 +03:00
moneromooo-monero
28477c75a3
p2p: use vector instead of list for peer lists 2019-01-08 21:36:16 +03:00
moneromooo-monero
0c87b55670
protocol: change standby mode to not wait sleeping 2019-01-08 21:36:15 +03:00
moneromooo-monero
4422b14ac0
epee: avoid string allocation when parsing a pod from string 2019-01-08 21:36:15 +03:00
moneromooo-monero
aad10a6cb0
wallet2: speedup output tracking
It can get heavy for large wallets
2019-01-08 21:36:15 +03:00
moneromooo-monero
ed5b588ca3
wallet: optionally keep track of owned outputs uses 2019-01-08 21:36:14 +03:00
Jethro Grassie
9eedf5f087
ignore child process when exec 2019-01-08 21:36:14 +03:00
moneromooo-monero
8ef2437e5d
perf_timer: make all logs Info level
and make them not default at log level 1
2019-01-08 21:36:14 +03:00
moneromooo-monero
e2095e00ba
singleton: fix missing *this return value in operator=
while there, disable both operator= and copy ctor, since they
are not supposed to be around for a singleton
2019-01-08 21:36:13 +03:00
moneromooo-monero
b494943a10
cryptonote: don't serialize for blob size if already known 2019-01-08 21:36:13 +03:00
selsta
d40acef20b
simplewallet: donate command validate amount 2019-01-08 21:36:13 +03:00
moneromooo-monero
36da8397f8
tx_pool: add a few std::move where it can make a difference 2019-01-08 21:36:13 +03:00
moneromooo-monero
7bb6c00b5e
cryptonote: set tx hash on newly parsed txes when known 2019-01-08 21:36:12 +03:00
moneromooo-monero
f97b2edb3c
db_lmdb: avoid pointless division 2019-01-08 21:36:12 +03:00
moneromooo-monero
1b0fe29ee3
db_lmdb: inline check_open, it's trivial and called everywhere 2019-01-08 21:36:12 +03:00
moneromooo-monero
c3fae517a4
blockchain_db: allocate known size vector only once 2019-01-08 21:36:12 +03:00
moneromooo-monero
442b30eee9
blockchain_db: remove a couple unused functions 2019-01-08 21:36:12 +03:00
Dusan Klinec
8f7add0a05
build: protobuf dependency fixes, libusb build
- docker protobuf dependencies, cross-compilation
- device/trezor protobuf build fixes, try_compile
- libusb built under all platforms, used by trezor for direct connect
2019-01-08 21:36:12 +03:00
moneromooo-monero
e1355ecd3e
util: use fcntl instead of flock, for compatibility
in particular with NFS
2019-01-08 21:36:12 +03:00
moneromooo-monero
a44d54645e
util: set MONERO_DEFAULT_LOG_CATEGORY
Otherwise it'd end up with whatever was included last
2019-01-08 21:36:11 +03:00
moneromooo-monero
4bd63dab9d
blockchain: call deinit in dtor
This ensures the io service that runs in another thread cannot
access data after it's deleted
2019-01-08 21:36:11 +03:00
TheCharlatan
0ad6583329
Add glibc back compat code
To ensure that the binaries compiled by gitian run across many linux
distributions, enforce 2.17 as the minimum libc version supported.
2019-01-08 21:36:10 +03:00
moneromooo-monero
636ffdc7a1
blockchain: fix race between two external mining threads 2019-01-08 21:36:10 +03:00
moneromooo-monero
e55621dbd2
Remove -Werror
It is an annoying piece of garbage
2019-01-08 21:36:10 +03:00
Tadeas Moravec
40d658a327
Simplewallet: Unify usage messages.
Help messages describe the commands usage. When users run the command
with wrong arguments, it usually helpfully offers the usage, too.
Unfortunately, these two usage messages were duplicated in the code and
started to get out of sync.

Fixing with constant strings.
2019-01-01 14:31:21 +03:00
jw
4ba5309da0
Merge pull request #143 from wowario/simple
make simplewallet simple
2018-12-31 14:21:56 -05:00
jw
751c6beca2
Merge pull request #142 from wowario/cmake
move utility binaries to debug build
2018-12-31 14:21:23 -05:00
jw
cf94656674
Merge pull request #141 from wowario/warning
simplewallet: remove warning about reusing keys
2018-12-31 14:21:12 -05:00
jw
d984bd95d7
Merge pull request #140 from wowario/pid
simplewallet: remove payment_id and integrated_address
2018-12-31 14:20:49 -05:00
jw
23b1e28b8d
Merge pull request #138 from fuwa0529/fix-V-clear
remove V.clear
2018-12-31 14:20:29 -05:00
wowario
929e210ad2
update no payment ID message 2018-12-27 23:38:00 +03:00
wowario
9f2ea08a8e
make simplewallet simple 2018-12-27 22:24:05 +03:00
wowario
50fea66409
move utility binaries to cmake debug 2018-12-27 15:30:45 +03:00
wowario
61d21bd236
add warning to wallet rpc 2018-12-27 09:16:53 +03:00
moneromooo-monero
ec18a0df32
simplewallet: remove ability to transfer with detached short payment ids
It seemed like a good idea at the time
2018-12-27 08:35:03 +03:00
wowario
2b66b27fe5
remove payment_id and integrated_address 2018-12-27 08:34:19 +03:00
wowario
98031957e1
remove warning about reusing keys 2018-12-26 23:35:28 +03:00
fuwa
c786fb5a13 remove V.clear, fix:
389d2bc53e (r31751630)
2018-12-21 15:47:49 +08:00
wowario
2e6174addd
rename to wownero 2018-12-18 11:42:36 +03:00
rbrunner7
afc77b45ba
MMS (Multisig Messaging System): Initial version 2018-12-18 11:32:22 +03:00
jw
48ef3ff466
Merge pull request #136 from wowario/cumulative_difficulty
add cumulative difficulty to diff command
2018-12-17 17:25:46 -08:00
wowario
1a8353dd90
add cumulative difficulty to diff command 2018-12-18 01:46:48 +03:00
wowario
28100fbd68
update checkpoints 2018-12-18 01:16:00 +03:00
jw
389d2bc53e
Merge pull request #134 from wowario/old_bp
Support old bulletproof
2018-12-16 21:33:53 -08:00
fuwa
8e428f8ef6
fix output by reverting b9b307d 2018-12-16 13:11:58 +03:00
wowario
27c0af7295
get base fee 2018-12-16 13:11:06 +03:00
wowario
72904ee107
update difficulty 2018-12-15 00:15:15 +03:00
fuwa
65d056aeae
use the predefined diff variable for next-diff 2018-12-15 00:02:07 +03:00
fuwa
fbc506b1f5
fix logic for choosing timestamp-check-window-version 2018-12-15 00:01:51 +03:00
fuwa
54040da1a1
use fee-estimate function to calculate min_fee 2018-12-14 23:00:37 +03:00
fuwa
10b7f2b45f
forbit old bulletproof after new bulletproof HF 2018-12-14 23:00:23 +03:00
fuwa
7759d52a25
Add old bulletproof type query 2018-12-14 23:00:10 +03:00
wowario
5bf7ce14c5
support old BP 2018-12-14 22:58:59 +03:00
jw
7e93cdba07
Merge pull request #131 from wowario/misc
remove monero stuff
2018-12-14 11:33:06 -08:00
wowario
57e8fce462
remove monero stuff 2018-12-14 19:31:44 +03:00
wowario
b58f12e53e
rename file name 2018-12-12 16:17:00 +03:00
wowario
d9649d98cd
Merge remote-tracking branch 'upstream/master' into upstream 2018-12-12 14:58:54 +03:00
Riccardo Spagni
6bc0c7e685
Merge pull request #4927
6456cb41 Bulletproof: Initialize members in default construtor. (Tadeas Moravec)
2018-12-12 12:01:31 +02:00
Riccardo Spagni
5e9225e637
Merge pull request #4925
ab783b17 easylogging++: ensure logger is initialized before main (moneromooo-monero)
9b69a0ae daemon: print monero version at startup when calling a detached daemon (moneromooo-monero)
4d71d463 mlocker: remove early page size log (moneromooo-monero)
2018-12-12 12:01:18 +02:00
Riccardo Spagni
51874e5a40
Merge pull request #4924
0c5dd316 cryptonote: add a set_null for transaction_prefix (moneromooo-monero)
2018-12-12 12:00:50 +02:00