aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionrecord.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-1/+1
|
* Revert "UI to alert of respend attempt affecting wallet."Wladimir J. van der Laan2014-07-211-7/+3
| | | | | | | | This reverts commit ada5a067c75f19a724cc054286ecf2254e5dbe8f. Conflicts: src/qt/guiconstants.h src/wallet.h
* replaced MINE_ with ISMINE_JaSK2014-07-021-6/+6
|
* Added MINE_ALL = (spendable|watchonly)JaSK2014-07-021-1/+1
|
* Fixed some stuff in TransactionDescJaSK2014-07-021-3/+3
|
* removed default argument values for ismine filterJaSK2014-07-021-1/+1
|
* Watchonly transactions are marked in transaction historyJaSK2014-07-021-0/+7
|
* Watchonly balances are shown separately in gui.JaSK2014-07-021-5/+12
|
* UI to alert of respend attempt affecting wallet.Tom Harding2014-06-271-3/+7
| | | | | | | | | | | | | | | | | Respend transactions that conflict with transactions already in the wallet are added to it. They are not displayed unless they also involve the wallet, or get into a block. If they do not involve the wallet, they continue not to affect balance. Transactions that involve the wallet, and have conflicting non-equivalent transactions, are highlighted in red. When the conflict first occurs, a modal dialog is thrown. CWallet::SyncMetaData is changed to sync only to equivalent transactions. When a conflict is added to the wallet, counter nConflictsReceived is incremented. This acts like a change in active block height for the purpose of triggering UI updates.
* Move network-time related functions to timedata.cpp/hWladimir J. van der Laan2014-06-251-0/+1
| | | | | The network time-offset-mangement functions from util.cpp are moved to timedata.(cpp|h). This breaks the dependency of util on netbase.
* Add AssertLockHeld for cs_main to ChainActive-using functionsWladimir J. van der Laan2014-04-171-0/+2
| | | | | | | | | | All functions that use ChainActive but do not aquire the cs_main lock themselves, need to be called with the cs_main lock held. This commit adds assertions to all externally callable functions that use chainActive or chainMostWork. This will flag usages when built with -DDEBUG_LOCKORDER.
* qt: Modernize 'confirmed' terminology in shown tx statusWladimir J. van der Laan2014-02-281-28/+31
| | | | | | | | | | | | These days we regard transactions with one confirmation to be 'Confirmed'. Waiting for 6 confirmations is a recommendation but should not keep the transaction shown as unconfirmed. Misc code sanity: - Merge maturity/status enums, they had become completely disjunct - 'confirmed' flag is now called 'countsForBalance' for clarity
* Merge pull request #3646Wladimir J. van der Laan2014-02-161-1/+1
|\ | | | | | | 5770254 Copyright header updates s/2013/2014 on files whose last git commit was done in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does. (gubatron)
| * Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron2014-02-091-1/+1
| | | | | | | | | | | | in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
* | qt: GUI for conflicted transactionsWladimir J. van der Laan2014-02-141-1/+5
| | | | | | | | | | | | - Exclamation mark icon for conflicted transactions - Show mouseover status for conflicted transactions as "conflicted" - Don't show inactive transactions on overview page overview
* | Rename IsConfirmed to IsTrusted to better match the intended behavior.Gregory Maxwell2014-02-121-1/+1
|/ | | | This doesn't change the functionality at all.
* Fix off-by-one errors in use of IsFinalTx()Peter Todd2014-01-261-2/+2
| | | | | | | | | | | | | | Previously CreateNewBlock() didn't take into account the fact that IsFinalTx() without any arguments tests if the transaction is considered final in the *current* block, when both those functions really needed to know if the transaction would be final in the *next* block. Additionally the UI had a similar misunderstanding. Also adds some basic tests to check that CreateNewBlock() is in fact mining nLockTime-using transactions correctly. Thanks to Wladimir J. van der Laan for rebase.
* Refactor: move GetValueIn(tx) to tx.GetValueIn()Gavin Andresen2013-11-301-1/+1
| | | | GetValueIn makes more sense as a CTransaction member.
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-9/+11
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* qt: add license header to source filesWladimir J. van der Laan2013-11-041-0/+4
| | | | Closes #839
* Refactor/encapsulate chain globals into a CChain classPieter Wuille2013-10-111-3/+3
|
* qt: add vout index to transaction id in transactions details dialogWladimir J. van der Laan2013-09-061-2/+7
|
* Removed AcceptToMemoryPool method from CTransaction. This method belongs to ↵Eric Lombrozo2013-06-051-2/+2
| | | | | | | | | | | | | | | | | the mempool instance. Removed AreInputsStandard from CTransaction, made it a regular function in main. Moved CTransaction::GetOutputFor to CCoinsViewCache. Moved GetLegacySigOpCount and GetP2SHSigOpCount out of CTransaction into regular functions in main. Moved GetValueIn and HaveInputs from CTransaction into CCoinsViewCache. Moved AllowFree, ClientCheckInputs, CheckInputs, UpdateCoins, and CheckTransaction out of CTransaction and into main. Moved IsStandard and IsFinal out of CTransaction and put them in main as IsStandardTx and IsFinalTx. Moved GetValueOut out of CTransaction into main. Moved CTxIn, CTxOut, and CTransaction into core. Added minimum fee parameter to CTxOut::IsDust() temporarily until CTransaction is moved to core.h so that CTxOut needn't know about CTransaction.
* Display tx nLockTime correctly when set to block #Peter Todd2013-01-091-1/+1
| | | | | | | | | | | | Previously when a transaction was set to lock at a specific block the calculation was reversed, returning a negative number. This broke the UI and caused it to display %n in place of the actual number. In addition the previous calculation would display "Open for 0 blocks" when the block height was such that the next block created would finalize the transaction. Inserted the word "more" and changed the calculation so that the last message would be "Open for 1 more block" to better match user expectations.
* Qt: show mined transactions at depth 1Philip Kaufmann2012-08-241-12/+2
| | | | | - before, we used to show them in GUI when depth >= 2, which could lead to confusion of users, as the RPC behaviour already showed the Tx
* Treat generation (mined) transactions less different from receive transactionsLuke Dashjr2012-08-231-6/+6
| | | | | - Show address receiving the generation, and include it in the correct "account" - Multiple entries in listtransactions output if the coinbase has multiple outputs to us
* 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