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

2444 Commits

Author SHA1 Message Date
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
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