Andreas Schildbach
59fa28ec70
LevelDbFullPrunedBlockStore: Reformat and rename class. It used Windows line endings.
2016-01-25 22:53:51 +01:00
Andreas Schildbach
08ab6a0da5
TransactionTest: Move creation of fake transactions over to FakeTxBuilder. Also, a couple of cleanups.
2016-01-23 12:19:44 +01:00
Ross Nicoll
cfb942a7fa
Rate limit peer discovery
...
This changes PeerGroup to consider a peer discovery that doesn't return
enough results as a failure, so it does exponential backoff. Otherwise
it discovers constantly on a network with less than the maximum peers
available.
Also added a second sanity check to ensure it's never done more than
once a second.
2016-01-23 12:10:55 +01:00
Jameson Lopp
c82aa3b070
Don't throw away orphan block transactions before they are sent to listeners, even in SPV mode.
2016-01-23 11:37:29 +01:00
Andreas Schildbach
aa0312a6c8
Wallet: Remove junk line of JavaDoc.
2016-01-20 18:41:07 +01:00
Andreas Schildbach
66c3364c9e
Wallet: JavaDocs for Wallet.CompletionException hierarchy.
2016-01-20 18:41:07 +01:00
Andreas Schildbach
91c4e080ad
Wallet: Make getPoolSize() visible for testing.
2016-01-20 17:29:04 +01:00
Andreas Schildbach
f1e3a73e75
Wallet: Make keyChainGroup private again, but add a getKeyChainGroupCombinedKeyLookaheadEpochs() method that is visible for testing.
2016-01-20 17:06:06 +01:00
Andreas Schildbach
7e98f9f792
Wallet: Make transaction pools private again, but add a poolContainsTxHash() method that is visible for testing.
2016-01-20 16:42:00 +01:00
Andreas Schildbach
697bb9fd60
ScriptChunk: JavaDoc for public fields.
2016-01-20 11:21:29 +01:00
Andreas Schildbach
0a58837db0
TransactionInput: Add getConnectedTransaction(), as this seems to be a relevant usecase.
2016-01-18 16:33:21 +01:00
Andreas Schildbach
d092922e64
TransactionInput: Add public clearScriptBytes() method, as this seems to be a relevant use case.
...
It also saves some calls to the semi-private setScriptBytes().
2016-01-18 16:23:14 +01:00
Andreas Schildbach
17140d462f
Transaction: Get rid of getValueSentToMe() variant that was not used any more.
2016-01-18 16:05:43 +01:00
Will Shackleton
c9cce47962
Support CLTV micropayment channels
...
Also extend WalletTool to send via, settle and refund these channels.
2016-01-18 15:57:27 +01:00
Will Shackleton
25db735b3a
Set the connection channel in PaymentChannelServerListener
2016-01-16 15:55:47 +00:00
Robin Owens
db74695e43
LevelDb fully pruned block store.
2016-01-16 12:11:01 +01:00
Andreas Schildbach
4d1ed91737
BIP38PrivateKey: Early check for NetworkParameters not null.
2016-01-08 21:21:53 +01:00
Andreas Schildbach
18bad5d899
Don't print transaction purposes twice in wallet dump.
2016-01-08 21:18:21 +01:00
Ross Nicoll
159a6de24f
Support generating URIs for non-Bitcoin networks
2016-01-08 20:59:43 +01:00
Andreas Schildbach
1dd64534d0
JavaDoc for WalletFiles constructor.
2016-01-06 14:54:15 +01:00
Andreas Schildbach
feca024107
Always use US locale when formatting debug strings.
2016-01-06 14:43:12 +01:00
Kirill Vlasov
0de458db45
Strings literals should be placed on the left side when checking for equality
2016-01-06 14:19:20 +01:00
Kirill Vlasov
e3e8e8079d
Constructors should only call non-overridable methods
2016-01-06 14:11:00 +01:00
Andreas Schildbach
61ae489d82
Move org.bitcoinj.testing package to test classpath.
2016-01-06 13:52:13 +01:00
Andreas Schildbach
73467ea4c9
WalletTest: Clean up some assert messages.
2016-01-01 14:37:47 +01:00
Andreas Schildbach
720f7d2a92
Print transaction purpose in toString().
2015-12-20 09:52:11 +01:00
Jameson Lopp
ab169f0700
Print block hash in debug log message for unconnectable orphan.
2015-12-18 16:12:55 -05:00
Andreas Schildbach
44ca39bfd7
Coin: Remove chain-specific coin limit. Add some checks for arithmetic over/underflows instead.
2015-12-13 19:30:54 +01:00
Kirill Vlasov
3ab1d5811d
PeerGroup: Closing streams and sockets where necessary
2015-12-13 19:30:11 +01:00
Andreas Schildbach
6692c0e06b
Set minimum fee to 5000 satoshis and dust limit to 2730 satoshis. This matches Bitcoin Core 0.11.1.
2015-12-13 19:25:22 +01:00
Kirill Vlasov
0ba3f4c2d2
"@Override" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one.
2015-12-08 10:29:40 +01:00
Andreas Schildbach
313e2c14c1
When testing for specific network, use network ID.
2015-12-06 18:14:03 +01:00
Andreas Schildbach
c0b2e7cd74
UnitTestParams: Remove static address/key pair for testing. It wasn't really used by the unit tests.
2015-12-05 21:34:14 +01:00
Andreas Schildbach
be794e8a4c
Use Guava Stopwatch for measuring code execution time.
2015-12-05 11:06:29 +01:00
Andreas Schildbach
90be18150f
Migrate a few asserts to Guava checkArgument/checkState.
2015-12-05 10:59:55 +01:00
Andreas Schildbach
0603afe78d
TransactionInput: Don't misuse NO_SEQUENCE constant for indicating an unconnected input.
2015-12-05 10:53:28 +01:00
Andreas Schildbach
7cb7fecb22
Replace documentation references to "Satoshi/official/reference client/implementation" by "Bitcoin Core".
...
No code is changed.
2015-12-05 10:44:52 +01:00
Andreas Schildbach
b031d65d7d
Add precondition message to Wallet.setKeyRotationTime().
2015-12-05 10:42:55 +01:00
Andreas Schildbach
7001c479a3
Block: Fix missing linefeed after hash in toString().
2015-11-30 22:25:21 +01:00
Andreas Schildbach
6b95012d1f
wallet.proto: Add IN_CONFLICT transaction confidence state.
2015-11-29 11:33:16 +01:00
Oscar Guindzberg
293591bf24
Support double spend forwarding
...
This adds a new IN_CONFLICT transaction confidence type, meaning there is another transaction
(or several other transactions) spending one (or several) of its inputs but nor this transaction
nor the other/s transaction/s are included in the best chain.
2015-11-29 10:30:34 +01:00
Will Shackleton
61377297ae
Script: Fix behaviour of OP_0 to not NullPointerException.
2015-11-28 12:08:33 +01:00
c
c1fce47c5f
Added some wallet utility methods getTotalReceived() and getTotalSent() and a test for them.
2015-11-28 11:58:24 +01:00
Andreas Schildbach
7fce16b3c1
DefaultRiskAnalysis.MIN_ANALYSIS_NONDUST_OUTPUT: Re-use existing constant and update comment.
2015-11-28 10:51:20 +01:00
Andreas Schildbach
79d6716120
Wallet-Tool: New action to modify the creation time of wallets.
...
This is useful for repairing wallets that accidently have been created "in the future".
2015-11-27 16:54:55 +01:00
cyberzac
3966f424a0
Copy accessor for the channel map
2015-11-27 16:49:58 +01:00
Ross Nicoll
ff2e057126
Enable CHECKLOCKTIMEVERIFY on version 4 blocks after a 75% majority.
2015-11-23 17:29:50 +01:00
Ross Nicoll
70f557a514
Add OP_CHECKLOCKTIMEVERIFY script support
2015-11-23 17:29:10 +01:00
Ross Nicoll
92bd6d0af1
Add transaction tests for OP_CHECKLOCKTIMEVERIFY
2015-11-23 17:23:43 +01:00
Andreas Schildbach
f9097ab408
Block: Print hash in toString().
2015-11-23 16:54:43 +01:00