Switch to CCoins & CCoinsView approach
authoralex <alex@alex-VirtualBox.(none)>
Sat, 18 Jan 2014 20:10:48 +0000 (00:10 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Sat, 18 Jan 2014 20:10:48 +0000 (00:10 +0400)
commit2e4d3252d0398df2535befcd0176ae00e360e3a1
tree3bcf09f124f743055477e78632eb68a8cef8a56c
parent05f0aaf76e6da88f32b3b7c80d22c830396aa8bb
Switch to CCoins & CCoinsView approach

This commit replaces old transactions index with unspent coins database
which contains a basic metadata like heights, amounts,
coinstake/coinbase flags and timestamps.

We still need access to blockchain for proof-of-stake blocks
validation. Current CheckProofOfStake() uses the coin database to
find the block height, and then scans that block to find the dependency
of coinstake kernel.
28 files changed:
novacoin-qt.pro
src/checkpoints.cpp
src/db.cpp
src/db.h
src/init.cpp
src/kernel.cpp
src/leveldb/build_detect_platform [changed mode: 0755->0644]
src/main.cpp
src/main.h
src/makefile.bsd
src/makefile.linux-mingw
src/makefile.mingw
src/makefile.osx
src/makefile.unix
src/miner.cpp
src/qt/transactiondesc.cpp
src/rpcmining.cpp
src/rpcrawtransaction.cpp
src/rpcwallet.cpp
src/script.cpp
src/script.h
src/txdb-leveldb.cpp [deleted file]
src/txdb-leveldb.h [deleted file]
src/txdb.h [deleted file]
src/util.cpp
src/util.h
src/wallet.cpp
src/wallet.h