Commit Graph

1347 Commits

Author SHA1 Message Date
Thomas Winget
204ed981b0
Rename function for clarity
As BlockchainDB::get_output_key was changed to return a struct containing
the output key along with two other pieces of metadata for the output, the
function name is now changed to be get_output_data.

In addition, the database handles in db_bdb and db_lmdb were renamed
from m_output_keys to m_output_data to mirror this.
2015-12-01 15:55:17 -05:00
Riccardo Spagni
c399dcefd5
Merge pull request #471
2af2c74 blockchain_dump: fix build without berkeley db (moneromooo-monero)
2015-11-01 14:14:58 +02:00
Riccardo Spagni
c9b8597fc2
Merge pull request #469
01ccf40 simplewallet: add a set default-mixin command (moneromooo-monero)
2015-11-01 14:14:28 +02:00
Riccardo Spagni
f33216f612
Merge pull request #467
da90892 ipc: do NOT build with -Wno-write-strings (moneromooo-monero)
2e7c83c ipc: regenerate from patched zproto (moneromooo-monero)
035b22d ipc: fix a const trolling issue (moneromooo-monero)
383d96f daemon_deprecated_rpc: fix and simplify NUL terminated buffer handling (moneromooo-monero)
81d89c0 ipc: fix const issues (moneromooo-monero)
939b1d1 daemon_deprecated_rpc: fix signedness warning (moneromooo-monero)
359d626 daemon_ipc_handlers: return after error when getting random outs (moneromooo-monero)
d7a0de6 daemon_ipc_handers: fix check_core_ready returning ready when not ready (moneromooo-monero)
ead65ba daemon_ipc_handlers: fix inverted return value in check_core_busy documentation (moneromooo-monero)
33a8746 daemon_ipc_handlers: ctor/dtor cleanup (moneromooo-monero)
424d09b daemon: restore command line and console commands ability (moneromooo-monero)
19c844f daemon_deprecated_rpc: fix misc leaks and potential uses after free (moneromooo-monero)
3ca7c00 rpc: misc tweaks (moneromooo-monero)
2015-11-01 14:13:40 +02:00
Riccardo Spagni
3a09f858e7
Merge pull request #466
64ec3c3 wallet2: fix CLANG compile error (moneromooo-monero)
2015-11-01 14:13:13 +02:00
moneromooo-monero
da90892774
ipc: do NOT build with -Wno-write-strings
It is evil, and can make real bugs.
2015-10-31 21:10:25 +00:00
moneromooo-monero
2e7c83c126 ipc: regenerate from patched zproto
To fix some more const trolling issues
2015-10-31 21:10:23 +00:00
moneromooo-monero
035b22d883
ipc: fix a const trolling issue
This file doesn't appear to be generated, but there's a version
that's generated in monero-0mq, so I'm not super certain...
2015-10-31 20:59:42 +00:00
moneromooo-monero
383d96f5e2
daemon_deprecated_rpc: fix and simplify NUL terminated buffer handling
Remove the arbitrary 1000 byte limit, get the large buffers off the
stack, and fix user controlled stack smashing which could plausibly
lead to arbitrary code execution.
2015-10-31 20:53:30 +00:00
moneromooo-monero
81d89c0301
ipc: fix const issues
Files were regenerated with a patched zproto generator
2015-10-31 20:53:20 +00:00
moneromooo-monero
939b1d11f0
daemon_deprecated_rpc: fix signedness warning 2015-10-31 20:03:04 +00:00
moneromooo-monero
359d62642b
daemon_ipc_handlers: return after error when getting random outs 2015-10-31 20:02:55 +00:00
moneromooo-monero
d7a0de604b
daemon_ipc_handers: fix check_core_ready returning ready when not ready 2015-10-31 20:02:47 +00:00
moneromooo-monero
ead65ba824
daemon_ipc_handlers: fix inverted return value in check_core_busy documentation 2015-10-31 20:02:42 +00:00
moneromooo-monero
33a87469c0
daemon_ipc_handlers: ctor/dtor cleanup
Reset pointers to NULL when stopped, stop if trying to init
a non stop server, remove copy pasted doc block that doesn't
make sense for stop.
2015-10-31 20:02:36 +00:00
moneromooo-monero
424d09bc14
daemon: restore command line and console commands ability
as well as a few commands for which we have 0MQ IPC for.
2015-10-31 20:02:31 +00:00
moneromooo-monero
19c844f623
daemon_deprecated_rpc: fix misc leaks and potential uses after free 2015-10-31 20:02:26 +00:00
moneromooo-monero
3ca7c008db
rpc: misc tweaks
- make the execute flag int and volatile (used as signal comms)
- do not execute all the RPC shutdown in the signal context
- do not busy wait while waiting for the signal
2015-10-31 20:02:15 +00:00
moneromooo-monero
2af2c74000
blockchain_dump: fix build without berkeley db 2015-10-30 22:48:58 +00:00
moneromooo-monero
01ccf404d6
simplewallet: add a set default-mixin command
The default default mixin is 4. It can now be changed per wallet.
2015-10-30 21:19:53 +00:00
moneromooo-monero
64ec3c3414
wallet2: fix CLANG compile error 2015-10-30 17:15:59 +00:00
Riccardo Spagni
cc2a3aadad
Merge pull request #464
e200dd4 rpc: fix start_mining and status RPC crashes (moneromooo-monero)
2015-10-30 09:13:18 +02:00
Riccardo Spagni
2c4ff0fce7
Merge pull request #462
f8fd7f5 blockchain_utilities: properly exit on error (moneromooo-monero)
2015-10-30 09:12:34 +02:00
Riccardo Spagni
e288de1bc6
Merge pull request #459
8670c6a Remove some old/obsolete/unused code (moneromooo-monero)
2015-10-30 09:11:48 +02:00
Riccardo Spagni
ce44d75993
Merge pull request #458
8db441a common: const and init list pedantry (moneromooo-monero)
2015-10-30 09:11:10 +02:00
Riccardo Spagni
1a5755cf24
Merge pull request #456
9c6c1be Fix a possibly-unused warning, and rationalize types (moneromooo-monero)
2015-10-30 09:10:29 +02:00
moneromooo-monero
e200dd4eb3
rpc: fix start_mining and status RPC crashes
They check whether they're running on testnet by accessing the
m_rpc_server object, which does not exist when in RPC mode.

