Carsten Otto
dbda2b9280
Remove useless casts.
2015-07-04 20:47:08 +02:00
Carsten Otto
c3c2916151
Remove useless math like >> 0.
2015-07-04 20:41:14 +02:00
Carsten Otto
b736b4f7b0
remove redundant modifiers
2015-07-04 18:40:24 +02:00
Mike Hearn
25c4554760
ConnectionHandler: don't leak nioConnectionHandler lock on an exception path. Probably fixes #1009
2015-07-02 18:48:35 +02:00
Andreas Schildbach
ce58d93afd
VarIntTest: Fix missing @Test annotations.
2015-06-30 19:05:48 +02:00
Amichai Rothman
282db823fc
Simplify VarInt implementation.
2015-06-30 12:45:59 +02:00
Amichai Rothman
dc94018992
Fix misc. formatting/style/syntax inconsistencies and issues.
2015-06-30 12:45:59 +02:00
Amichai Rothman
820765753c
Clean up toString and other string-related code.
2015-06-30 12:45:59 +02:00
Amichai Rothman
fd52c86bf9
Introduce little code simplifications.
2015-06-30 12:45:59 +02:00
Amichai Rothman
6d2e35b765
Fix peerTimeoutTest intermittent failures.
2015-06-30 11:20:45 +03:00
Jameson Lopp
6c2fb16233
fix docblock for clearOutputs()
2015-06-29 11:19:45 -04:00
Mike Hearn
9f8501a7bf
Examples: add a tor.js file that connects to a hidden service node, as a demo of how to do it.
2015-06-25 19:04:54 +02:00
Mike Hearn
7666d84625
Examples: demo.js to use current PeerGroup start() API
2015-06-25 19:02:31 +02:00
Mike Hearn
db42dc4630
PeerGroup: make use of peer discovery optional with Tor
2015-06-25 19:02:18 +02:00
Amichai Rothman
469a589951
Reduced unnecessary UnsupportedEncodingException handling
2015-06-24 22:19:32 +03:00
Mike Hearn
07682145e3
ScriptBuilder: convert an attempt to push an empty array into a smallNum(0) i.e. OP_0 call.
2015-06-24 17:13:01 +02:00
Mike Hearn
93fc0049f1
KeyCrypterScrypt[Test]: more var/param name fixes
2015-06-24 16:25:57 +02:00
Mike Hearn
953cc311e3
KeyCrypterScryptTest: fix variable name
2015-06-24 16:16:37 +02:00
ollekullberg
07c0c1f3f2
Change data types in tables
2015-06-24 15:37:00 +02:00
Johnathan
4b6914a39d
Added unit tests to cover some (not all) red spots in the Cobertura
...
report.
2015-06-24 15:35:00 +02:00
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