Amichai Rothman
772aa300df
simplified Sha256Hash.equals/compareTo methods
2015-06-24 15:21:13 +02:00
Amichai Rothman
2fd96c7771
extracted common Utils.newSha256Digest() method to reduce boilerplate code
2015-06-24 15:21:13 +02:00
Stephen Reed
a2e94b9a95
Factored out a common sub-expression.
2015-06-24 15:14:37 +02:00
Stephen Reed
177bd93802
Fixed headers message serialization.
2015-06-24 15:14:37 +02:00
Peter Stockli
e25e561560
remove unused imports and unused local variables
2015-06-23 19:51:41 +02:00
Peter Stockli
2209b9b734
remove some calls to BigDecimal#setScale where return objects are not used
...
- setScale is called on immutable BigDecimal
- the returned new BigDecimal is not assigned
2015-06-21 18:39:28 +02:00
Mike Hearn
ce50e0b755
Peer: don't null out the future object to avoid a race where the pong can be received before the ping call has returned.
2015-06-21 14:44:24 +02:00
Mike Hearn
4638301cbd
Wallet: print spendable balance as opposed to watching balance in toString output
2015-06-15 17:11:29 +02:00
Peter Dettman
a2e0908436
Improvements in ECKey.extractKeyFromASN1
...
- Check there's no extra data following the key
- Confirm the ASN.1 tag number is correct on the publicKey field
- Explicitly check the encoding is one we support
- Rework the sanity check to avoid redundant parsing/multiplies
2015-06-12 17:12:52 +02:00
Mike Hearn
2b8fa07ae8
Fix flake in WalletTest. Resolves #991
2015-06-12 17:11:33 +02:00
Peter Dettman
e3bba1c3cb
Use FixedPointCombMultiplier for mul by G
2015-06-12 14:05:29 +02:00
Peter Dettman
62f22d83a0
Update native secp256k1 URL in javadoc
2015-06-12 13:30:15 +02:00
Justas
bd0f3fe4c1
Allowed wallet size increased from 64MB to 512MB
2015-06-12 10:01:31 +02:00
Mike Hearn
6836d4816d
Wallet: minor tweaks to setUTXOProvider
2015-06-11 15:09:35 +02:00
Mike Hearn
153d323ccf
UTXO: misc doc and code cleanups
2015-06-11 15:09:35 +02:00
Mike Hearn
fc22d9cbc6
UTXOProvider: comment fix
2015-06-11 15:09:34 +02:00
Andreas Schildbach
82ba54db13
DeterministicKeyChain: Fix getIssuedReceiveKeys() is returning internal keys too.
2015-06-08 10:03:23 +02:00
Andreas Schildbach
481dbcde5c
Add Comparator that defines a by-child-num order for DeterministicKeys. Make ChildNumber comparable.
2015-06-08 10:03:22 +02:00
Ross Nicoll
72f1f748ee
Replace monetary codes map with an array as a simpler data type.
2015-06-08 09:53:59 +02:00
Andreas Schildbach
cc0a00fbdd
Make sure exchange rates are well defined.
2015-06-06 13:05:19 +02:00
Devrandom
81f2303434
Forgotten refactor
2015-06-03 12:34:50 +02:00
Devrandom
7012791601
Javadoc and other cleanup
2015-06-03 12:34:49 +02:00
Devrandom
3dd7ba1de5
Clean up DKC API changes
2015-06-03 12:34:08 +02:00
Devrandom
80ed15f253
allow DKC derivation path to be overridden
2015-06-03 12:34:06 +02:00
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
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
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
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