]> Git Repo - VerusCoin.git/commit - src/qt/transactionrecord.cpp
Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress
authorPieter Wuille <[email protected]>
Mon, 14 May 2012 21:44:52 +0000 (23:44 +0200)
committerPieter Wuille <[email protected]>
Thu, 24 May 2012 18:26:19 +0000 (20:26 +0200)
commit1025440184ef100a22d07c7bb543ee45cf169d64
treecd85ae7d981820189e506167e518adaf820aa638
parentfd61d6f5068cf92d34569862b4225f177049a4f0
Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress

This introduces internal types:
* CKeyID: reference (hash160) of a key
* CScriptID: reference (hash160) of a script
* CTxDestination: a boost::variant of the former two

CBitcoinAddress is retrofitted to be a Base58 encoding of a
CTxDestination. This allows all internal code to only use the
internal types, and only have RPC and GUI depend on the base58 code.

Furthermore, the header dependencies are a lot saner now. base58.h is
at the top (right below rpc and gui) instead of at the bottom. For the
rest: wallet -> script -> keystore -> key. Only keystore still requires
a forward declaration of CScript. Solving that would require splitting
script into two layers.
26 files changed:
src/base58.h
src/bitcoinrpc.cpp
src/init.cpp
src/key.h
src/keystore.cpp
src/keystore.h
src/qt/addresstablemodel.cpp
src/qt/messagepage.cpp
src/qt/transactiondesc.cpp
src/qt/transactionrecord.cpp
src/qt/verifymessagedialog.cpp
src/qt/walletmodel.cpp
src/rpcdump.cpp
src/script.cpp
src/script.h
src/test/DoS_tests.cpp
src/test/base58_tests.cpp
src/test/key_tests.cpp
src/test/multisig_tests.cpp
src/test/script_P2SH_tests.cpp
src/test/sigopcount_tests.cpp
src/test/transaction_tests.cpp
src/wallet.cpp
src/wallet.h
src/walletdb.cpp
src/walletdb.h
This page took 0.031555 seconds and 4 git commands to generate.