aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
Commit message (Collapse)AuthorAgeFilesLines
* really s/Doge/Dis/g this timeTomo Ueda2021-09-021-1/+1
|
* Use CAmount for constant amounts tooRoss Nicoll2021-08-081-1/+1
|
* p2p: Reduce BIP125 replace by fee increment valueMichi Lumin2021-08-041-1/+1
|
* Initial back end framework to separate wallet and relay fees + dust.Michi Lumin2021-07-301-1/+6
|
* Add query options to listunspent rpc callPedro Branco2021-02-221-1/+1
|
* Correct dust and changeRoss Nicoll2019-11-031-2/+2
| | | | | Correct dust threshold, which is never less than 1 DOGE. Correct minimum change, which is 1 DOGE.
* Bring 1.14 fees in line with 1.10 (#1425)Ross Nicoll2018-09-191-2/+2
| | | | | | * Disable free transactions * Updating remaining fee calculation constants * Round up to the nearest 1k, not up 1k so the UI fee estimator is correct
* Add Dogecoin current fee calculation logic (#1413)Ross Nicoll2018-09-191-5/+10
| | | Introduces 1 COIN/kb fees, rounded up to the next 1 COIN.
* Merge AuxPoW support from NamecoreRoss Nicoll2018-09-191-78/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes are as below: Wrap CBlockHeader::nVersion into a new class (CBlockVersion). This allows to take care of interpreting the field into a base version, auxpow flag and the chain ID. Update getauxblock.py for new 'generate' RPC call. Add 'auxpow' to block JSON. Accept auxpow as PoW verification. Add unit tests for auxpow verification. Add check for memory-layout of CBlockVersion. Weaken auxpow chain ID checks for the testnet. Allow Params() to overrule when to check the auxpow chain ID and for legacy blocks. Use this to disable the checks on testnet. Introduce CPureBlockHeader. Split the block header part that is used by auxpow and the "real" block header (that uses auxpow) to resolve the cyclic dependency between the two. Differentiate between uint256 and arith_uint256. This change was done upstream, modify the auxpow code. Add missing lock in auxpow_tests. Fix REST header check for auxpow headers. Those can be longer, thus take that into account. Also perform the check actually on an auxpow header. Correctly set the coinbase for getauxblock results. Call IncrementExtraNonce in getauxblock so that the coinbase is actually initialised with the stuff it should be. (BIP30 block height and COINBASE_FLAGS.) Implement getauxblock plus regression test. Turn auxpow test into FIXTURE test. This allows using of the Params() calls. Move CMerkleTx code to auxpow.cpp. Otherwise we get linker errors when building without wallet. Fix rebase with BIP66. Update the code to handle BIP66's nVersion=3. Enforce that auxpow parent blocks have no auxpow block version. This is for compatibility with namecoind. See also https://github.com/namecoin/namecoin/pull/199. Move auxpow-related parameters to Consensus::Params.
* Return errors from importmulti if complete rescans are not successfulRussell Yanofsky2017-02-221-1/+1
| | | | | Github-Pull: #9773 Rebased-From: e2e2f4c856363bbb0e3b5ba4df225f3754c3db39
* wallet: Prevent "overrides a member function but is not marked 'override'" ↵Wladimir J. van der Laan2017-02-151-11/+11
| | | | | | | | | warnings Because it is used inconsistently at least version 5.4.0 of g++ to complains about methods that don't use override. There is two ways to go about this: remove override from the methods having it, or add it to the methods missing it. I chose the second.
* Use importmulti timestamp when importing watch only keysRussell Yanofsky2017-02-101-4/+17
| | | | | | | | | | | | | When importing a watch-only address over importmulti with a specific timestamp, the wallet's nTimeFirstKey is currently set to 1. After this change, the provided timestamp will be used and stored as metadata associated with watch-only key. This can improve wallet performance because it can avoid the need to scan the entire blockchain for watch only addresses when timestamps are provided. Also adds timestamp to validateaddress return value (needed for tests). Fixes #9034.
* Dedup nTimeFirstKey update logicRussell Yanofsky2017-02-101-2/+4
| | | | | | | Also make nTimeFirstKey member variable private. This is just a cleanup change, it doesn't change behavior in any significant way.
* Merge #9378: [trivial] Add documentation for CWalletTx::fFromMe member.Wladimir J. van der Laan2017-02-061-0/+5
|\ | | | | | | 39c77b0 Add documentation for CWalletTx::fFromMe member. (Russell Yanofsky)
| * Add documentation for CWalletTx::fFromMe member.Russell Yanofsky2016-12-151-0/+5
| |
* | wallet: Refactor dummy signature signing for reusabilitySuhas Daftuar2017-01-301-0/+27
| |
* | Merge #9615: Wallet incremental feeWladimir J. van der Laan2017-01-301-0/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4b189c1 Change bumpfee result value from 'oldfee' to 'origfee'. (Alex Morcos) 0c0c63f Introduce WALLET_INCREMENTAL_RELAY_FEE (Alex Morcos) e8021ec Use CWallet::GetMinimumFee in bumpfee (Alex Morcos) ae9719a Refactor GetMinimumFee to give option of providing targetFee (Alex Morcos) fe8e8ef [rpc] Add incremental relay fee to getnetworkinfo (Alex Morcos) 6b331e6 Fix to have miner test aware of new separate block min tx fee (Alex Morcos) de6400d Fix missing use of dustRelayFee (Alex Morcos) 5b15870 Use incrementalRelayFee for BIP 125 replacement (Alex Morcos)
| * | Introduce WALLET_INCREMENTAL_RELAY_FEEAlex Morcos2017-01-261-0/+2
| | | | | | | | | | | | Have wallet's default bump value be higher than the default incrementalRelayFee to future proof against changes to incremental relay fee. Only applies when not setting the fee rate directly.
| * | Refactor GetMinimumFee to give option of providing targetFeeAlex Morcos2017-01-251-0/+5
| | |
* | | Merge #9377: fundrawtransaction: Keep change-output keys by default, make it ↵Wladimir J. van der Laan2017-01-201-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | optional c9f3062 Add fundrawtransactions new reserveChangeKey option to the release notes (Jonas Schnelli) 9eb325d [QA] Add test for fundrawtransactions new reserveChangeKey option (Jonas Schnelli) 9aa4e6a [Wallet] Add an option to keep the change address key, true by default (Jonas Schnelli)
| * | [Wallet] Add an option to keep the change address key, true by defaultJonas Schnelli2017-01-191-1/+1
| | |
* | | Merge #8456: [RPC] Simplified bumpfee command.Wladimir J. van der Laan2017-01-191-0/+12
|\ \ \ | |/ / |/| | | | | | | | | | | cc0243a [RPC] bumpfee (mrbandrews) 52dde66 [wallet] Add include_unsafe argument to listunspent RPC (Russell Yanofsky) 766e8a4 [wallet] Add IsAllFromMe: true if all inputs are from wallet (Suhas Daftuar)
| * | [RPC] bumpfeemrbandrews2017-01-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command allows a user to increase the fee on a wallet transaction T, creating a "bumper" transaction B. T must signal that it is BIP-125 replaceable. T's change output is decremented to pay the additional fee. (B will not add inputs to T.) T cannot have any descendant transactions. Once B bumps T, neither T nor B's outputs can be spent until either T or (more likely) B is mined. Includes code by @jonasschnelli and @ryanofsky
| * | [wallet] Add IsAllFromMe: true if all inputs are from walletSuhas Daftuar2017-01-101-0/+6
| | |
* | | Merge #9222: Add 'subtractFeeFromAmount' option to 'fundrawtransaction'.Wladimir J. van der Laan2017-01-121-1/+1
|\ \ \ | |/ / |/| | | | | 453bda6 Add 'subtractFeeFromOutputs' option to 'fundrawtransaction'. (Chris Moore)
| * | Add 'subtractFeeFromOutputs' option to 'fundrawtransaction'.Chris Moore2016-12-131-1/+1
| |/
* | Try to reduce change output to make needed fee in CreateTransactionAlex Morcos2017-01-061-1/+3
| | | | | | | | Once we've picked coins and dummy-signed the transaction to calculate fee, if we don't have sufficient fee, then try to meet the fee by reducing change before resorting to picking new coins.
* | Merge #9450: Increment MIT licence copyright header year on files modified ↵Wladimir J. van der Laan2017-01-041-1/+1
|\ \ | | | | | | | | | | | | | | | in 2016 27765b6 Increment MIT Licence copyright header year on files modified in 2016 (isle2983)
| * | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | | | | | | | | | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* | | Merge #8776: Wallet refactoring leading up to multiwalletPieter Wuille2017-01-031-0/+4
|\ \ \ | | | | | | | | | | | | | | | | 5394b39 Wallet: Split main logic from InitLoadWallet into CreateWalletFromFile (Luke Dashjr) fb0c934 Wallet: Let the interval-flushing thread figure out the filename (Luke Dashjr)
| * | | Wallet: Split main logic from InitLoadWallet into CreateWalletFromFileLuke Dashjr2016-11-111-0/+1
| | | |
| * | | Wallet: Let the interval-flushing thread figure out the filenameLuke Dashjr2016-11-111-0/+3
| | | |
* | | | SetMerkleBranch: remove unused code, remove cs_main lock requirementJonas Schnelli2016-12-301-1/+1
| |/ / |/| |
* | | Merge #8717: [WALLET] Addition of ImmatureCreditCached to MarkDirty()Wladimir J. van der Laan2016-12-211-0/+1
|\ \ \ | | | | | | | | | | | | a560378 [WALLET] Addition of ImmatureCreditCached to MarkDirty() (Spencer Lievens)
| * | | [WALLET] Addition of ImmatureCreditCached to MarkDirty()Spencer Lievens2016-09-131-0/+1
| | | | | | | | | | | | To protect against possible invalidation and to bring conformity to the code.
* | | | Merge #9262: Prefer coins that have fewer ancestors, sanity check txn before ↵Wladimir J. van der Laan2016-12-201-1/+3
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | ATMP cee1612 reduce number of lookups in TransactionWithinChainLimit (Gregory Sanders) af9bedb Test for fix of txn chaining in wallet (Gregory Sanders) 5882c09 CreateTransaction: Don't return success with too-many-ancestor txn (Gregory Sanders) 0b2294a SelectCoinsMinConf: Prefer coins with fewer ancestors (Gregory Sanders)
| * | | SelectCoinsMinConf: Prefer coins with fewer ancestorsGregory Sanders2016-12-131-1/+3
| | | |
* | | | Make CWalletTx store a CTransactionRef instead of inheritingPieter Wuille2016-12-021-14/+19
|/ / /
* | / Make strWalletFile constJonas Schnelli2016-11-111-4/+2
| |/ |/|
* | Get rid of nType and nVersionPieter Wuille2016-11-071-12/+16
| | | | | | | | | | | | | | | | | | | | | | Remove the nType and nVersion as parameters to all serialization methods and functions. There is only one place where it's read and has an impact (in CAddress), and even there it does not impact any of the recursively invoked serializers. Instead, the few places that need nType or nVersion are changed to read it directly from the stream object, through GetType() and GetVersion() methods which are added to all stream classes.
* | Merge #9071: Declare wallet.h functions inlineWladimir J. van der Laan2016-11-031-2/+2
|\ \ | | | | | | | | | 2ca882a Declare wallet.h functions inline (Pieter Wuille)
| * | Declare wallet.h functions inlinePieter Wuille2016-11-021-2/+2
| | |
* | | Merge #9036: wallet: Change default confirm target from 2 to 6Pieter Wuille2016-11-021-1/+1
|\ \ \ | |/ / |/| | | | | 0fdf810 wallet: Change default confirm target from 2 to 6 (Wladimir J. van der Laan)
| * | wallet: Change default confirm target from 2 to 6Wladimir J. van der Laan2016-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent discussion (in IRC meetings, and e.g. #8989) has shown a preference for the default confirm target for smartfees to be 6 instead of 2, to avoid overpaying fees for questionable gain. 6 is also a compromise between the GUI's pre-#8989 value of 25 and the bitcoind `-txconfirmtarget` default of 2. These were unified in #8989, but this has made the (overly expensive) default of 2 as GUI default.
* | | Merge #8977: [Wallet] Refactor wallet/init interaction (Reaccept wtx, flush ↵Wladimir J. van der Laan2016-11-021-0/+7
|\ \ \ | |/ / |/| | | | | | | | | | | thread) cab1da7 [Wallet] Refactor wallet/init interaction (Reaccept wtx, flush thread) (Jonas Schnelli)
| * | [Wallet] Refactor wallet/init interaction (Reaccept wtx, flush thread)Jonas Schnelli2016-10-201-0/+7
| | |
* | | Return useful error message on ATMP failureinstagibbs2016-10-261-2/+2
|/ /
* | Merge #8287: [wallet] Set fLimitFree = trueWladimir J. van der Laan2016-10-181-1/+1
|\ \ | | | | | | | | | | | | fa8b02d [rpc] rawtx: Prepare fLimitFree to make it an option (MarcoFalke) fa28bfa [wallet] Set fLimitFree = true (MarcoFalke)
| * | [wallet] Set fLimitFree = trueMarcoFalke2016-08-251-1/+1
| | |
* | | Move key derivation logic from GenerateNewKey to DeriveNewChildKeyPatrick Strateman2016-09-301-0/+1
| | |