Thomas Snider
6c914ac176
[wallet] Securely erase potentially sensitive keys/values
8 years ago
John Newbery
ce58e93ec0
Change bitcoin-util-test.py to use Python3
8 years ago
Jorge Timón
c1082a7d35
Chainparams: Use the factory for pow tests
8 years ago
Jorge Timón
2351a064a6
Chainparams: Get rid of CChainParams& Params(std::string)
8 years ago
Jorge Timón
f87f3626e3
Chainparams: Use a regular factory for creating chainparams
8 years ago
Jorge Timón
381a46e38f
Consensus: Policy: MOVEONLY: Move CFeeRate out of the consensus module
...
...from amount.o to policy/feerate.o
Policy, because it moves policy code to the policy directory (common module)
8 years ago
Jorge Timón
330bb5a456
Consensus: Minimal way to move dust out of consensus
8 years ago
Pieter Wuille
bd1f138e73
Add getchaintxstats RPC
8 years ago
practicalswift
6345f0b7ec
Remove unused argument from MarkBlockAsInFlight(...)
8 years ago
Jimmy Song
ed36de59e4
[tests] Update Unit Test for addrman.h/addrman.cpp
...
Add test for adding multiple addresses to address manager
Clean up unnecessary modulo operations
Add test for GetNewBucket's alternate method signature
8 years ago
Gregory Sanders
cb184b3a54
Add constant for maximum stack size
8 years ago
practicalswift
3fe8a83969
Remove unused forward declaration for non-existent ScriptPubKeyToJSON(...)
8 years ago
BtcDrak
1ff2bb4e3e
Remove unused args from GetFetchhFlags()
8 years ago
CryptAxe
3503716f1e
Trivial: remove extra character from comment
8 years ago
Matt Corallo
70d39454ee
Fix potential NPD introduced in b297426c
...
See https://github.com/bitcoin/bitcoin/pull/10290#discussion_r113954232
for more info.
8 years ago
Gregory Sanders
7c588637d4
[Wallet] unset change position when there is no change on exact match
8 years ago
Spencer Lievens
56f09df9d8
[Makefile] Alphabetically Reorder addrdb.cpp
...
To keep conformity.
8 years ago
Pieter Wuille
db994b2de9
Simplify DisconnectBlock arguments/return value
...
DisconnectBlock currently has a complicated interface:
Situation Return value
pfClean != nullptr pfClean == nullptr
All good: true true
Failure: false false
Unclean rewind: true false
with *pfClean=false
Change this to return a tristate enum instead. As an added bonus,
remove the ValidationState& argument which was unused.
8 years ago
John Newbery
77c54b270d
[net] listbanned RPC and QT should show correct banned subnets
8 years ago
jonnynewbs
0ff9320bf5
refactor TxToJSON() and ScriptPubKeyToJSON()
8 years ago
Marcos Mayorga
4fbae77929
Improved efficiency in COutPoint constructors
8 years ago
Pieter Wuille
b297426c96
Add -stopatheight for benchmarking
8 years ago
Alex Morcos
3edbd79a65
cleanup: reduce to one GetMinimumFee call signature
8 years ago
practicalswift
b51aaf1c42
Remove unused C++ code not covered by unit tests
8 years ago
Jimmy Song
dcb69fde5a
[test] Unit test amount.h/amount.cpp
...
Add tests for MoneyRange, binary operators, ToString and a constructor
8 years ago
Russell Yanofsky
02d9f50d5f
[wallet] Remove unneeded legacy getbalance code
8 years ago
Russell Yanofsky
82b7dc373a
[wallet] Add GetLegacyBalance method to simplify getbalance RPC
...
This adds a simpler new implementation of getbalance logic along with asserts
to confirm it behaves identically to the old logic. The old logic is removed in
the next commit.
8 years ago
Jimmy Song
1b144495d0
[test] Add Unit Test for GetListenPort
...
Add very basic unit test for GetListenPort in net_tests.cpp
8 years ago
Karl-Johan Alm
c36ea693ee
[wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call.
8 years ago
Pavel Janík
5ec883667f
Prevent warning: variable 'x' is uninitialized
8 years ago
fanquake
93dbb15954
Remove Clang workaround for Boost 1.46
8 years ago
CryptAxe
94807be8c6
Trivial: fix fee estimate write error log message
8 years ago
Mikerah
dd07068d6b
Fixed typo in documentation for merkleblock.h
8 years ago
Wladimir J. van der Laan
911a4808fb
wallet: Add comment describing the various classes in walletdb.h
8 years ago
Pieter Wuille
f478d98fe4
Fix some empty vector references
...
streams.h has some methods that can be tricked into dereferencing
null pointers or end() iterators. Fix this.
8 years ago
Pieter Wuille
e6756ad335
Switch CCoinsMap from boost to std unordered_map
8 years ago
Pieter Wuille
344a2c4122
Add support for std::unordered_{map,set} to memusage.h
8 years ago
Alex Morcos
c0a273f4c8
Change file format for fee estimates.
...
Move buckets and bucketMap to be stored as part of overall serialization of estimator.
Add some placeholder data so file format is only changed once.
Maintain 3 different TxConfirmStats with potential for different decays and scales.
8 years ago
Russell Yanofsky
fb463d1717
[qt] Don't call method on null WalletModel object
...
This doesn't crash currently because the method doesn't access any object
members, but this behavior is fragile and incompatible with #10102 .
8 years ago
Wladimir J. van der Laan
69d2e9ba67
wallet: Make IsDummy private in CWalletDBWrapper
...
This is only for use in the low-level functions, and CDB is already
a friend class.
8 years ago
Wladimir J. van der Laan
33232810dc
wallet: CWalletDB CDB composition not inheritance
...
CWalletDB now contains a CDB instead of inheriting from it.
This makes it easier to replace the internal transaction with a different
database, without leaking through internals.
8 years ago
Wladimir J. van der Laan
be9e1a968d
wallet: Reduce references to global bitdb environment
8 years ago
Wladimir J. van der Laan
071c95570b
wallet: Get rid of fFileBacked
...
Instead, CWalletDB() with a dummy handle will just give you a no-op
database in which writes always succeeds and reads always fail. CDB
already had functionality for this, so just use that.
8 years ago
Wladimir J. van der Laan
71afe3c099
wallet: Introduce database handle wrapper
...
Abstract database handle from explicit strFilename into
CWalletDBWrapper.
Also move CWallet::Backup to db.cpp - as it deals with representation
details this is a database specific operation.
8 years ago
Pieter Wuille
1d31093d4d
fix tsan: utiltime race on nMockTime
8 years ago
Pieter Wuille
321bbc2079
fix ubsan: bitcoin-tx: not initialize context before IsFullyValid
8 years ago
Jonas Schnelli
4082fb0003
Add missing <atomic> header in clientmodel.h
8 years ago
Jonas Schnelli
928d4a9ac5
Set both time/height header caches at the same time
8 years ago
Jonas Schnelli
610a91719c
Declare headers height/time cache mutable, re-set the methods const
8 years ago
Jonas Schnelli
cf92bce526
Update the remaining blocks left in modaloverlay at init.
8 years ago