dash/src
Pieter Wuille 4addb2c066 Refactor keytime/metadata and wallet encryption bugfix
Refactor keytime:
* Key metadata is kept in a CWallet::mapKeyMetadata (std::map<CKeyId,CKeyMetadata>).
* When generating a new key, time is put in that map, and new key is written.
* AddKeyPubKey and AddCryptedKey do not take a creation time argument, but instead
  pull it from that map, if it exists there.

Bugfix:
* AddKeyPubKey and AddCryptedKey in CWallet didn't override the CKeyStore
  definition anymore. This is fixed, as they no longed need the nCreationTime
  argument now.

Also a few related other changes:
* Metadata can be overwritten.
* Only GenerateNewKey calls GetTime(), as it's the only place where we know for
  sure a key was not constructed earlier.
* When the nTimeFirstKey is known to be inaccurate, it is set to the value 1
  (instead of 0, which would mean unknown).
* Use CPubKey instead of std::vector<unsigned char> where possible.
2013-06-20 01:31:18 +02:00
..
json
leveldb Allow files to be opened for reading multiple times 2013-04-28 14:15:34 +02:00
obj
obj-test
qt allow txindex to be removed and add a reindex dialog 2013-06-10 19:27:57 +02:00
test Removed AcceptToMemoryPool method from CTransaction. This method belongs to the mempool instance. 2013-06-05 23:15:20 -07:00
addrman.cpp
addrman.h
alert.cpp CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
alert.h
allocators.h Make signature cache store CPubKeys 2013-05-30 05:20:23 +02:00
base58.h CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
bignum.h Use a uint256 for bnChainWork 2013-04-12 12:17:28 +02:00
bitcoind.cpp build: add global var for whether or not the gui is enabled 2013-06-04 03:54:14 -04:00
bitcoinrpc.cpp Merge pull request #2747 from luke-jr/getblock_verbose0 2013-06-10 08:16:39 -07:00
bitcoinrpc.h Merge pull request #2716 from laanwj/2013_05_30_getwork 2013-05-30 09:15:16 -07:00
bloom.cpp
bloom.h
checkpoints.cpp Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable 2013-05-24 11:10:53 -04:00
checkpoints.h Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variable 2013-05-24 11:10:53 -04:00
checkqueue.h
clientversion.h Prepare for 0.9 merge window 2013-05-30 04:43:51 +02:00
compat.h Allow select()ing up to 1024 file descriptors on Windows 2013-04-26 01:31:10 +02:00
core.cpp Removed AcceptToMemoryPool method from CTransaction. This method belongs to the mempool instance. 2013-06-05 23:15:20 -07:00
core.h fix comment about dust logic 2013-06-11 05:06:02 +02:00
crypter.cpp CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
crypter.h CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
db.cpp Get rid of db dependencies on main 2013-06-05 20:36:10 -07:00
db.h Get rid of db dependencies on main 2013-06-05 20:36:10 -07:00
hash.cpp
hash.h Make CPubKey statically allocated 2013-05-30 05:18:42 +02:00
init.cpp allow txindex to be removed and add a reindex dialog 2013-06-10 19:27:57 +02:00
init.h
key.cpp CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
key.h Make signature cache store CPubKeys 2013-05-30 05:20:23 +02:00
keystore.cpp CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
keystore.h CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
leveldb.cpp Reduce number of open LevelDB files to 64 2013-04-24 00:10:23 +02:00
leveldb.h
limitedmap.h
main.cpp Remove broken option to skip input checking for wallet txn. 2013-06-13 22:28:03 +02:00
main.h Remove broken option to skip input checking for wallet txn. 2013-06-13 22:28:03 +02:00
makefile.linux-mingw Created core.h/core.cpp, added to makefiles. Started moving core structures from main to core beginning with COutPoint. 2013-06-05 23:14:52 -07:00
makefile.mingw Created core.h/core.cpp, added to makefiles. Started moving core structures from main to core beginning with COutPoint. 2013-06-05 23:14:52 -07:00
makefile.osx Created core.h/core.cpp, added to makefiles. Started moving core structures from main to core beginning with COutPoint. 2013-06-05 23:14:52 -07:00
makefile.unix Created core.h/core.cpp, added to makefiles. Started moving core structures from main to core beginning with COutPoint. 2013-06-05 23:14:52 -07:00
mruset.h
net.cpp send tx relay flag with version 2013-06-11 23:29:41 +02:00
net.h Removed the main.h include from net.cpp. 2013-06-06 00:04:33 -07:00
netbase.cpp fix !O_NONBLOCK where ~O_NONBLOCK was meant 2013-04-27 15:37:26 +02:00
netbase.h
noui.cpp
protocol.cpp Removed net.cpp's dependency on init.h. 2013-06-05 20:36:10 -07:00
protocol.h
rpcblockchain.cpp Merge pull request #2747 from luke-jr/getblock_verbose0 2013-06-10 08:16:39 -07:00
rpcdump.cpp CSecret/CKey -> CKey/CPubKey split/refactor 2013-05-30 05:20:21 +02:00
rpcmining.cpp Moved UpdateTime out of CBlockHeader and moved CBlockHeader into core. 2013-06-05 23:15:20 -07:00
rpcnet.cpp
rpcrawtransaction.cpp Remove broken option to skip input checking for wallet txn. 2013-06-13 22:28:03 +02:00
rpcwallet.cpp Removed AcceptToMemoryPool method from CTransaction. This method belongs to the mempool instance. 2013-06-05 23:15:20 -07:00
script.cpp Removed script.cpp's dependence on main.h 2013-06-05 23:15:20 -07:00
script.h Removed AcceptToMemoryPool method from CTransaction. This method belongs to the mempool instance. 2013-06-05 23:15:20 -07:00
serialize.h
sync.cpp
sync.h
threadsafety.h
txdb.cpp Improve gettxoutsetinfo command 2013-05-01 17:21:43 +02:00
txdb.h
ui_interface.h
uint256.h Specified base_uint component size 2013-05-07 20:03:17 -05:00
util.cpp changes to thread code (directly use boost::thread) 2013-06-10 19:49:54 +02:00
util.h fixed: don't use thread::sleep_for where it's known to be broken 2013-06-14 00:01:57 -04:00
version.cpp
version.h
wallet.cpp Refactor keytime/metadata and wallet encryption bugfix 2013-06-20 01:31:18 +02:00
wallet.h Refactor keytime/metadata and wallet encryption bugfix 2013-06-20 01:31:18 +02:00
walletdb.cpp Refactor keytime/metadata and wallet encryption bugfix 2013-06-20 01:31:18 +02:00
walletdb.h Refactor keytime/metadata and wallet encryption bugfix 2013-06-20 01:31:18 +02:00