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
Jonas Schnelli
7148f5e7d7
Reduce cs_main locks during modal overlay by adding an atomic cache
8 years ago
John Newbery
23e6e64a24
Allow disconnectnode() to be called with node id
...
disconnectnode() can currently only be called with the IP address/port
of the node the user wishes to connect. This commit allows the node to
be disconnected using the nodeid returned by getpeerinfo().
8 years ago
Cory Fields
91ab8f5a99
build: fix bitcoin-config.h regeneration after touching build files
...
This was a long-standing and annoying problem.
If autogen.sh was not manually run after touching configure.ac,
bitcoin-config.h would not be properly regenerated. This causes very subtle
problems when configure appears to enable a new value, but it does not end up
reflected in the build.
8 years ago
Luke Dashjr
a4186dd239
wallet: Use boost to more portably ensure -wallet specifies only a filename
8 years ago
Kalle Alm
9141622a0f
[rpc] Add abortrescan command to RPC interface.
8 years ago
Kalle Alm
75a08e7d17
[wallet] Add support for aborting wallet transaction rescans.
8 years ago
Matt Corallo
608bbccfb9
[qt] Stop treating coinbase outputs differently: show them at 1conf
8 years ago
Matt Corallo
b2c9254205
Check interruptNet during dnsseed lookups
8 years ago
Warren Togami
c9e31c36ff
Clarify importprivkey help text with example of blank label without rescan
...
Occasionally I waste a lot of time not remembering that the second parameter to importprivkey must be blank if you intend to stop rescan with "false" as the third parameter.
8 years ago
John Newbery
883154cbcb
[rpc] rename disconnectnode argument
8 years ago
Matt Corallo
185c7f08be
Avoid reading the old hd master key during wallet encryption
...
This makes SetHDMasterKey responsible for maintinaing the CHDChain
version instead of always creating it with the latest version and
making EncryptWallet responsible for keeping the version from
changing.
8 years ago
Mario Dian
25660e91ef
pass Consensus::Params& to ReceivedBlockTransactions()
8 years ago
Matt Corallo
9fececb2cb
Remove CValidationInterface::UpdatedTransaction
...
This removes another callback from block connection logic, making it
easier to reason about the wallet-RPCs-returns-stale-info issue.
UpdatedTransaction was previously used by the GUI to display
coinbase transactions only after they have a block built on top of
them. This worked fine for in most cases, but only worked due to a
corner case if the user received a coinbase payout in a block
immediately prior to restart. In that case, the normal process of
caching the most recent coinbase transaction's hash would not work,
and instead it would only work because of the on-load -checkblocks
calling DisconnectBlock and ConnectBlock on the current tip.
In order to make this more robust, a full mapWallet loop after the
first block which is connected after restart was added.
8 years ago
aideca
9f82134779
Add friendly output to dumpwallet refs #9564
8 years ago
NicolasDorier
c37e32af0d
[Wallet] Prevent CInputCoin to be in a null state
8 years ago
NicolasDorier
f597dcb7c8
[Wallet] Simplify code using CInputCoin
8 years ago
NicolasDorier
e78bc45810
[Wallet] Decouple CInputCoin from CWalletTx
8 years ago
Jorge Timón
1c897fc3da
Missing includes
8 years ago
Jorge Timón
a1fd450328
Trivial: Remove unneeded includes from .h:
...
- validation.h doesn't need to include chain.h anymore
- Remove unneeded includes from net.h
8 years ago
Jeremy Rubin
f9c88079df
Deduplicate SignatureCacheHasher
...
This moves the SignatureCacheHasher to the sigcache header, out of the anonymous
namespace, so that the tests can import it.
8 years ago
Cory Fields
c851be4b25
net: define NodeId as an int64_t
...
This should make occurances of NodeId wrapping essentially impossible for
real-world usage.
8 years ago
John Newbery
d0cd0bd6d9
Make CWallet::SyncTransactions() interface friendlier
8 years ago
John Newbery
714e4ad13d
AddToWalletIfInvolvingMe should test pIndex, not posInBlock
8 years ago
John Newbery
7fd50c3b70
allow libevent logging to be updated during runtime
8 years ago
John Newbery
5255aca3f4
[rpc] Add logging RPC
...
Adds an RPC to get and set currently active logging categories.
8 years ago
John Newbery
4d9950d3bc
Set BCLog::LIBEVENT correctly for old libevent versions.
8 years ago
practicalswift
66082e0119
[trivial] Fix typos (tempoarily → temporarily, inadvertantly → inadvertently)
8 years ago
Matt Corallo
d89f8adf25
Make DisconnectBlock and ConnectBlock static in validation.cpp
8 years ago
Alex Morcos
68af651498
MOVEONLY: move TxConfirmStats to cpp
8 years ago
Alex Morcos
2332f19bef
Initialize TxConfirmStats in constructor
...
and change to storing as a pointer.
8 years ago
Alex Morcos
5ba81e54e0
Read and Write fee estimate file directly from CBlockPolicyEstimator
8 years ago
Alex Morcos
14e10aa842
Call estimate(Smart)Fee directly from CBlockPolicyEstimator
8 years ago
Alex Morcos
dbb9e3699b
Give CBlockPolicyEstimator it's own lock
8 years ago
Alex Morcos
f6187d6e39
Make processBlockTx private.
8 years ago
Alex Morcos
ae7327b832
Make feeEstimator its own global instance of CBlockPolicyEstimator
8 years ago
KibbledJiveElkZoo
8c3e6c6987
Changed "Send" button default status from true to false
...
Changed the "Send" button's default status from true to false to prevent
quirky Windows autofocus behavior.
8 years ago
Luke Dashjr
c99ab3ca4b
RPC: Allow multiple names for parameters
8 years ago
Allan Doensen
e9ff818b69
Fix for issues with startup and multiple monitors on windows.
8 years ago
practicalswift
9a763d4f86
Remove excess logic.
8 years ago
NicolasDorier
fd44ac1e8b
[Wallet] Rename std::pair<const CWalletTx*, unsigned int> to CInputCoin
8 years ago
John Newbery
dd7e43e438
Fix build warning from #error text
8 years ago
practicalswift
bcca57eff0
[trivial] Fix typo ("improssible" → "impossible")
8 years ago
Matt Corallo
b1a6d4cd56
Take a CTransactionRef in AddToWalletIfInvolvingMe to avoid a copy
8 years ago
Matt Corallo
1c95e2f9c9
Use std::shared_ptr instead of boost::shared_ptr in ScriptForMining
8 years ago