Mike Hearn
9b1edf00bd
Clarify the getDifficultyTarget() javadoc.
2013-02-11 20:31:14 +01:00
Mike Hearn
90662e9238
Support compressed pubkeys in the dumpprivkey format encoder/decoder.
...
Resolves issue 308.
2013-02-11 12:18:16 +01:00
Mike Hearn
1c8ddaad36
Delete long-dead code related to the previous protocol version that didn't use checksumming until post-handshake.
2013-02-09 12:35:58 +01:00
Mike Hearn
fa57883a98
Delete an unused line in AbstractBlockChain
2013-02-07 10:52:44 +01:00
Mike Hearn
53f526cef0
Refresh PingService example for 0.7
2013-02-05 21:35:04 +01:00
Mike Hearn
92e1f09a72
Some improvements to class level JavaDocs.
2013-02-05 17:27:26 +01:00
Mike Hearn
0d0039cbdb
Minor reformattings on Base58.java
2013-02-05 16:15:07 +01:00
Mike Hearn
5ce607f1ae
Add a minimum version to Peer and use it to exclude peers so old they don't support pong messages.
2013-02-05 15:14:58 +01:00
Mike Hearn
f488c29c12
Fix some races in PeerMonitor.
2013-02-05 15:14:34 +01:00
Mike Hearn
6ac8eb54cb
Re-arrange the actions in PeerGroup.broadcastTransaction()
...
This fixes a bug where Netty complains about blocking an IO thread due to the await call on send and resolves a potential race condition.
2013-02-05 12:00:33 +01:00
Mike Hearn
8c488a1687
Delete a dead method from WalletProtobufSerializer.
2013-02-05 12:00:33 +01:00
Mike Hearn
586f961b1b
Minor WalletTool fixes:
...
1) Print balance in friendly form
2) Use PeerGroup.stopAndWait() to avoid trying to close the store in parallel with network threads shutdown.
2013-02-05 12:00:33 +01:00
Mike Hearn
37cb4205b3
Minor cleanups to unit tests: remove redundant params from some test helper methods.
2013-02-05 12:00:32 +01:00
Mike Hearn
a62825bd8f
Make the NetworkParameters.testNet() point to testNet3 and rename oldTestNet->testNet2(). Resolves issue 285.
2013-01-30 17:56:57 +01:00
Mike Hearn
7108751d3c
Set IRC discovery so timeout. Resolves issue 269.
2013-01-29 16:20:50 +01:00
Mike Hearn
590d47f273
Add Wallets to all peers not just the download peer. Resolves issue 297.
...
Also fix the unit test that was meant to catch this error so it didn't accidentally probe the download peer case. And prevent adding of wallets multiple times (which caught another error in the unit tests).
2013-01-29 16:17:46 +01:00
Mike Hearn
112fe818d5
More Peer logging improvements.
2013-01-29 16:16:42 +01:00
Mike Hearn
4bdb0fd5ce
Restart chain download after download peer changes. Resolves issue 287.
...
The way we handle changing download peers isn't ideal and can cause some thrashing/wasted bandwidth at startup - it has lots of room for improvement.
2013-01-29 15:25:32 +01:00
Mike Hearn
20cab64943
Change some log levels in Peer.
2013-01-29 15:24:30 +01:00
Mike Hearn
1738f60e1e
Refactorings of the current filtered block tracking code.
2013-01-28 19:27:35 +01:00
Mike Hearn
1d6a8c908c
Fix off by one error in SIGHASH_SINGLE code. Resolves issue 292.
2013-01-28 16:32:32 +01:00
Mike Hearn
dece35e95c
Fix typo in name of FilteredBlockAndPartialMerkleTreeTests
2013-01-28 16:32:32 +01:00
Mike Hearn
35d6084bbf
Refactor some of the wallet/peer interaction. Analyze dependencies of relevant pending transactions.
...
The Peer object now asks each connected Wallet if it cares about a transaction. If it does, then receivePending() is not called immediately, but rather after downloading of dependencies and with those dependencies. If any dependencies are time locked, a new wallet property controls whether they are discarded or not.
2013-01-28 16:32:31 +01:00
Mike Hearn
bfcf67ee5a
Allow NotFoundMessage to be constructed with a list of InventoryItems.
2013-01-28 16:32:31 +01:00
Mike Hearn
8b9ddd2caf
Link Peer and Wallet directly instead of using an event listener.
...
This paves the way for tighter coupling in future, needed for various features.
2013-01-28 16:32:31 +01:00
Mike Hearn
e9babb2772
Use ping messages to work around the lack of notfound messages on old nodes.
...
For now optimistically assume Gavin merges the notfound patch into bitcoin-qt, version wise.
2013-01-28 16:32:31 +01:00
Mike Hearn
b7b52c3fc9
Add support for recursively downloading mempool dependencies of a given mempool transaction.
...
This isn't currently used anywhere, but can be used as the first step of doing some basic risk analysis of unconfirmed transactions.
2013-01-28 16:32:31 +01:00
Mike Hearn
43e1d084cb
Add Matts copyright notice to TestWithPeerGroup
2013-01-28 16:20:43 +01:00
Matt Corallo
cea95b809d
Refresh filter every 25000 blocks to avoid a ballooning fp rate.
2013-01-27 03:41:11 -05:00
Matt Corallo
5f070e9861
Improve privacy: use const tweak + try for const filter parameters
2013-01-27 03:41:11 -05:00
Matt Corallo
1ea4cb457d
Add the new nFlags BloomFilter fields to control auto-updating.
2013-01-27 03:41:10 -05:00
Matt Corallo
3906aa62d9
Add test cases for PMT/FilteredBlock including network download.
2013-01-27 03:40:31 -05:00
Matt Corallo
9577bd644e
Ask peers for filtered blocks when appropriate and handle them.
2013-01-27 03:40:31 -05:00
Matt Corallo
db8afbdadf
Add an AbstractBlockChain.add(FilteredBlock...)
2013-01-27 03:40:31 -05:00
Matt Corallo
289c3d19f0
Add a Wallet.notifyTransactionIsInBlock(Sha256Hash txHash...)
2013-01-27 03:40:31 -05:00
Matt Corallo
661ad3cb04
Add PartialMerkleTree and FilteredBlock classes
2013-01-27 03:40:31 -05:00
Matt Corallo
a5f9c3381b
Add relayTxesBeforeFilter flag to VersionMessage, PROTOCOL_VERSION
...
This adds a relayTxesBeforeFilter flag to VersionMessage, bringing
it in line with PROTOCOL_VERSION 70001, and bumps the
PROTOCOL_VERSION accordingly.
2013-01-27 03:40:31 -05:00
Matt Corallo
a0c25aed28
Make bloom filter false positive rate configurable.
2013-01-27 03:40:31 -05:00
Matt Corallo
7c03eefefd
Send peers a bloom filter from our wallet(s).
2013-01-27 03:40:31 -05:00
Matt Corallo
394d0b788d
Add Wallet.getBloomFilter and a test-case for it.
2013-01-27 03:40:30 -05:00
Matt Corallo
e263229b62
Add BloomFilter class/messages and a test-case.
2013-01-27 02:32:36 -05:00
Matt Corallo
c751e1f179
Add Utils.checkBitLE/setBitLE to interact with bit sets.
2013-01-27 02:32:36 -05:00
Matt Corallo
3805e8956b
Remove useless conditional (old version of 95b5e0d894
was merged)
2013-01-27 02:32:36 -05:00
Matt Corallo
38d01e14a6
Fix #292 by &'ing sigHashType to treat it as unsigned.
2013-01-27 02:32:36 -05:00
Mike Hearn
3211fe59f3
Fix s/connectionTimeoutMillis/connectTimeoutMillis/ in a javadoc. Resolves issue 284.
2013-01-23 17:22:09 +01:00
Mike Hearn
40c13eb3f3
Fix send futures in FakeChannelSink to unbreak a unit test that deadlocks after a previous change.
2013-01-23 17:17:00 +01:00
Mike Hearn
d919ede7a8
Specify time zone in block chain unit test. Resolves issue 291.
2013-01-23 17:12:53 +01:00
Mike Hearn
19b032e2e4
Simplify TCPNetworkConnection a bit and print the version message data when the peer sends it to us, not when we get a VerAck back from our own version announcement.
2013-01-20 23:47:56 +01:00
Mike Hearn
caa92985e1
When broadcasting a spend, wait for the tx message to actually hit the wire before proceeding.
...
This resolves an issue where wallet-tool would shut down before the message was actually sent.
2013-01-20 23:47:32 +01:00
Mike Hearn
6504296b79
Avoid confusing bugs by switching NetworkParameters.testNet() to be testnet3 not testnet2.
2013-01-16 18:15:46 +01:00