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

2064 Commits

Author SHA1 Message Date
Andreas Schildbach
c4ea9c95e5 Use Message.unsafeBitcoinSerialize() whenever it's very clear we won't modify the array. 2016-02-29 22:16:01 +01:00
Andreas Schildbach
7240fb754a InsufficientMoneyException: In the exception message, format missing value as BTC value. 2016-02-29 20:44:00 +01:00
Will Shackleton
2f8c715fdd Fixed NullPointerException in creating new StoredPaymentChannelClientStates 2016-02-29 16:39:53 +01:00
Andreas Schildbach
8818f6ff0c Transaction: Fix wrong line ending in toString(). 2016-02-29 15:58:59 +01:00
Andreas Schildbach
cd830bb128 Print transaction fee per kilobyte besides total fee in wallet dump. 2016-02-27 16:01:49 +01:00
Andreas Schildbach
afffd8b2c7 Peer: Configure maximum recursion level when requesting dependent transactions.
The idea is to limit download to a sane amount, rather than disabling it completely.
2016-02-27 13:15:44 +01:00
Jameson Lopp
4217a5c231 Rename boolean Peer getters to use 'is' prefix. 2016-02-27 13:09:48 +01:00
Andreas Schildbach
ef3acab8d5 Again reword a happy connect log message. Receiving the remote version message doesn't mean we're connected. 2016-02-26 20:46:36 +01:00
Andreas Schildbach
6226e32fcb Make socket connect log message sound a bit less happy. We still need to handshake for a 'successful' connection. 2016-02-26 19:25:47 +01:00
Andreas Schildbach
b6c6d1213e Wallet.isConsistentOrThrow(): New variant of .isConsistent() that throws an exception describing the inconsistency. 2016-02-19 21:44:32 +01:00
Andreas Schildbach
a1def190ad Peer: Disconnect peers without copy of the block chain gracefully.
Previously, a protocol exception was thrown, spamming error reporting facilities with useless messages.
2016-02-19 21:40:37 +01:00
Will Shackleton
f6714f1a94 Added getChannelMap method to StoredPaymentChannelClientStates 2016-02-18 22:08:29 +01:00
Will Shackleton
500db4b43f Added getFromWallet method to StoredPaymentChannelServerStates 2016-02-17 15:27:31 +00:00
Andreas Schildbach
a659c68162 Peer: Extract method processPing(). 2016-02-16 16:28:03 +01:00
Andreas Schildbach
d2ae63d01d Peer: Extract method processVersionAck(). 2016-02-16 16:27:32 +01:00
Andreas Schildbach
38848cd1cd TransactionConfidence: Add lastBroadcastedAt, the time a transaction was last announced to us.
The idea of this new field is that if a pending transaction was not announced for a longer time,
it is unlikely to confirm. Thus, the user should be warned and maybe the transaction removed from
the wallet at some point.
2016-02-16 14:09:21 +01:00
Andreas Schildbach
e973c2f5d7 Remove convenience method for BIP101.
The BIP was withdrawn by Gavin. The block test is kept because it can still serve as test data.
2016-02-16 14:05:19 +01:00
Ross Nicoll
ea3713ec85 Split PeerConnectionEventListener
Split PeerConnectionEventListener into individual connect, disconnect
and discovery listeners.
Remove custom listener registration from Peer, as now it's possible to
register a connect listener only, without a disconnect listener.
2016-02-13 18:18:56 +00:00
Ross Nicoll
aa33c0e843 PeerGroupTest: Add listeners before calling start()
PeerGroupTest.listener() currently starts the PeerGroup before adding listeners to
it. While the events being listened for are not triggered until later in
the test, it is good practice to add listeners before calling start()
2016-02-13 18:08:06 +01:00
Ross Nicoll
509df8c232 Refactor adding/removing block download listeners 2016-02-13 14:44:49 +00:00
Ross Nicoll
3d3dd6f721 Split peer event listeners into single method interfaces 2016-02-13 15:10:12 +01:00
Ross Nicoll
76c16b41e5 Fix typo
Correct "procesesed" to "processed"
2016-02-13 10:03:17 +00:00
Will Shackleton
23c9f0d0e2 Fixed V2 server deserialisation from StoredServerChannel 2016-02-11 15:02:23 +00:00
Will Shackleton
f1b4db1540 Fixed stored channel timers failing 2016-02-11 15:01:56 +00:00
Andreas Schildbach
09a2ca64d2 Move Transaction.isConsistent() to Wallet.isTxConsistent(), as the wallet was the only consumer of that method. 2016-02-10 12:23:44 +01:00
Will Shackleton
8af0fa9884 Implemented version 2 of payment channels API
I implemented version 2 of the payment channels API using
OP_CHECKLOCKTIMEVERIFY-style payment channels.
2016-02-10 11:15:35 +01:00
Will Shackleton
4b2afc9667 Added broadcast multisig contract to wallet bloom filter. Fixes #1181 2016-02-10 11:13:35 +01:00
Andreas Schildbach
0d9b732e60 Peer: Make GetDataRequest immutable. 2016-02-09 21:23:42 +01:00
Andreas Schildbach
efc8eecd4c Peer: Fix a doc reference to Google Code. 2016-02-09 20:48:11 +01:00
Ross Nicoll
aca39ee9de Split wallet events into single method interfaces 2016-02-06 20:01:38 +01:00
Ross Nicoll
8841371922 Disable max money check on networks with no supply cap 2016-02-05 20:06:31 +00:00
Andreas Schildbach
8a41fd471f Fix a few max coins checks.
This is largely esoteric, but was brought up by https://github.com/schildbach/bitcoin-wallet/issues/299.
2016-02-05 13:30:12 +01:00
Andreas Schildbach
becd8641c9 Add thread safety warning to JavaDocs of entire Message class hierarchy. 2016-02-03 17:19:18 +01:00
Jameson Lopp
5f3ca35b89 Transaction: modify hashForSignature() to be thread-safe. 2016-02-03 15:59:09 +01:00
Andreas Schildbach
54780491fc DefaultRiskAnalysis: Consider transactions that opt into replace-by-fee at risk for double spending. 2016-01-26 19:41:27 +01:00
Andreas Schildbach
786a11187e Be aware of opt-in full replace-by-fee. 2016-01-26 19:41:08 +01:00
Andreas Schildbach
ee1aa05460 Remove comments about sequence numbers being disabled.
As of Bitcoin Core 0.12, sequence numbers are used for the infamous opt-in full replace-by-fee feature.
2016-01-26 16:07:04 +01:00
Andreas Schildbach
eeb53164a3 Update to protobuf-java 2.6.1
In this commit, protobuf bindings are regenerated too.
2016-01-25 23:21:21 +01:00
Andreas Schildbach
428702b50d Don't print log to console if tests are run by Maven.
It got too large for Travis. If you need the log, you can run the failing test locally, e.g. in your IDE.
2016-01-25 23:19:42 +01:00
Andreas Schildbach
593d92390b Always print to the log, rather than to the console. 2016-01-25 23:19:37 +01:00
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