Mike Hearn
6c733b2f22
Wallet: suppress an invalid static analysis warning.
2015-03-03 11:02:44 -08:00
Mike Hearn
59e06c0a9b
Take out Alex Kotenko's testnet seed as it appears to be down.
2015-03-03 11:02:21 -08:00
Mike Hearn
f12122f585
Address: serialize network parameters in Java serialization as well.
2015-03-03 11:02:01 -08:00
Mike Hearn
8e75134932
ChannelConnectionTest: Delete unused field.
2015-03-01 21:24:21 +01:00
Oscar Guindzberg
03f2f9e47a
Make MemoryFullPrunedBlockStore just implement FullPrunedBlockStore.
...
UTXOProvider is redundant
2015-02-25 18:26:01 +01:00
Andreas Schildbach
dbf04a812b
Devrandom's proposed changes due to his review of 'ECKey/DeterministicKey: replace ECPoint with a LazyECPoint wrapper that doesn't delays parsing of key bytes into a key structure until it's needed.'
2015-02-24 14:14:03 +01:00
Oscar Guindzberg
1b26034506
Fix typo
2015-02-23 17:54:11 -03:00
Mike Hearn
1542a88b5f
Put back the KeyChainGroup log message and remove an apparently useless wallet creation on the load path in WalletAppKit that was triggering it.
2015-02-23 12:07:06 +01:00
En-Ran Zhou
b81b0f78d5
Fix a typo, and reformat the comment to 120 cols
2015-02-23 04:23:30 -06:00
Mike Hearn
bef4980abd
(API CHANGE) Return a TransactionBroadcast object from PeerGroup.broadcastTransaction.
...
Old code can be updated by simply calling future() on the returned object to get the previous result.
TransactionBroadcast now has a progress reporting interface, which is ideal for connection to progress bars, pie charts, whatever else you want to use in the UI for showing the progress of sending money/broadcasting a tx.
2015-02-20 15:01:54 +01:00
Mike Hearn
298cccfe4f
Remove misleading log statement.
2015-02-20 15:00:19 +01:00
Mike Hearn
4303a253c8
Split an unwieldy log line.
2015-02-19 15:12:07 +01:00
Adam Mackler
7ef5ab9abf
Don't discard hierarchy data when deserializing an HD key.
...
Fingerprints are now ints rather than four-byte arrays.
2015-02-18 12:42:50 +01:00
Mike Hearn
eed4901a6e
Add a couple of missing thread safety bits to PeerGroup members.
2015-02-17 17:02:58 +01:00
Mike Hearn
c0b34109d0
Delete some dead code from PeerGroup
2015-02-17 17:02:58 +01:00
Mike Hearn
1efa1442c8
(API CHANGE) Pass the FilteredBlock into PeerEventListener.onBlocksDownloaded when present.
...
Keep track of downloaded vs server-side filtered transactions per second.
Add a keyboard shortcut to wallet-template to force disconnection from the current peer.
2015-02-17 17:02:57 +01:00
Mike Hearn
fcd4b8b68a
Block: getTransactions() should not throw if the block represents a header, but rather return null.
2015-02-17 15:16:43 +01:00
Mike Hearn
b2c1aba4d6
PeerGroup: sync improvements round two. Move chain download speed monitoring out of AbstractBlockChain and fix it so it doesn't sometimes print garbage. Add a stall detector. Next step is to force switch download peers when there's a long enough stall.
2015-02-16 18:11:46 +01:00
Mike Hearn
887bc63ce2
PeerGroup: simplify how the download peer is selected to avoid pointless thrashing at startup. This change will probably reduce load on the network as well.
2015-02-16 17:45:48 +01:00
Mike Hearn
7d98075efe
DnsSeedDiscovery: toString() method to give better log errors.
2015-02-16 17:43:06 +01:00
Adam Mackler
e8138c21b0
Change PeerGroup.addPeerFilterProvider to return a ListenableFuture<BloomFilter>
...
Currently 'addPeerFilterProvider()` returns `void`. After this patch it
returns the `ListenableFuture<BloomFilter>` that is returned by its
invocation of `recalculateFastCatchupAndFilter()`.
2015-02-09 14:16:29 +01:00
Carlos Lopez-Camey
212aa41143
Updates PeerGroup's javadoc: PeerGroup is not a guava service as from 27bc229
2015-02-07 17:04:22 -06:00
Sean Gilligan
c72c48cd58
Add Comparable to VersionedChecksummedBytes
...
* Add Comparable interface to VersionedChecksummedBytes
* Add compareTo() method to VersionedChecksummedBytes
* Add test for VersionedChecksummedBytes
* Add tests for Address
2015-02-03 00:15:25 +01:00
Mike Hearn
0d51cee24f
PeerGroup: ignore another source of RejectedExecutionException during shutdown
2015-02-02 17:29:50 +01:00
Mike Hearn
653773d67a
PeerGroup: don't try and trigger connections during shutdown
2015-01-29 19:24:14 +01:00
Mike Hearn
bc60f0d1f2
TransactionBroadcast: only consider a tx rejected if it has more than half peers signalling a reject.
2015-01-29 19:24:02 +01:00
Mike Hearn
c981555be4
RejectMessage: add a c'tor for initialising a new message and fix a bug in serialisation.
2015-01-29 19:19:28 +01:00
Oscar Guindzberg
f3fa050c09
DeterministicKeyChain Builder - add seedCreationTimeSecs()
2015-01-28 17:21:18 -03:00
Mike Hearn
f1f07df11b
ECKey: extend the comment about why private keys of zero and one are now forbidden
2015-01-28 19:37:13 +01:00
Mike Hearn
fd10654143
Fix wallet tests that were using 1 as a private key.
2015-01-28 18:34:27 +01:00
Mike Hearn
fe2aff49ae
DnsDiscovery: attempt workaround for apparent lack of working thread safety on some Linux platform C libraries.
2015-01-28 16:21:40 +01:00
Mike Hearn
ad4fb5103c
NioClientManager: use a daemon thread so GUI apps can quit fast if they want to without a slow/hung network thread keeping things hanging around. This may break compatibility with apps that expect to be able to start bitcoinj and then exit the main thread: if it causes too many problems this change may be reverted.
2015-01-28 16:20:51 +01:00
Mike Hearn
f4cce4c3c0
ECKey: add a sanity check for private keys that are zero or one. This should never happen but there have been reports from the wild that somehow once or twice someone managed to get a private key of zero into their wallet.
2015-01-28 16:13:24 +01:00
Mike Hearn
f9338519be
Add 20 second timeout to HttpDiscovery
2015-01-27 21:52:19 +01:00
Mike Hearn
9b5307ad45
WalletAppKit: remove accidental Java 7-ism that was introduced a few commits ago.
2015-01-27 19:03:48 +01:00
Mike Hearn
07d85f24ad
SPVBlockStore: add a workaround for a Windows specific bug. We should scrap the use of mmap in this class if we can, too many platforms have odd bugs and glitches with it.
2015-01-27 18:41:02 +01:00
Mike Hearn
c2c3b715f3
PeerGroup: fix another regression with handling of disconnected peers
2015-01-27 18:41:02 +01:00
Oscar Guindzberg
d5f47f37d3
Allow building a MarriedKeyChain with a watchingKey
2015-01-27 16:33:05 +01:00
Mike Hearn
068da489ef
WalletAppKit/SPVBlockStore: release the file lock explicitly when closing, as otherwise apps that try to shut down the store then delete the file can crash on Windows.
2015-01-22 18:09:07 +01:00
Mike Hearn
a698c5846e
Peer: invoke disconnection handlers on timeout even if we didn't successfully connect yet.
2015-01-21 16:45:03 +01:00
Mike Hearn
2138c8aec4
PeerGroup: log connected/pending/max in handlePeerDeath too
2015-01-21 16:44:35 +01:00
Mike Hearn
33228cdb19
Bump the number of max peers to 12 by default instead of 4, as we're seeing more tx broadcast flakyness from the network these days. Also use 80% of max peers as the number to wait for before tx broadcast instead of half.
2015-01-21 16:23:50 +01:00
Mike Hearn
46344dd0b1
PeerGroup: fix the IPv6 routing failure detection which was broken by a recent change and improve logging in a bunch of places.
2015-01-21 16:22:46 +01:00
Mike Hearn
b9cf28d358
TransactionBroadcast: Better logging
2015-01-21 15:48:59 +01:00
Mike Hearn
101ad83906
Make KeyCrypterScrypt.randomSalt() public.
2015-01-17 15:01:52 +01:00
Sean Gilligan
3456e896ec
Make Address (& super & subs) Cloneable
...
* Implement Cloneable in VersionedChecksummedBytes
* Override clone() in VersionedChecksummedBytes
* Override clone() in Address
* Add Unit test file for VersionedChecksummedBytes
* Add clone unit tests for clone for all subclasses
of VersionedChecksummedBytes
TODO: Consider overriding clone() in DumpedPrivateKey and
BIP38PrivateKey
2015-01-16 19:54:22 +01:00
Oscar Guindzberg
336b0f6aa2
Fix typo
2015-01-16 11:32:05 -03:00
Mike Hearn
8863cd5afd
Refresh checkpoints
2015-01-12 16:53:20 +01:00
Mike Hearn
b069ffd312
BriefLogFormatter: Add an initWithSilentBitcoinJ method.
2015-01-12 16:50:59 +01:00
Mike Hearn
d7118d524e
Threading: print fewer warnings of excess closure buildup. We should really use a rate limiter here.
2015-01-12 16:44:10 +01:00