aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionrecord.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille2012-05-241-6/+7
| | | | | | | | | | | | | | | | | 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.
* Fine-grained UI updatesWladimir J. van der Laan2012-05-201-92/+89
| | | | | | | | | | | | | | | | | | | Gets rid of `MainFrameRepaint` in favor of specific update functions that tell the UI exactly what changed. This improves the efficiency of various handlers. Also fixes problems with mined transactions not showing up until restart. The following notifications were added: - `NotifyBlocksChanged`: Block chain changed - `NotifyKeyStoreStatusChanged`: Wallet status (encrypted, locked) changed. - `NotifyAddressBookChanged`: Address book entry changed. - `NotifyTransactionChanged`: Wallet transaction added, removed or updated. - `NotifyNumConnectionsChanged`: Number of connections changed. - `NotifyAlertChanged`: New, updated or cancelled alert. As this finally makes it possible for the UI to know when a new alert arrived, it can be shown as OS notification. These notifications could also be useful for RPC clients. However, currently, they are ignored in bitcoind (in noui.cpp). Also brings back polling with timer for numBlocks in ClientModel. This value updates so frequently during initial download that the number of signals clogs the UI thread and causes heavy CPU usage. And after initial block download, the value changes so rarely that a delay of half a second until the UI updates is unnoticable.
* Clean up warningsPieter Wuille2012-05-091-1/+1
| | | | | | * Use -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameters * Remove xCXXFLAGS usage in makefile.unix * Fix several recent and older sign-compare warnings
* Remove no-longer used UI hints in bitcoin coreWladimir J. van der Laan2012-04-211-1/+1
| | | | The Qt UI has its own associated structures for temporary transaction state / cache.
* Remove headers.hPieter Wuille2012-04-171-1/+1
|
* Remove unused and unreachable codeWladimir J. van der Laan2012-04-171-6/+0
|
* Restructure credit transaction decomposition (solves issue #689)Wladimir J. van der Laan2012-02-061-37/+23
| | | | | | | When a transaction has multiple outputs that go to the wallet, list these as multiple transactions in the UI. This is also applied to generated (coinbase) transactions. Also makes the code shorter and easier to understand.
* Fix transaction type in UI: not all tx'es with "from"/"to" field are ↵Wladimir J. van der Laan2011-12-281-20/+19
| | | | | | | necessarily IP tx'es - Also, prepare for OP_EVAL by calling all transactions without bitcoin address "SendToOther"/"RecvFromOther", (IP tx'es are so rare they can be put together with funky EV_EVAL scripts)
* Fix broken ExtractAddress (refactored, made callers check for addresses in ↵Gavin Andresen2011-12-221-2/+2
| | | | keystore if they care)
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-11/+9
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-9/+11
|
* Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen2011-12-191-1/+1
|
* Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-07-271-1/+1
| | | | | Conflicts: src/script.cpp
* Merge remote branch 'upstream/master'Wladimir J. van der Laan2011-07-261-6/+8
| | | | | Conflicts: src/bitcoinrpc.cpp
* remove magic number: change threshold for nLockTime to constantWladimir J. van der Laan2011-07-091-1/+1
|
* Export functionality for transaction listWladimir J. van der Laan2011-07-071-0/+6
|
* update core to d0d80170a2ca73004e08fb85007fe055cbf4e411 (CWallet class)Wladimir J. van der Laan2011-06-261-10/+11
|
* number of confirmations is no longer magic valueWladimir J. van der Laan2011-06-201-1/+1
|
* remove commented code, use // for one-line comments and comments inside ↵Wladimir J. van der Laan2011-06-181-1/+2
| | | | functions
* move back to original directory structureWladimir J. van der Laan2011-06-111-0/+254