Devrandom
4713c76a29
correctly identify leaf keys
2015-06-03 12:33:26 +02:00
Devrandom
523d97b5dd
Correct handling of encrypt/decrypt
2015-06-03 12:33:25 +02:00
Devrandom
7356c75c8d
Allow overriding of encrypt/decrypt construction
2015-06-03 12:33:25 +02:00
Devrandom
0a8c528ed8
Allow subclassing of DeterministicKeyChain by API users
2015-06-03 12:33:24 +02:00
Kalpesh Parmar
2fbd14cc97
Fixed the TestNet3Params.checkDifficultyTransitions method (logic error in a previous refactor).
2015-06-03 12:20:06 +02:00
Mike Hearn
7e66944753
Logging in HttpDiscovery
2015-06-03 12:19:51 +02:00
Mike Hearn
29bb2560bc
Higher res logo PNG
2015-06-03 12:19:43 +02:00
Mike Hearn
f64e98ef0a
LinuxSecureRandom: do a few more sanity tests on /dev/urandom.
...
Nobody has ever heard of an Android device that doesn't have a working /dev/urandom and if one doesn't exist we can't do anything useful anyway, so this patch should be a no-op. It isn't a response to any problem report, but the blockchain.info RNG failure caused us to look at this code again and spot ways it could be more conservative.
2015-05-29 14:09:31 +02:00
Andreas Schildbach
3588fa085c
Make BuildCheckpoints print a bit sooner that it's doing something.
2015-05-27 16:40:29 +02:00
Loco
1ddf822ecf
Fixed JavaDoc for getScript() method
2015-05-26 15:59:47 +02:00
Loco
ca5bdab07c
Fixed wrong type of parameter in
...
Wallet.setUTXOProvider()
2015-05-26 15:59:47 +02:00
Loco
e214f27963
UTXO re-formatted
2015-05-26 15:59:47 +02:00
Loco
bee1873e1a
In UTXO property scriptBytes changed to class Script.
...
Property addressType deleted.
FullPrunedBlockChain code re-formatted, changed UTXO class usage.
2015-05-26 15:59:47 +02:00
Ross Nicoll
4e8f1bb153
Block.parseHeader() and Block.parseTransactions() are now protected, so they can be called from subclasses.
2015-05-26 13:49:23 +02:00
Ross Nicoll
e030f1a1f4
Moved block difficulty checks into NetworkParameters.
2015-05-26 13:49:23 +02:00
Ross Nicoll
7a3aa74c6e
Added extension points for altcoin support via subclassing.
2015-05-26 13:49:23 +02:00
Mike Hearn
c2d3cec6b0
Make DatabaseFullPrunedBlockStore.calculateBalanceFromAddress public rather than protected.
2015-05-26 12:15:04 +02:00
Mike Hearn
1da3a01194
Use 24 hour clock in brieflogs
2015-05-26 00:27:40 +02:00
Ross Nicoll
b7f1d72b60
Initialize context in BlockTest and CoinbaseBlockTest.
2015-05-25 19:20:10 +02:00
Mike Hearn
5068271586
Peer: suppress intellij inspector warning about a HashSet that's only being used to pin things to the gc root set.
2015-05-25 19:19:54 +02:00
elbandi
95dc2717ae
Get SeedPeers addresses from NetworkParamters.
2015-05-14 23:14:04 +02:00
Mike Hearn
1d69423f7b
PeerGroup: stop calculating speed stats and printing them once we chain sync has finished in a session.
2015-05-05 17:40:59 +02:00
Andreas Schildbach
3d5c25e3c4
Fix missing checksums for the OkHttp dependencies.
2015-05-04 12:24:26 +02:00
Mike Hearn
06ba160361
Tor: accelerate startup by using HTTP/Cartographer seeding when possible instead of DNS.
...
We still use TorDiscovery for networks where we don't have any Cartographer seeds. Switch to OkHTTP because the standard Java HTTP client doesn't let you customise the socket factory and thus cannot be used via Tor directly (doh).
2015-04-28 22:56:23 +02:00
Mike Hearn
410b29fc30
Tor: don't throw in Orchid sockets when attempting to set socket options, just ignore the request instead
2015-04-28 22:54:45 +02:00
Mike Hearn
b82d6e05ed
Tor: don't add DNS discovery in WalletAppKit when Tor is active
2015-04-28 22:54:05 +02:00
Mike Hearn
8742b87701
BlockingClient: shorter error log
2015-04-28 22:53:34 +02:00
Mike Hearn
535c2852ea
TransactionBroadcast: invoke the progress listener if the broadcast already started, to avoid people accidentally writing races when using the PeerGroup convenience APIs.
2015-04-23 14:57:38 +02:00
Mike Hearn
5181cefcf2
Wallet: fix thread safety bug where keychain lock was not being acquired in toString
2015-04-22 15:28:18 +02:00
Mike Hearn
acfc046a08
Wallet extensions: log errors when deserializing a non-mandatory extension and remove it from the wallet if deserialization throws.
2015-04-22 14:53:10 +02:00
Mike Hearn
a0fe912ff0
PeerGroup: delete dead code
2015-04-21 18:04:21 +02:00
Mike Hearn
b749779c89
PeerGroup: catch all throwables inside the speed calculator, not just exceptions
2015-04-21 18:04:11 +02:00
Mike Hearn
a188525981
Wallet: put getWatchedBalance() and getWatchedBalance(CoinSelector) back as deprecated aliases, this is now the default behaviour.
2015-04-21 15:15:58 +02:00
Mike Hearn
70b78363ea
Wallet.addWatchedScripts() now lets you update a script in the wallet with a new creation time. Add some discussion to the Javadoc about this issue.
2015-04-21 14:56:18 +02:00
Mike Hearn
4471709693
Watch out for scripts with a creation time of zero (and warn the developer about them via logging).
2015-04-21 14:48:46 +02:00
Mike Hearn
eb15ded065
PeerGroup: use a default FP rate that's much lower than the current rate, to boost performance. As there are various well documented de-anonymization attacks on Bloom filtering in bitcoinj (and BreadWallet) wasting bandwidth without getting additional privacy benefit doesn't help us much, so may as well take the performance until one day the code is smart enough to lie convincingly.
2015-04-21 13:52:53 +02:00
Mike Hearn
dd453ca677
PeerGroup: stall handling tweak: specify default bandwidth requirement in terms of block headers per second and make much lower, to avoid having false stalls when the Bloom FP rate is lowered (and thus bandwidth required is much lower). It's unclear how useful stall handling will be after this change, but we'll experiment with it a bit and find out.
2015-04-21 13:50:32 +02:00
Mike Hearn
82a0ddd4de
Wallet: Provide new balance types to calculate balances excluding watching outputs. This is useful for wallets where transactions have been manually added and thus there is a mix of watching and non-watching transactions. The "new in 0.13" behaviour that getBalance(AVAILABLE) includes unspendable outputs is preserved, so the more typical approach of having a watching wallet and calling getBalance() still does what you expect and reports the balance of the watched wallet.
...
API change: send completion would previously include watched outputs and could therefore throw MissingPrivateKeyException. This has now changed so watched outputs won't be considered and thus the exception may change to be InsufficientMoneyException, unless completing a pre-prepared transaction that is already connected to watched outputs.
2015-04-21 13:01:29 +02:00
Mike Hearn
ef9e49d5e7
DeterministicKey: override hasPrivKey and getSecretBytes to reflect the private key derivation strategy used.
2015-04-21 13:01:29 +02:00
Mike Hearn
9faa4a686b
DK.isWatching simplification
2015-04-21 13:01:29 +02:00
Mike Hearn
54a6316243
Make BasicKeyChain.isWatching return a state enum instead and use it to simplify KeyChainGroup.isWatching()
2015-04-21 13:01:29 +02:00
Andreas Schildbach
ed6821ed15
Add Wallet.isWatching() to determine if the wallet is a watching wallet. Comes with tests.
2015-04-21 13:01:29 +02:00
Mike Hearn
1e6ce4b1ba
Rename DeterministicKey.getPubOnly() to dropPrivateBytes() to reflect what it's actually trying to do, and add dropParent() as well for the cases where we actually need a truly privkey-lacking object. Update the call sites to do whatever is appropriate for those situations.
2015-04-21 13:01:28 +02:00
Andreas Schildbach
a1612b0a8f
Implement DeterministicKey.isPubKeyOnly(). The super-implementation in ECKey doesn't take possible rederivation into account.
2015-04-21 13:01:28 +02:00
Mike Hearn
e9bffdda18
DefaultCoinSelector: no-op code simplification
2015-04-21 13:01:28 +02:00
Andreas Schildbach
f2eaf4a562
Update to jackson 2.5.x.
2015-04-17 16:37:13 +02:00
Andreas Schildbach
dba18dfb4d
Update to slf4j 1.7.7.
2015-04-17 16:37:13 +02:00
Andreas Schildbach
f2e3111ba8
Update to junit 4.12.
2015-04-17 16:37:13 +02:00
Andreas Schildbach
2e3ee3b161
Update to easymock 3.2.
2015-04-17 16:37:13 +02:00
Andreas Schildbach
ee6fb7c65e
Add missing checksum for the new leveldb dependency.
2015-04-11 11:30:07 +02:00