Howard Chu
8e9d8e3364
Use DUPFIXED for tx_indices
...
Small space savings, no measurable speedup
8 years ago
Howard Chu
a12f9365f8
Use DUPFIXED for block_heights
...
Only a small savings...
8 years ago
Howard Chu
38c2277d6f
Use DUPFIXED for spent_keys
8 years ago
warptangent
bf769c32ba
Add back changes from revert.
...
m_tx_outputs doesn't need to be changed, as it's no longer dup list.
8 years ago
warptangent
46b991b362
Use MDB_APPEND mode with two tx subdbs
...
This is possible on those using a tx index as a key.
8 years ago
warptangent
9aadedb1d0
Schema update: tx_indices - consolidate the tx subdbs from 5 to 3
8 years ago
warptangent
a2f518aa01
Schema update: tx_indices - yet less indirection
8 years ago
warptangent
8d12a8df2c
Schema update: tx_indices - improve further with less indirection
8 years ago
warptangent
7c013f66e9
Add batch warning for further review
8 years ago
warptangent
ae0854a431
Schema update: tx_indices
8 years ago
Howard Chu
8d252a4214
Consolidated block info
8 years ago
warptangent
132c666f67
Update schema for "tx_outputs" to use array containing amount output indices
...
This speeds up wallet refresh by directly retrieving a tx's amount output indices.
It removes the indirection and walking the amount output duplicate list
for every amount in each requested tx.
"tx_outputs" is used by:
Amount output indices are needed for wallet refresh.
Global output indices are needed for removing a tx.
Both amount output indices and global output indices are now stored in
an array of 64-bit unsigned ints:
tx_outputs[<tx_hash>] -> [ <a1_oi, a1_gi, a2_oi, a2_gi, ...> ]
Previously it was:
tx_outputs[<tx_hash>] -> duplicate list of <a1_gi, a2_gi, a3_gi, ...>
The amount output list had to be walked for every amount in order to
find each amount's output index, by comparing the amount's global output
index with each one in the duplicate list until a match was found.
See also d045dfa7ce
8 years ago
warptangent
309f8f3d44
blockchain_utilities: Update documentation
8 years ago
luigi1111
7ac1db42c2
get_payments short ID
...
Add support for short/integrated/encrypted IDs to get_payments RPC
8 years ago
Riccardo Spagni
38fed83b65
Merge pull request #703
...
dfca2ae
unit_tests: fix hard fork unit test compilation (warptangent)
8 years ago
Riccardo Spagni
93605eb05f
Merge pull request #702
...
0485d17
blockchain_export: Support BerkeleyDB (warptangent)
41487e3
blockchain_export: Move DB implementation includes (warptangent)
8 years ago
Riccardo Spagni
32dc08d19a
Merge pull request #700
...
bdec7cb
BlockchainLMDB: Use DB error helper consistently (warptangent)
c5932eb
BlockchainLMDB: Add DB error to exception (warptangent)
a49c355
Blockchain: Omit verbose time stats messages by default (warptangent)
8 years ago
Riccardo Spagni
c3af15702f
Merge pull request #698
...
ee7a8b8
Get rid of lmdb_cur (Howard Chu)
8 years ago
Riccardo Spagni
14c1e214ad
Merge pull request #696
...
d57ec75
Fix language (Howard Chu)
8 years ago
Riccardo Spagni
80aa57a6cd
Merge pull request #695
...
f5affbe
More for df239428c0
(Howard Chu)
8 years ago
warptangent
dfca2ae1b5
unit_tests: fix hard fork unit test compilation
...
Match changed BlockchainDB function declaration.
8 years ago
warptangent
0485d17274
blockchain_export: Support BerkeleyDB
...
TEST:
blockchain_export -h
This should show "berkeley" as an available option to --database.
With an existing BerkeleyDB database, run:
blockchain_export --database berkeley
8 years ago
warptangent
41487e32be
blockchain_export: Move DB implementation includes
8 years ago
warptangent
bdec7cbfb3
BlockchainLMDB: Use DB error helper consistently
8 years ago
warptangent
c5932eb5ea
BlockchainLMDB: Add DB error to exception
8 years ago
warptangent
a49c355cae
Blockchain: Omit verbose time stats messages by default
...
This is already the default for the daemon, but by checking a command
line argument and calling a Blockchain member function setter.
Initialize the variable to false so it's not dependent on an external
command-line argument check. This allows utilities like
blockchain_import to have a reasonable default without code changes.
8 years ago
Howard Chu
ee7a8b87f9
Get rid of lmdb_cur
...
We don't need it now with per-txn cursors.
8 years ago
Howard Chu
d57ec7595c
Fix language
8 years ago
Howard Chu
f5affbef26
More for df239428c0
...
Let ARMv7 work again
8 years ago
Riccardo Spagni
a7310031f4
Merge pull request #693
...
2c823c1
Make partial revert consistent (warptangent)
8 years ago
warptangent
2c823c1589
Make partial revert consistent
...
If user-defined comparator is used, subdb shouldn't be opened with
MDB_INTEGERKEY.
TODO: Again, this will be added back with future schema updates.
8 years ago
Riccardo Spagni
e0493e8429
Merge pull request #692
...
df23942
Revert part of 7db89ed2ee
(warptangent)
c9c4060
BlockchainLMDB: Add height and db error to exception (warptangent)
8 years ago
warptangent
df239428c0
Revert part of 7db89ed2ee
...
For now, so existing databases work.
TODO: add these back with future schema updates.
8 years ago
warptangent
c9c4060dc6
BlockchainLMDB: Add height and db error to exception
8 years ago
Riccardo Spagni
95b3b09e11
Merge pull request #689
...
5ab33ca
unit_tests: update test openalias address (moneromooo-monero)
8 years ago
Riccardo Spagni
bf09285443
Merge pull request #688
...
c2a1fee
simplewallet: prompt for private keys when generating wallets (moneromooo-monero)
4513b4c
simplewallet: add a new --restore-from-keys option (moneromooo-monero)
8 years ago
Riccardo Spagni
c3c4e28061
Merge pull request #687
...
5e3557d
move g_test_dbg_lock_sleep from a global to a function level static (moneromooo-monero)
8 years ago
Riccardo Spagni
d60bf4ee36
Merge pull request #686
...
7db89ed
ARMv7: fix unaligned accesses (Howard Chu)
5a07cef
Wrap some more actions in a larger read txn (Howard Chu)
8cc7a36
read txn/cursor stuff (Howard Chu)
86a7f2b
core: check whether an update is needed straight away (moneromooo-monero)
ea5fa5e
core: print "update needed" hard fork notifications in red (moneromooo-monero)
8 years ago
Riccardo Spagni
838f7aba7d
Merge pull request #684
...
283894d
dns_utils: const compatibility with older libunbound (moneromooo-monero)
8 years ago
moneromooo-monero
c2a1fee428
simplewallet: prompt for private keys when generating wallets
...
instead of supplying them on the command line. It's more
unwieldy, but better protects against information leaks.
8 years ago
Howard Chu
7db89ed2ee
ARMv7: fix unaligned accesses
...
And cleanup some key comparators
8 years ago
moneromooo-monero
5ab33cabf6
unit_tests: update test openalias address
...
It was recently changed
8 years ago
Howard Chu
5a07cefe7b
Wrap some more actions in a larger read txn
8 years ago
Howard Chu
8cc7a36f0b
read txn/cursor stuff
...
Could wrap more later.
8 years ago
moneromooo-monero
86a7f2b1e7
core: check whether an update is needed straight away
8 years ago
moneromooo-monero
ea5fa5e9b6
core: print "update needed" hard fork notifications in red
8 years ago
moneromooo-monero
283894d8ff
dns_utils: const compatibility with older libunbound
...
https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=515
8 years ago
moneromooo-monero
4513b4cd2b
simplewallet: add a new --restore-from-keys option
...
It is similar in use to --restore-from-view-key, but also expects
a spend private key.
Requested by luigi1112, and useful to restore MyMonero wallets.
8 years ago
moneromooo-monero
5e3557d2c3
move g_test_dbg_lock_sleep from a global to a function level static
...
This avoids the need to define that variable in every program
which uses epee.
8 years ago
Riccardo Spagni
3860feecb8
Merge pull request #681
...
0eb4d05
db_bdb: add missing include for std::condition_variable (moneromooo-monero)
8 years ago