Andreas Schildbach
24de5e2a40
0.14-SNAPSHOT
2015-07-06 09:54:04 +02:00
Carsten Otto
e2571729a9
Inline (fake) constant to only method using it.
...
Due to cyclic dependencies (NetworkParameters vs. Coin) MAX_SATOSHIS
cannot be made a true constant.
2015-07-05 14:26:04 +02:00
Amichai Rothman
e148e9e052
Fix another peerTimeoutTest failure mode.
2015-07-05 13:39:41 +02:00
Carsten Otto
213efd53ab
Remove redundant type information.
2015-07-05 13:36:36 +02:00
Carsten Otto
fb75bb4c63
Rename variable.
2015-07-05 13:36:20 +02:00
Carsten Otto
aadafdc6c9
Use singletonList.
2015-07-05 13:36:04 +02:00
Carsten Otto
ba468dd775
Make constant.
2015-07-04 21:47:53 +02:00
Carsten Otto
467356526e
Provide size of array.
2015-07-04 21:45:15 +02:00
Carsten Otto
3e78d89cac
Remove empty @return annotation.
2015-07-04 21:31:51 +02:00
Carsten Otto
daace1dec1
Fix javadoc link errors.
2015-07-04 21:31:49 +02:00
Carsten Otto
2e4fde0991
Upgrade jacoco version.
...
Jacoco 0.7.5 introduces a new binary format, see:
https://github.com/jacoco/jacoco/pull/310
https://github.com/jacoco/jacoco/pull/261
2015-07-04 21:26:04 +02:00
Carsten Otto
e311a3604e
Remove unused field.
2015-07-04 21:04:25 +02:00
Carsten Otto
a1c0e00c5f
Convert to local variables.
2015-07-04 21:04:19 +02:00
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