danicoin/src
warptangent fd73d9cc3a
Check and resize if needed at batch transaction start
This currently only affects blockchain_import and blockchain_converter.

When the number of blocks expected for the batch transaction is
provided, make an estimate of the DB space needed. If not enough free
space remains, resize the DB.

The estimate is made based on:
- the average size of the last 500 blocks, or if larger, a min. block
  size of 4k
- a factor for the expanded size a block occupies in the DB across the
  sub-dbs/tables
- a safety factor (1.7) to allow for a "reasonable" average block size
  increase over the batch

Increase the DB size by whichever is greater: the estimated size needed
or a minimum increase size, currently 128 MB.

The conservative factors in the estimate help in testing that the resize
occurs when needed, and without gratuitous size increases. For common
use, the safety factor and minimum increase size could reasonably be
increased.

For testing, setting DEFAULT_MAPSIZE (blockchain_db/lmdb/db_lmdb.h) to 1
<< 27 (128 MB) and recompiling will ensure DB resizes take place sooner
and more frequently.
2015-07-12 00:51:39 -07:00
..
blockchain_db Check and resize if needed at batch transaction start 2015-07-12 00:51:39 -07:00
blockchain_utilities blockchain_utilities: Increase debug statement's log level 2015-07-11 23:54:16 -07:00
common Set dnssec_valid value correctly in dns_utils; fix address_from_url test 2015-06-20 20:02:13 +00:00
connectivity_tool 2014 network limit 1.2 +utils +toc -doc -drmonero 2015-02-20 22:28:03 +01:00
crypto disable non-working optimized slow_hash on 32 bit intel 2015-04-13 16:38:33 -07:00
cryptonote_core account: allow creating an account from a public address and view secret key 2015-06-20 17:33:06 +01:00
cryptonote_protocol cleaning up, removing redundant files, renaming, fixing incorrect licenses 2015-05-31 13:40:18 +02:00
daemon daemon: fix an exit crash 2015-06-14 00:31:09 +01:00
daemonizer cleaning up, removing redundant files, renaming, fixing incorrect licenses 2015-05-31 13:40:18 +02:00
miner 2014 network limit 1.2 +utils +toc -doc -drmonero 2015-02-20 22:28:03 +01:00
mnemonics mnemonics: fix duplicate symbol error 2015-06-23 09:28:52 +02:00
p2p properly decrement p2p socket count 2015-06-06 13:24:33 -04:00
platform year updated in license 2015-01-02 18:52:46 +02:00
rpc core_rpc_server: add a getter for the testnet flag 2015-05-28 23:14:37 +01:00
serialization 2014 network limit 1.1 +utils +toc -doc -drmonero 2015-02-20 22:13:00 +01:00
simplewallet simplewallet: allow creating a wallet from a public address and view secret key 2015-06-20 17:33:14 +01:00
wallet Merge pull request #324 2015-06-20 22:40:47 +02:00
CMakeLists.txt Rename src/blockchain_converter/ to src/blockchain_utilities/ 2015-05-08 14:24:51 -07:00
cryptonote_config.h Integrated addresses (standard address plus payment id) 2015-06-12 16:48:41 +01:00
version.cmake year updated in license 2015-01-02 18:52:46 +02:00
version.h.in onwards to 0.8.8.7 2014-12-13 13:45:57 +02:00