Patrick Strateman
380498aba4
Move BackupWallet to CWallet::BackupWallet
9 years ago
Patrick Strateman
ecb9741ec3
Move GetAccountBalance from rpcwallet.cpp into CWallet::GetAccountBalance
9 years ago
Gregory Maxwell
d87b198b73
Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.
9 years ago
Cory Fields
34ed64a404
crypter: add tests for crypter
...
Verify that results correct (match known values), consistent (encrypt->decrypt
matches the original), and compatible with the previous openssl implementation.
Also check that failed encrypts/decrypts fail the exact same way as openssl.
9 years ago
Cory Fields
976f9ec264
crypter: add a BytesToKey clone to replace the use of openssl
...
BytesToKeySHA512AES should be functionally identical to EVP_BytesToKey, but
drops the dependency on openssl.
9 years ago
Cory Fields
9049cde4d9
crypter: hook up the new aes cbc classes
9 years ago
Cory Fields
fb96831c1f
crypter: constify encrypt/decrypt
...
This makes CCrypter easier to pass aroundf for tests
9 years ago
Cory Fields
1c391a5866
crypter: fix the stored initialization vector size
...
AES IV's are 16bytes, not 32. This was harmless but confusing.
Add WALLET_CRYPTO_IV_SIZE to make its usage explicit.
9 years ago
MarcoFalke
fa72f7d99d
[doc] Remove outdated line from listunspent RPC help, fix typo
9 years ago
Wladimir J. van der Laan
3e2c946cfd
init: Move berkeleydb version reporting to wallet
...
Move the version reporting to Wallet::Verify, before starting
verification of the wallet.
This removes the dependency of init on a specific wallet database
library.
A further, trivial step towards resolving #7965 .
9 years ago
Patrick Strateman
0fd599767d
Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDisk
9 years ago
Pedro Branco
0bf6f30262
Prevent multiple calls to ExtractDestination
9 years ago
Jonas Schnelli
04eaa90958
Add more clear interface for CoinControl.h regarding individual feerate
9 years ago
Jonas Schnelli
3b35e4896b
[RPC] add feerate option to fundrawtransaction
9 years ago
Wladimir J. van der Laan
b30fb42e49
test: Rename wallet.dat to wallet_test.dat
...
Indicate that the file name is not hardcoded, and a little bit of safety
so that it never nukes the main wallet.
Suggestion by Marco Falke.
9 years ago
Wladimir J. van der Laan
a25a4f5b04
wallet_ismine.h → script/ismine.h
...
Removes conditional dependency of `src/test` on wallet.
Makes multisig and P2SH tests complete without wallet built-in.
9 years ago
Wladimir J. van der Laan
f4eae2d910
test: Create test fixture for wallet
...
Removes all the `#ifdef ENABLE_WALLET` from `test_bitcoin` by
making the wallet tests use their own fixture.
9 years ago
Wladimir J. van der Laan
de39c95c24
test: move accounting_tests and rpc_wallet_tests to wallet/test
...
Move the two other wallet tests to where they belong.
9 years ago
Chris Moore
3107c475a7
fix spelling mistake
9 years ago
Chris Moore
dc0693f637
add missing newline
...
Without the newline I see "bein" where the two lines are concatenated:
Note that all inputs selected must be of standard form and P2SH scripts must *bein* the wallet using importaddress or addmultisigaddress (to calculate fees).
9 years ago
João Barbosa
f2d0944eb3
Add lockUnspents option to fundrawtransaction
9 years ago
João Barbosa
af4fe7fd12
Add change options to fundrawtransaction
9 years ago
Jonas Schnelli
9f7336b457
[Wallet] slightly refactor GetOldestKeyPoolTime()
9 years ago
Jonas Schnelli
4f7c959af1
Refactor IsRBFOptIn, avoid exception
9 years ago
MarcoFalke
fada0c422c
[doc] Fix doxygen comments for members
9 years ago
MarcoFalke
fabbf80f2f
[ui] Move InitError, InitWarning, AmountErrMsg
9 years ago
Wladimir J. van der Laan
fb8a8cf2e6
rpc: Register calls where they are defined
...
Split out methods to every module, apart from 'help' and 'stop' which
are implemented in rpcserver.cpp itself.
- This makes it easier to add or remove RPC commands - no longer everything that includes
rpcserver.h has to be rebuilt when there's a change there.
- Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions.
- Removes most of the bitcoin-specific code from rpcserver.cpp and .h.
Continues #7307 for the non-wallet.
9 years ago
Jonas Schnelli
cef8bdf5d7
[Wallet][RPC] add missing abandon status documentation
9 years ago
João Barbosa
df9e9233dc
Fix lockunspents help message
9 years ago
Jonas Schnelli
263de3d1c8
[Wallet][RPC] add abandoned status to listtransactions
9 years ago
instagibbs
f1bb13c93d
Added companion removeprunedfunds call.
9 years ago
instagibbs
7eb702954e
Add importprunedfunds rpc call
9 years ago
João Barbosa
bb16c8894b
Prevent multiple calls to CWallet::AvailableCoins
9 years ago
Jonas Schnelli
25340b7cd5
[Wallet] refactor wallet/init interaction
9 years ago
Alex Morcos
9e072a6e66
Implement "feefilter" P2P message.
...
The "feefilter" p2p message is used to inform other nodes of your mempool min fee which is the feerate that any new transaction must meet to be accepted to your mempool. This will allow them to filter invs to you according to this feerate.
9 years ago
Denis Lukianov
c5825d2d73
Correct importaddress help reference to importpubkey
9 years ago
Alex Morcos
68d4282774
Fix calculation of balances and available coins.
...
No longer consider coins which aren't in our mempool.
Add test for regression in abandonconflict.py
9 years ago
Pieter Wuille
c3932b3270
List solvability in listunspent output and improve help
9 years ago
MarcoFalke
fa48bb3148
[qt] Remove 0-fee from send dialog
9 years ago
MarcoFalke
fa19b18c63
[wallet] Move hardcoded file name out of log messages
9 years ago
Jonas Schnelli
15e6e13624
[Wallet] optimize return value of InitLoadWallet()
9 years ago
Jonas Schnelli
fc7c60d699
[Wallet] move "load wallet phase" to CWallet
9 years ago
João Barbosa
d6cc6a1830
Use CCoinControl selection in CWallet::FundTransaction
9 years ago
Jonas Schnelli
72c2651581
[Wallet] move wallet help string creation to CWallet
9 years ago
MarcoFalke
fa06ce0949
Fix doxygen comment for payTxFee
9 years ago
Matthew Zipkin
7eef1d0dad
Clarify description of blockindex
...
see issues:
https://github.com/bitcoin-dot-org/bitcoin.org/issues/1237
https://github.com/bitcoin/bitcoin/issues/7532
9 years ago
Wladimir J. van der Laan
f31b6b8995
test: test leading space for ParseHex
...
BerkeleyDB dump files have key and value lines indented.
The salvage code passes these to ParseHex as-is.
Check this in the tests (should just pass with current code).
9 years ago
Wladimir J. van der Laan
ca8fb59ae1
wallet: Warn on unexpected EOF while salvaging wallet
...
Check for EOF before every getline, and warn when reading gets to EOF
before the end of the data.
Stricter error checking could shed more light on issues such as #7463
and #7379 .
9 years ago
instagibbs
c372572595
Fix and cleanup listreceivedbyX documentation
9 years ago
Alex Morcos
5a2b1c0c8b
Don't resend wallet txs that aren't in our own mempool
9 years ago