aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge pull request #5881Wladimir J. van der Laan2015-07-021-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 5d34e16 Add txn_clone.py test (Tom Harding) defd2d5 Better txn_doublespend.py test (Tom Harding) b2b3619 Implement CTransaction::IsEquivalentTo(...) (Tom Harding)
| * | | | Implement CTransaction::IsEquivalentTo(...)Tom Harding2015-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define CTransaction::IsEquivalentTo(const CTransaction& tx) True if only scriptSigs are different. In other words, true if the two transactions are malleability clones. In other words, true if the two transactions have the same effect on the outside universe. In the wallet, only SyncMetaData for equivalent transactions.
* | | | | add CReserveScript to allow modular script keeping/returningJonas Schnelli2015-07-011-5/+6
| | | | | | | | | | | | | | | | | | | | - use one CReserveScript per mining thread
* | | | | fix GetScriptForMining() CReserveKey::keepKey() issueJonas Schnelli2015-06-301-2/+1
| | | | |
* | | | | detach wallet from minerJonas Schnelli2015-06-301-0/+11
| |/ / / |/| | |
* | | | Add FundTransaction method to walletMatt Corallo2015-06-111-11/+114
| |_|/ |/| | | | | | | | Some code stolen from Jonas Schnelli <[email protected]>
* | | Merge pull request #6152Wladimir J. van der Laan2015-06-051-12/+0
|\ \ \ | | | | | | | | | | | | 08d9373 Remove unused code from wallet and validation interface (Michael Ford)
| * | | Remove unused code from wallet and validation interfaceMichael Ford2015-05-181-12/+0
| | | | | | | | | | | | | | | | Fixes #6109
* | | | use const references where appropriatePhilip Kaufmann2015-06-041-1/+1
| | | |
* | | | Merge pull request #6183Wladimir J. van der Laan2015-06-011-5/+5
|\ \ \ \ | | | | | | | | | | | | | | | 28bf062 Fix off-by-one error w/ nLockTime in the wallet (Peter Todd)
| * | | | Fix off-by-one error w/ nLockTime in the walletPeter Todd2015-05-271-5/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #5669Wladimir J. van der Laan2015-05-271-0/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | da29ecb Consensus: MOVEONLY: Move CValidationState from main consensus/validation (jtimon) 27afcd8 Consensus: Refactor: Decouple CValidationState from main::AbortNode() (Cory Fields)
| * | | Consensus: MOVEONLY: Move CValidationState from main consensus/validationjtimon2015-05-151-0/+1
| | | |
* | | | wallet: Introduce constant for `-txconfirmtarget` defaultWladimir J. van der Laan2015-05-181-1/+1
|/ / /
* | | Merge pull request #6055Wladimir J. van der Laan2015-05-061-4/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | a8cdaf5 checkpoints: move the checkpoints enable boolean into main (Cory Fields) 11982d3 checkpoints: Decouple checkpoints from Params (Cory Fields) 6996823 checkpoints: make checkpoints a member of CChainParams (Cory Fields) 9f13a10 checkpoints: store mapCheckpoints in CCheckpointData rather than a pointer (Cory Fields)
| * | | checkpoints: Decouple checkpoints from ParamsCory Fields2015-04-301-4/+5
| | |/ | |/| | | | | | | Pass checkpoint data in as necessary
* | | Merge pull request #6085Wladimir J. van der Laan2015-05-041-5/+5
|\ \ \ | |/ / |/| | | | | | | | b05a89b Non-grammatical language improvements (Luke Dashjr) 7e6d23b Bugfix: Grammar fixes (Corinne Dashjr)
| * | Bugfix: Grammar fixesCorinne Dashjr2015-05-011-5/+5
| | |
* | | Merge pull request #5511Wladimir J. van der Laan2015-04-291-5/+14
|\ \ \ | |/ / |/| | | | | e9c3215 [Wallet] sort pending wallet transactions before reaccepting (dexX7)
| * | [Wallet] sort pending wallet transactions before reacceptingdexX72015-03-211-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During startup, when adding pending wallet transactions, which spend outputs of other pending wallet transactions, back to the memory pool, and when they are added out of order, it appears as if they are orphans with missing inputs. Those transactions are then rejected and flagged as "conflicting" (= not in the memory pool, not in the block chain). To prevent this, transactions are explicitly sorted.
* | | Merge pull request #5696Wladimir J. van der Laan2015-04-261-0/+1
|\ \ \ | | | | | | | | | | | | 691161d Consensus: Create consensus/consensus.h with some constants (jtimon)
| * | | Consensus: Create consensus/consensus.h with some constantsjtimon2015-04-201-0/+1
| | | |
* | | | Show zero value txouts in listunspent.Gregory Maxwell2015-04-201-2/+2
|/ / / | | | | | | | | | | | | | | | | | | It's reasonable that automatic coin selection will not pick a zero value txout, but they're actually spendable; and you should know if you have them. Listing also makes them available to tools like dust-b-gone.
* | / trivial string change in wallet.cpp (the -> that)Philip Kaufmann2015-04-201-1/+1
| |/ |/|
* | wallet: make it possible to disable transaction broadcastWladimir J. van der Laan2015-04-011-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an advanced feature which will disable any kind of automatic transaction broadcasting in the wallet. This gives the user full control of how the transaction is sent. For example they can broadcast new transactions through some other mechanism themselves, after getting the transaction hex through `gettransaction`. This just adds the option `-walletbroadcast=<0,1>`. Right now these transactions will get the status Status: conflicted, has not been successfully broadcast yet They shouldn't be shown as conflicted at all (`walletconflicts` is empty). This status will go away when the transaction is received through the network.
* | Regression test for ResendWalletTransactionsGavin Andresen2015-03-241-23/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a regression test for the wallet's ResendWalletTransactions function, which uses a new, hidden RPC command "resendwallettransactions." I refactored main's Broadcast signal so it is passed the best-block time, which let me remove a global variable shared between main.cpp and the wallet (nTimeBestReceived). I also manually tested the "rebroadcast unconfirmed every half hour or so" functionality by: 1. Running bitcoind -connect=0.0.0.0:8333 2. Creating a couple of send-to-self transactions 3. Connect to a peer using -addnode 4. Waited a while, monitoring debug.log, until I see: ```2015-03-23 18:48:10 ResendWalletTransactions: rebroadcast 2 unconfirmed transactions``` One last change: don't bother putting ResendWalletTransactions messages in debug.log unless unconfirmed transactions were actually rebroadcast.
* | Includes: Do not include main.h from any other headerJorge Timón2015-03-241-0/+1
| |
* | Includes: MOVEONLY: move more method definitions out of wallet.hJorge Timón2015-03-241-0/+68
| |
* | use constant references for strings in functions in wallet/*.*Philip Kaufmann2015-03-211-1/+1
|/
* refactor: move bdb (bitdb) interaction from init.cpp to wallet.cppJonas Schnelli2015-03-201-0/+53
| | | | this will remove db.h from init.cpp
* Merge pull request #5745Wladimir J. van der Laan2015-03-201-22/+65
| | | | 50c72f2 [Move Only] Move wallet related things to src/wallet/ (Jonas Schnelli)
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-0/+2564
could once be renamed from /src/wallet to /src/legacywallet.