Tom Harding
0da6b3fd18
Remove signal DoubleSpendDetected, use function
...
Also removes the need for forward reference to RelayableRespend.
11 years ago
JaSK
a3e192a327
replaced MINE_ with ISMINE_
11 years ago
JaSK
53a2148f0c
fixed bug where validateaddress doesn't display information
11 years ago
JaSK
f28707a845
fixed bug in ListReceived()
11 years ago
JaSK
519dd1c89a
Added MINE_ALL = (spendable|watchonly)
11 years ago
JaSK
23b0506c91
Fixed some stuff in TransactionDesc
11 years ago
JaSK
80dda36a07
removed default argument values for ismine filter
11 years ago
Pieter Wuille
d5087d1ba0
Use script matching rather than destination matching for watch-only.
...
This changes the keystore data format, wallet format and IsMine logic
to detect watch-only outputs based on direct script matching rather
than first trying to convert outputs to destinations (addresses).
The reason is that we don't know how the software that has the spending
keys works. It may support the same types of scripts as us, but that is
not guaranteed. Furthermore, it removes the ambiguity between addresses
used as identifiers for output scripts or identifiers for public keys.
One practical implication is that adding a normal pay-to-pubkey-hash
address via importaddress will not cause payments to the corresponding
full public key to be detected as IsMine. If that is wanted, add those
scripts directly (importaddress now also accepts any hex-encoded script).
Conflicts:
src/wallet.cpp
11 years ago
JaSK
0fa2f8899a
added includedWatchonly argument to listreceivedbyaddress/...account
11 years ago
JaSK
f87ba3df64
added includeWatchonly argument to 'gettransaction' because it affects balance calculation
11 years ago
JaSK
a5c6c5d6df
fixed tiny glitch and improved readability like laanwj suggested
11 years ago
JaSK
d7d5d23b77
Added argument to listtransactions and listsinceblock to include watchonly addresses
11 years ago
JaSK
952877e01c
Showing 'involvesWatchonly' property for transactions returned by 'listtransactions' and 'listsinceblock'.
...
It is only appended when the transaction involves a watchonly address.
11 years ago
JaSK
83f3543f20
Added argument to listaccounts to include watchonly addresses
11 years ago
JaSK
d4640d7d8c
Added argument to getbalance to include watchonly addresses and fixed errors in balance calculation.
11 years ago
JaSK
d2692f6116
Watchonly transactions are marked in transaction history
11 years ago
JaSK
ffd40da361
Watchonly balances are shown separately in gui.
11 years ago
Wladimir J. van der Laan
2935b21103
qt: Hide unspendable outputs in coin control
11 years ago
Pieter Wuille
c8988460a2
Add support for watch-only addresses
...
Changes:
* Add Add/Have WatchOnly methods to CKeyStore, and implementations
in CBasicKeyStore.
* Add similar methods to CWallet, and support entries for it in
CWalletDB.
* Make IsMine in script/wallet return a new enum 'isminetype',
rather than a boolean. This allows distinguishing between
spendable and unspendable coins.
* Add a field fSpendable to COutput (GetAvailableCoins' return type).
* Mark watchonly coins in listunspent as 'watchonly': true.
* Add 'watchonly' to validateaddress, suppressing script/pubkey/...
in this case.
Based on a patch by Eric Lombrozo.
Conflicts:
src/qt/walletmodel.cpp
src/rpcserver.cpp
src/wallet.cpp
11 years ago
Michael Ford
3f7a61fc09
Update Gitian Build guide to include OSX
11 years ago
Michael Ford
9d5ad718cf
Fix formatting in release-process.md
11 years ago
Julian Haight
dd49e92fb0
qt: fix 'opens in testnet mode when presented with a BIP-72 link with no fallback'
...
Passes tests:
```
$ ./bitcoin-qt 'bitcoin:?r=http://www.example.com/ '
.. fixed the original problem - this launches mainnet.
$ ./bitcoin-qt 'bitcoin:mngeNQbTKnmaMbx8EXCYdwUbnt9JJD52cC'
.. launches testnet
$ ./bitcoin-qt -testnet 'bitcoin:1NXXeQRyMFFFRfyUix2o7mk1vhvk2Nxp78'
.. sanity check - launches mainnet.
```
Fixes #4355 . Closes #4411 .
11 years ago
Wladimir J. van der Laan
c9600ce640
Merge pull request #4312
...
fda3fed
libsecp256k1 integration (Pieter Wuille)
5566826
secp256k1: Add build-side changes for libsecp256k1 (Cory Fields)
b150b09
secp256k1: add libtool as a dependency (Cory Fields)
11 years ago
Wladimir J. van der Laan
e442c82faa
Merge pull request #4449
...
462ad22
Clean up release-process.md after OS X gitian changes (Micha)
11 years ago
Wladimir J. van der Laan
2882d594fe
Fix the Qt5 build after d95ba75
...
Sorry, my own fault this time.
11 years ago
Tom Harding
88dd3598d2
Check signatures before respend relay
...
Check that all inputs are completely valid before actually
relaying a double-spend.
11 years ago
Micha
462ad223d6
Clean up release-process.md after OS X gitian changes
...
This is PR #4271 , but with the changes to the descriptors, both the names of the
files and the names of the intermediate build artifact archives, removed.
This also closes #3775 if it goes in, because it covers the changes in
that PR.
11 years ago
Pieter Wuille
fda3fed18a
libsecp256k1 integration
11 years ago
Cory Fields
5566826635
secp256k1: Add build-side changes for libsecp256k1
...
Note: This is added to our existing automake targets rather than as a
libtool-style lib. The switch to libtool-style targets can come later if it
proves to not add any complications.
11 years ago
Cory Fields
b150b09edc
secp256k1: add libtool as a dependency
11 years ago
Gavin Andresen
f04f123407
Merge pull request #4448 from laanwj/2014_07_qt_payment_rq_logging
...
qt: Always log warning/error messages to debug.log
11 years ago
Wladimir J. van der Laan
33fdd99288
qt: Change serious messages from qDebug to qWarning
...
By changing the logging stream for warnings from qDebug to qWarning,
these will always be logged to debug.log.
11 years ago
Wladimir J. van der Laan
d95ba75825
qt: Log messages with type>QtDebugMsg as non-debug
...
More important messages should end up in the log no matter
if -debug=qt is set.
11 years ago
Wladimir J. van der Laan
b29b509612
Merge pull request #4325
...
4aaa017
rework help messages for fee-related options (Philip Kaufmann)
11 years ago
Wladimir J. van der Laan
bcade18bb0
Merge pull request #4447
...
9a6497e
http to https, 2013 to 2014 (Trevin Hofmann)
11 years ago
Wladimir J. van der Laan
dd638dd712
typedef std::map<uint256, CCoins> to CCoinsMap
...
This makes it possible to switch to a more efficient map type
without changing all occurences manually.
Merges half of #4413 .
11 years ago
Philip Kaufmann
8d9cc7d743
fix copyright string in two of our *.rc files
...
- also make comment about rc-files in clientversion.h generic
Merges #4429 .
11 years ago
Wladimir J. van der Laan
9aaa1cadf4
Merge pull request #4397
...
5d59921
add missing BOOST_FOREACH indentation in ThreadSocketHandler() (Philip Kaufmann)
9e9ca2b
small cleanup of #ifdefs in BindListenPort() (Philip Kaufmann)
11 years ago
Trevin Hofmann
9a6497ed07
http to https, 2013 to 2014
11 years ago
Wladimir J. van der Laan
3faf1f8294
test: Fix warning about integer signedness in P2SH tests
11 years ago
Wladimir J. van der Laan
5c184cb850
Merge pull request #4415
...
e35b37b
RPC client: Simplify command line string-to-JSON-value conversion code (Jeff Garzik)
11 years ago
Wladimir J. van der Laan
77888d68d5
Fix the build for Qt5
...
Merging #3883 broke the Qt5 build, define the color in the standard
way.
11 years ago
Gavin Andresen
8ceb28afc3
Merge pull request #3883 from dgenr8/first_double_spend
...
Relay and alert user to double spends
11 years ago
Gavin Andresen
6fba25ef26
Merge pull request #4420 from sipa/skiplist
...
Add a skiplist to the CBlockIndex structure.
11 years ago
Wladimir J. van der Laan
ac26571d2b
Merge pull request #4437
...
de79aaa
Move non-trivial uint256.h methods to uint256.cpp (Pieter Wuille)
11 years ago
Wladimir J. van der Laan
eba8c44fdd
Merge pull request #4440
...
16f33f1
fix RPC error replies (kazcw)
11 years ago
Pieter Wuille
236982c2b6
Add skiplist unit tests
11 years ago
Pieter Wuille
c9a0918330
Add a skiplist to the CBlockIndex structure.
...
This allows fast (O(log n)) access to far predecessor blocks.
Use it to speed up CChain::FindFork and CChain::GetLocator.
11 years ago
Pieter Wuille
aa81564700
Track peers' available blocks
11 years ago
Wladimir J. van der Laan
a11f648585
Merge pull request #4441
...
ffebc1b
Update verify.sh script to point to bitcoin.org (Michael Ford)
11 years ago