3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 02:35:52 +00:00

2450 Commits

Author SHA1 Message Date
Kalpesh Parmar
b11c17a5f6 Fix: Block headers received (save to fullstore) that are >80 in length i.e includes tx. Tx are removed when saving the header. 2015-06-24 15:31:41 +02:00
Michael Bell
1d96e1ad1d Remove duplicate extension update calls to the wallet.
Make the StoredPaymentChannel{Client|Server}States in charge of notifying the
wallet when the stored state has changed. Reduced the duplicate calls to update
and subsequently save the wallet to disk.
2015-06-24 15:29:29 +02:00
Michael Bell
9b82c69946 Fixing potential deadlock by enforcing keychain > extensions order.
Brought about by fix in 5181cefcf2a4747dfe73d1a9304adc13577e0740.
2015-06-24 15:29:28 +02:00
Michael Bell
caa294c7f6 Fixing NPE in ExamplePaymentChannelServer due to using unintialized state. 2015-06-24 15:29:28 +02:00
Michael Bell
36ba209a24 Save-and-load new wallet with extensions in WalletAppKit.
Currently the only guaranteed way of passing the containing wallet to an
extension is during deserialization. Therefore every new wallet in WalletAppKit
is saved and then loaded before use, to ensure correct initialization of extensions.
2015-06-24 15:29:28 +02:00
Peter Dettman
5dd72ed0f7 Improve the way compression is handled 2015-06-24 15:25:47 +02:00
Amichai Rothman
c4c33ce978 deduplicated and simplifed Message methods that read underlying byte arrays 2015-06-24 15:21:14 +02:00
Amichai Rothman
9c8f6fbb20 added Sha256Hash.wrapReversed/getReversedBytes methods to further deduplicate and simplify code 2015-06-24 15:21:14 +02:00
Amichai Rothman
faf92971dd Refactored Sha256Hash API:
- depracated constructors
- wrap methods to wrap given hash values in a new instance
- of/twiceOf methods to calculate hash values in a new instance
- hash/hashTwice to calculate hash values and return the raw bytes
2015-06-24 15:21:14 +02:00
Amichai Rothman
0a94a30a6b replaced inconsistently-used synchronized MessageDigest singleton with creating a new instance on each call 2015-06-24 15:21:14 +02:00
Amichai Rothman
a6601066dd moved sha256-related utility methods into Sha256Hash class and renamed them 2015-06-24 15:21:14 +02:00
Amichai Rothman
a449e3b026 - changed unused Utils.singleDigest method to use new MessageDigest instances rather than a synchronized singleton
- replaced verbose hash computations with calls to Utils.singleDigest/doubleDigest
- added javadocs to Utils.singleDigest/doubleDigest
2015-06-24 15:21:14 +02:00
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
Andreas Schildbach
d6ed5069d4 Don't gitignore wallet files. 2015-06-17 08:43:07 +02:00
Andreas Schildbach
07f6b0ea30 Don't print log messages when testing fee level. 2015-06-16 22:46:15 +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
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