Also, fix hard_fork_info being called with the wrong API.
2015-10-28 18:11:16 +00:00
moneromooo-monero
f8fd7f5500
blockchain_utilities: properly exit on error
Replace boolean values and exceptions where appropriate
2015-10-27 16:17:29 +00:00
moneromooo-monero
8670c6a301
Remove some old/obsolete/unused code
git history's here if needed to get any of this back
2015-10-27 11:30:37 +00:00
moneromooo-monero
8db441a2b1
common: const and init list pedantry 2015-10-27 09:38:04 +00:00
moneromooo-monero
9c6c1be7ad
Fix a possibly-unused warning, and rationalize types 2015-10-27 09:11:10 +00:00
Riccardo Spagni
a34b3a1f8e
Merge pull request #454
9d4e0d8 Build fixes for the old blockchain_storage version (moneromooo-monero)
2015-10-27 09:07:08 +02:00
Riccardo Spagni
d317e57cde
Merge pull request #452
7ea55d7 db_bdb: add versioning, to detect incompatible format changes (moneromooo-monero)
ebd8711 db_lmdb: add versioning, to detect incompatible format changes (moneromooo-monero)
2015-10-27 09:06:33 +02:00
moneromooo-monero
9d4e0d82cf
Build fixes for the old blockchain_storage version 2015-10-26 22:37:16 +00:00
moneromooo-monero
7ea55d72d8
db_bdb: add versioning, to detect incompatible format changes 2015-10-26 18:10:49 +00:00
moneromooo-monero
ebd871199d
db_lmdb: add versioning, to detect incompatible format changes 2015-10-26 18:10:42 +00:00
Riccardo Spagni
12508cb35c
Merge pull request #439
36252b9 hardfork: switch voting to block minor version (moneromooo-monero)
2015-10-26 18:07:26 +02:00
Riccardo Spagni
a014be40e1 renamed folder 2015-10-26 18:05:26 +02:00
Riccardo Spagni
6665ae4e61
Merge pull request #449
87425c2 rpc: fix hard_fork_info RPC (moneromooo-monero)
33b96d8 rpc: fix a few commands not working as command line (moneromooo-monero)
2015-10-26 18:04:23 +02:00
Riccardo Spagni
63d27665d4
Merge pull request #447
36b2863 daemon: add a status command (moneromooo-monero)
2015-10-26 18:03:56 +02:00
Riccardo Spagni
d061c22012
Merge pull request #445
ac92a1b Fix leak on real output when using a very recent output (moneromooo-monero)
2015-10-26 18:03:26 +02:00
Riccardo Spagni
49a9ce5261
Merge pull request #443
3ba97a2 blockchain_utilities: new blockchain_dump diagnostic tool (moneromooo-monero)
e3fe459 Add functions to iterate through blocks, txes, outputs, key images (moneromooo-monero)
bfc9740 db_bdb: record numbers for recno databases start at 1 (moneromooo-monero)
03b15c4 db_bdb: DB_KEYEMPTY is also not found for non-top recon fields (moneromooo-monero)
45d73a4 blockchain_db: use the DNE exceptions where appropriate (moneromooo-monero)
2015-10-26 18:01:45 +02:00
Riccardo Spagni
d76ce2ba0c
Merge pull request #441
9556017 console_handler: silence spurious message when exiting daemon (moneromooo-monero)
2015-10-26 18:00:41 +02:00
moneromooo-monero
87425c2460
rpc: fix hard_fork_info RPC
I had never tested it, obviously
2015-10-26 10:20:47 +00:00
moneromooo-monero
33b96d838b
rpc: fix a few commands not working as command line
The method name to the "json_rpc" commands are names, not part
of URLs.
2015-10-26 10:20:41 +00:00
moneromooo-monero
36b28631b1
daemon: add a status command
Displays current block height and target, net hash, hard fork
basic info, and connections.
Useful as a basic user friendly "what's going on here" command.
2015-10-25 21:38:46 +00:00
moneromooo-monero
ac92a1b26b
Fix leak on real output when using a very recent output
The wallet and the daemon applied different height considerations
when selecting outputs to use. This can leak information on which
input in a ring signature is the real one.

Found and originally fixed by smooth on Aeon.
2015-10-25 16:36:55 +00:00
moneromooo-monero
3ba97a21e9
blockchain_utilities: new blockchain_dump diagnostic tool
It dumps data from the blockchain to a JSON format, and is
intended to help detect differences between data held in
different database formats.
2015-10-25 12:39:55 +00:00
moneromooo-monero
e3fe4597cf
Add functions to iterate through blocks, txes, outputs, key images 2015-10-25 12:39:29 +00:00
moneromooo-monero
bfc97401ae
db_bdb: record numbers for recno databases start at 1 2015-10-25 12:37:18 +00:00