Commit graph

2226 commits

Author SHA1 Message Date
Andreas Schildbach
18c63a703f When connecting outputs to inputs, cache its value in the input. This will make sure the fee is also known after a blockchain replay. 2015-01-01 19:53:13 +01:00
Andreas Schildbach
4d3297d334 Add Wallet.reset() to prepare the wallet for a blockchain replay. 2015-01-01 19:50:55 +01:00
Adam Mackler
e77089f739 NPE when invoking PeerGroup.broadcastTransaction() on peer group with no block chain.
The modified line here seems to have been assuming that `pinnedTx` was being
initialized elsewhere, but it wasn't.
2014-12-28 07:17:43 -05:00
Andreas Schildbach
1fae7cadc9 Add creationTimeSeconds to wallet dump. 2014-12-23 18:18:50 +01:00
Tyler Houlihan
3d7d649827 Creating a useful shaded jar, that can be run with java -jar.
This appeared to be in the video for building a simple wallet, but not in the pom itself.
2014-12-23 18:14:15 +01:00
Mike Hearn
f82f160c2c PeerGroup: configure peer as download peer even when there is no chain, but don't configure download params as that would trigger block fetch. 2014-12-21 14:03:13 +01:00
Mike Hearn
8f219ff458 WatchMempol: fix a regression 2014-12-21 13:57:17 +01:00
Mike Hearn
2b6db0dc80 Add an experimental HTTP based peer discovery engine that uses signed gzipped protocol buffers. 2014-12-19 02:30:58 +01:00
Mike Hearn
483f9b50e6 WalletAppKit: allow customisation of the peer discovery engine. 2014-12-19 02:29:44 +01:00
Mike Hearn
211966b17b ECKey: add throwing variants of the verify methods. Can help avoid mistakes when ignoring the result of verify. 2014-12-19 02:29:23 +01:00
Mike Hearn
b00930efcd ECKey: clarify name of parameter 2014-12-19 01:53:16 +01:00
Mike Hearn
92e28bb516 Quieter logging in ConnectionHandler 2014-12-18 14:17:04 +01:00
Mike Hearn
4a4691596b NioClientManager: change logging levels 2014-12-18 14:01:47 +01:00
Mike Hearn
2967e07c8b Change how DownloadProgressTracker waits for progress to avoid possible deadlocks. 2014-12-18 13:59:50 +01:00
Mike Hearn
b25899de58 Rename DownloadListener to DownloadProgressTracker 2014-12-18 13:59:50 +01:00
Andreas Schildbach
36850b1d0e Add warning about randomly generated keys to Wallet constructor. 2014-12-18 13:32:24 +01:00
Andreas Schildbach
89c53a8f8e Add Wallet.fromKeys(). Creates a wallet containing a given set of keys. All further keys will be derived from the oldest key. 2014-12-18 13:32:24 +01:00
Mike Hearn
ae585608e6 ClientConnectionManager.openConnection now returns a future. Some logging about connection failures was removed. 2014-12-18 02:23:21 +01:00
Mike Hearn
200dc1294c Peer: Fix some more crashes that can occur when operating without a blockchain object 2014-12-17 19:23:13 +01:00
Mike Hearn
c18423fde3 Peer: utility for requesting addr data 2014-12-17 18:58:32 +01:00
Mike Hearn
54edb541a2 Peer: Add a convenience accessor 2014-12-17 18:58:16 +01:00
Mike Hearn
9025a65334 Block tester: Bring back UTXO rules when the local node supports them 2014-12-17 01:23:46 +01:00
Mike Hearn
aed7c438ea DatabaseFullPrunedBlockStore: more detailed error message 2014-12-17 01:23:46 +01:00
Mike Hearn
bbd82746ee FullPrunedBlockChain: don't log if script is unparseable and simplify getScript function. 2014-12-17 01:23:46 +01:00
Mike Hearn
7b83e330df Regen proto files 2014-12-17 01:23:46 +01:00
Mike Hearn
6c01d45da7 Update logo 2014-12-17 01:23:46 +01:00
Wojciech Langiewicz
bc24661254 Fix for issue 539, adds atomic operation for changing wallet encryption key/password. 2014-12-13 14:49:37 +01:00
Andreas Schildbach
4e313661df Add isPubKeyOnly and isEncrypted to both ECKey.toString() and DeterministicKey.toString(). 2014-12-11 23:09:10 +01:00
Andreas Schildbach
b2526f0b4d Throw when trying to set creation time of a DeterministicKey that is a leaf in the hierarchy. It would be needlessly stored, but unreadable. 2014-12-11 23:08:24 +01:00
Andreas Schildbach
eb24bafdbc Guard BasicKeyChain.importKey*() against accidently importing the same key twice, potentially losing a private key. 2014-12-11 22:55:22 +01:00
Andreas Schildbach
e5bc481743 Make curve and bits in LazyECPoint final. 2014-12-11 22:53:53 +01:00
Andreas Schildbach
4499e0f7c1 Add some logging to LinuxSecureRandom. 2014-12-11 12:14:39 +01:00
Andreas Schildbach
5aaf6a25db When running on Android, automatically insert LinuxSecureRandom provider. 2014-12-11 12:14:39 +01:00
Andreas Schildbach
525ad3504d Move LinuxSecureRandom from Bitcoin Wallet to bitcoinj. This class is in use since August 2013 without any signs of RNG issues. 2014-12-11 12:14:39 +01:00
Mike Hearn
ef6240a8f8 Transaction.toString(): Don't try printing hash160 for non-address type outputs 2014-12-09 14:23:58 +01:00
Mike Hearn
ab0b6d75fa Script: fix javadoc 2014-12-09 14:23:58 +01:00
Andreas Schildbach
46ed65935c Add Wallet.getIssuedReceiveKeys() and Wallet.getIssuedReceiveAddresses() so that derived addresses can be shown in an UI. 2014-12-09 12:11:59 +01:00
Mike Hearn
b3c761388f Fix build, somehow this didn't show up before. 2014-12-08 22:13:40 +01:00
Mike Hearn
fef4829a3d PeerGroup: log exceptions in executor jobs, as the executor doesn't do this itself (gah) 2014-12-08 22:10:48 +01:00
Mike Hearn
0a34914d16 TransactionBroadcast: Member variable to local 2014-12-08 22:10:48 +01:00
Mike Hearn
40c4338aaa Some fixes for crashes that could occur with a chain-less PeerGroup post-TxConfidenceTable changes. 2014-12-08 22:10:48 +01:00
Andreas Schildbach
478fb5dac9 Fix Integer to long casting compiler error for Eclipse. 2014-12-08 20:39:04 +01:00
Andreas Schildbach
7625fccd22 Move comment about Java 6 compilation to the appropriate places. 2014-12-06 16:03:32 +01:00
Mike Hearn
8acf2e91e8 Add a BIP70 example to the javascript folder 2014-12-04 18:51:45 +01:00
Mike Hearn
d438caaece Widen arg types for Transaction.getInput and getOutput so they can be fed the result of TransactionOutPoint.getIndex() directly. 2014-12-04 17:50:37 +01:00
Mike Hearn
757e25ba9b Wallet: fix a bug that could cause a temporarily corrupted balance, when two pending transactions arrive backwards 2014-12-04 17:09:53 +01:00
Mike Hearn
fccb6f03bd WalletAppKit: allow restore from wallet seed even when there are no checkpoints i.e. regtest mode 2014-12-04 15:57:34 +01:00
Mike Hearn
625d19230d PeerGroup: don't keep trying every second when discovery returns zero peers but we have enough connections anyway. 2014-12-04 15:20:28 +01:00
Mike Hearn
7d7f826367 Fix lock inversion tags<->wallet lock. 2014-12-04 11:28:26 +01:00
Mike Hearn
90dace2ef5 Java 8 syntax cleanup 2014-12-03 13:10:07 +01:00