aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionrecord.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Qt] fix transaction details output-index to reflect vout indexJonas Schnelli2017-01-261-3/+4
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Make CWalletTx store a CTransactionRef instead of inheritingPieter Wuille2016-12-021-9/+9
|
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* Merge #7707: [RPC][QT] UI support for abandoned transactionsJonas Schnelli2016-04-041-0/+2
|\ | | | | | | 8efed3b [Qt] Support for abandoned/abandoning transactions (Jonas Schnelli)
| * [Qt] Support for abandoned/abandoning transactionsJonas Schnelli2016-04-041-0/+2
| |
* | [Qt] remove trailing output-index from transaction-idJonas Schnelli2016-03-291-4/+3
|/ | | | The trailing output-index leads to cases where the user can't look-up the transaction ID in various systems.
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Add have-pubkey distinction to ISMINE flagsMatt Corallo2015-07-201-3/+3
| | | | | | | This indicates that, eg, we have a public key for a key which may be used as a pay-to-pubkey-hash. It generally means that we can create a valid scriptSig except for missing private key(s) with which to create signatures.
* Fix off-by-one error w/ nLockTime in the walletPeter Todd2015-05-271-1/+1
| | | | | | | | | | | | | | | Previously due to an off-by-one error the wallet ignored nLockTime-by-height transactions that would be valid in the next block even though they are accepted into the mempool. The transactions wouldn't show up until confirmed, nor would they be included in the unconfirmed balance. Similar to the mempool behavior fix in 665bdd3b, the wallet code was calling IsFinalTx() directly without taking into account the fact that doing so tells you if the transaction could have been mined in the *current* block, rather than the next block. To fix this we strip IsFinalTx() of non-consensus-critical functionality, removing the default arguments, and add CheckFinalTx() to check if a transaction will be final in the next block.
* Consensus: Create consensus/consensus.h with some constantsjtimon2015-04-201-0/+1
|
* Includes: Do not include main.h from any other headerJorge Timón2015-03-241-0/+3
|
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-1/+1
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* [Wallet] Watch-only fixesCozz Lovan2014-10-031-1/+1
|
* Use a typedef for monetary valuesMark Friedenbach2014-09-261-6/+6
|
* 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.