elbandi:fedoracoinj.git
6 years agoReplace WalletEventListener.onDeadTransaction with a generic confidence changed callb...
Mike Hearn [Sun, 19 Feb 2012 14:01:30 +0000 (15:01 +0100)]
Replace WalletEventListener.onDeadTransaction with a generic confidence changed callback, this simplifies the case of listening for all confidence changes in all wallet transactions and gives a single place to save the wallet from.

6 years agoPrint out alert messages to the log.
Mike Hearn [Sun, 19 Feb 2012 11:22:43 +0000 (12:22 +0100)]
Print out alert messages to the log.

6 years agoAdd top 50 blocks to the block locator. Should make chain split handling more robust.
Mike Hearn [Mon, 13 Feb 2012 22:39:23 +0000 (23:39 +0100)]
Add top 50 blocks to the block locator. Should make chain split handling more robust.

6 years agoNote that there is a race in MockNetworkConnection. Fixing it will have to wait until...
Mike Hearn [Mon, 13 Feb 2012 22:32:14 +0000 (23:32 +0100)]
Note that there is a race in MockNetworkConnection. Fixing it will have to wait until I am less tired.

6 years agoMake Message inner exception class static, for efficiency. Clears a FindBugs warning.
Mike Hearn [Mon, 13 Feb 2012 22:03:15 +0000 (23:03 +0100)]
Make Message inner exception class static, for efficiency. Clears a FindBugs warning.

6 years agoClamp the blocksLeft parameter of the PeerEventListener.onBlocksDownloaded() callback...
Mike Hearn [Mon, 13 Feb 2012 21:02:13 +0000 (22:02 +0100)]
Clamp the blocksLeft parameter of the PeerEventListener.onBlocksDownloaded() callback to zero. It was being set from the difference between chain height and peer advertised chain height, which can legitimately be negative, but this is confusing and resulted in a bug in DownloadListener which could cause it to never correctly flag the end of chain download. Resolves issue 86.

6 years agoAdd an initVerbose() method to BriefLogFormatter. Note: this does not actually appear...
Mike Hearn [Mon, 13 Feb 2012 20:36:49 +0000 (21:36 +0100)]
Add an initVerbose() method to BriefLogFormatter. Note: this does not actually appear to work :(

6 years agoFix an issue in block chain handling, whereby a duplicate block received that was...
Mike Hearn [Mon, 13 Feb 2012 20:36:09 +0000 (21:36 +0100)]
Fix an issue in block chain handling, whereby a duplicate block received that was not the chain head could result in wallet corruption and bogus "block forks the chain" messages. Resolves issue 135.

6 years agoUpdate the README to use correct capitalization of Bitcoin and reference the wallet...
Mike Hearn [Mon, 13 Feb 2012 19:48:26 +0000 (20:48 +0100)]
Update the README to use correct capitalization of Bitcoin and reference the wallet-tool script.

6 years agoAdd a little shell script that invokes WalletTool via maven.
Mike Hearn [Mon, 13 Feb 2012 19:48:05 +0000 (20:48 +0100)]
Add a little shell script that invokes WalletTool via maven.

6 years agoLower the level of a spammy log line.
Mike Hearn [Mon, 13 Feb 2012 19:47:52 +0000 (20:47 +0100)]
Lower the level of a spammy log line.

6 years agoWalletTool: allow specification of debug levels and force a particular peer to be...
Mike Hearn [Mon, 13 Feb 2012 19:47:32 +0000 (20:47 +0100)]
WalletTool: allow specification of debug levels and force a particular peer to be used. Add a bit of logging to WalletTool itself.

6 years agoMore JavaDocs for PeerAddress and default the port for the prodnet rather than zero...
Mike Hearn [Mon, 13 Feb 2012 19:46:42 +0000 (20:46 +0100)]
More JavaDocs for PeerAddress and default the port for the prodnet rather than zero, which is pretty useless.

6 years agoMake the semaphore in DownloadListener private
Mike Hearn [Mon, 13 Feb 2012 19:46:14 +0000 (20:46 +0100)]
Make the semaphore in DownloadListener private

6 years agoFix a minor bug in Peer.java where it wasn't always correctly constructing the block...
Mike Hearn [Sun, 12 Feb 2012 21:41:03 +0000 (22:41 +0100)]
Fix a minor bug in Peer.java where it wasn't always correctly constructing the block locator. Resolves issue 138. Bug found by Vasile Rotaru.

6 years agoWalletTool: allow control of logging from the command line. Change how block chain...
Mike Hearn [Sun, 12 Feb 2012 21:14:01 +0000 (22:14 +0100)]
WalletTool: allow control of logging from the command line. Change how block chain download is waited for.

6 years agoLog chain height in BlockChain c'tor
Mike Hearn [Sun, 12 Feb 2012 21:13:25 +0000 (22:13 +0100)]
Log chain height in BlockChain c'tor

6 years agoFast shutdown for PeerGroup.
Miron Cuperman [Thu, 9 Feb 2012 22:52:48 +0000 (14:52 -0800)]
Fast shutdown for PeerGroup.

Concurrency safe peerDiscoverers

Resolves issue 118.

6 years agoHandle the not-enough-funds case in sendCoinsAsync and sendCoins(PeerGroup ...)....
Mike Hearn [Fri, 10 Feb 2012 16:00:29 +0000 (17:00 +0100)]
Handle the not-enough-funds case in sendCoinsAsync and sendCoins(PeerGroup ...). They got a NPE in this case during a recent refactoring. Resolves issue 136.

6 years agoAdd missing synchronized keywords to various Wallet methods that were missing them...
Mike Hearn [Fri, 10 Feb 2012 15:56:26 +0000 (16:56 +0100)]
Add missing synchronized keywords to various Wallet methods that were missing them. Resolves issue 137.

6 years agoMake GetBlocksMessage/GetHeadersMessage not compare equal despite identical contents...
Mike Hearn [Fri, 10 Feb 2012 15:49:25 +0000 (16:49 +0100)]
Make GetBlocksMessage/GetHeadersMessage not compare equal despite identical contents, resolves issue 140.

6 years agoFix a minor bug in AddressMessage. Patch from Vasile Rotaru. Resolves issue 138.
Mike Hearn [Fri, 10 Feb 2012 15:44:57 +0000 (16:44 +0100)]
Fix a minor bug in AddressMessage. Patch from Vasile Rotaru. Resolves issue 138.

6 years agoMerge branch 'master' of https://code.google.com/p/bitcoinj
Mike Hearn [Fri, 10 Feb 2012 14:49:03 +0000 (15:49 +0100)]
Merge branch 'master' of https://code.google.com/p/bitcoinj

Conflicts:
src/com/google/bitcoin/core/Transaction.java

6 years agoFirst cut at a wallet manipulation tool.
Mike Hearn [Fri, 10 Feb 2012 14:47:10 +0000 (15:47 +0100)]
First cut at a wallet manipulation tool.

6 years agoLower logging level for unrecognized script outputs.
Mike Hearn [Fri, 10 Feb 2012 14:46:35 +0000 (15:46 +0100)]
Lower logging level for unrecognized script outputs.

6 years agoPut the creation timestamp in ECKey toString output.
Mike Hearn [Fri, 10 Feb 2012 14:46:12 +0000 (15:46 +0100)]
Put the creation timestamp in ECKey toString output.

6 years agoUse a slightly more sensible startup sequence for BoundedOverheadBlockStore to avoid...
Mike Hearn [Fri, 10 Feb 2012 14:45:43 +0000 (15:45 +0100)]
Use a slightly more sensible startup sequence for BoundedOverheadBlockStore to avoid log spam when creating a fresh chain.

6 years agoImproved Transaction.toString
Miron Cuperman [Thu, 9 Feb 2012 18:28:15 +0000 (10:28 -0800)]
Improved Transaction.toString

6 years agoCorrect a comment
Mike Hearn [Thu, 9 Feb 2012 15:15:00 +0000 (16:15 +0100)]
Correct a comment

6 years agoPrint outpoint data in Transaction toString() output
Mike Hearn [Thu, 9 Feb 2012 15:14:45 +0000 (16:14 +0100)]
Print outpoint data in Transaction toString() output

6 years agoChange order of outpoint printing to be more consistent with Bitcoin practice
Mike Hearn [Thu, 9 Feb 2012 15:14:29 +0000 (16:14 +0100)]
Change order of outpoint printing to be more consistent with Bitcoin practice

6 years agoPrevent Derby unit test from writing a pointless log file.
Mike Hearn [Tue, 7 Feb 2012 22:00:09 +0000 (23:00 +0100)]
Prevent Derby unit test from writing a pointless log file.

6 years agoUse temp dir under target/ for derby test, ensure we actually do delete the directory...
Mike Hearn [Tue, 7 Feb 2012 21:49:40 +0000 (22:49 +0100)]
Use temp dir under target/ for derby test, ensure we actually do delete the directory afterwards.
Resolves issue 129.

6 years agoAdd a big pile of JavaDocs to the WalletProtobufSerializer. Also make its c'tor priva...
Mike Hearn [Tue, 7 Feb 2012 21:35:11 +0000 (22:35 +0100)]
Add a big pile of JavaDocs to the WalletProtobufSerializer. Also make its c'tor private, so usage is clearer.

6 years agoProvide network parameter IDs as constant strings. Make the "id" field of NetworkPara...
Mike Hearn [Tue, 7 Feb 2012 21:34:39 +0000 (22:34 +0100)]
Provide network parameter IDs as constant strings. Make the "id" field of NetworkParameters private and make the getter upgrade the object using port as a heuristic if the field isn't present. Add a unit test to ensure we can convert old wallets to protobuf form. Resolves issue 134.

6 years agoMake a couple more Wallet methods public.
Mike Hearn [Tue, 7 Feb 2012 20:49:12 +0000 (21:49 +0100)]
Make a couple more Wallet methods public.

6 years agoSplit transaction creation into building a template and then completing it. Completin...
Mike Hearn [Tue, 7 Feb 2012 20:47:21 +0000 (21:47 +0100)]
Split transaction creation into building a template and then completing it. Completing a tx means adding inputs and possibly a change output to make the transaction valid. Also add a convenience addOutput() overload to Transaction. This makes it easier to create multi-sends.

Patch from Chris Rico.

6 years agoUse finer grained locking in the BlockChain to make accessing the chain head responsi...
Mike Hearn [Sun, 5 Feb 2012 22:44:43 +0000 (23:44 +0100)]
Use finer grained locking in the BlockChain to make accessing the chain head responsive even whilst the chain is downloading and the object is under heavy load. This takes getChainHead() out of the profiles for ToyWallet and allows for removing the code added there to work around this issue.

6 years agoImprove a comment and make Wallet.receivePending() public.
Mike Hearn [Fri, 3 Feb 2012 14:42:30 +0000 (15:42 +0100)]
Improve a comment and make Wallet.receivePending() public.

6 years agoImprove a log message
Mike Hearn [Fri, 3 Feb 2012 13:09:43 +0000 (14:09 +0100)]
Improve a log message

6 years agoCopy test wallet into build directory, fixes a failing test case.
Mike Hearn [Fri, 3 Feb 2012 13:00:12 +0000 (14:00 +0100)]
Copy test wallet into build directory, fixes a failing test case.

6 years agoExpose hashTransactionForSignature. The API will likely change in future.
Mike Hearn [Thu, 2 Feb 2012 17:21:28 +0000 (18:21 +0100)]
Expose hashTransactionForSignature. The API will likely change in future.

6 years agoAPI for setting version messages on outbound connections, and implementing BIP 14...
Mike Hearn [Thu, 2 Feb 2012 16:34:52 +0000 (17:34 +0100)]
API for setting version messages on outbound connections, and implementing BIP 14. Resolves issue 105.

6 years agoMigrate old wallets to use transaction confidences, as much as possible, and add...
Mike Hearn [Thu, 2 Feb 2012 15:17:54 +0000 (16:17 +0100)]
Migrate old wallets to use transaction confidences, as much as possible, and add a unit test for deserializing old wallets.

6 years agoGet rid of some warnings
Miron Cuperman [Thu, 2 Feb 2012 22:51:31 +0000 (14:51 -0800)]
Get rid of some warnings

6 years agoBe lenient in parsing tx confidence protobuf, store pubkeys, cleanup
Miron Cuperman [Thu, 26 Jan 2012 18:43:15 +0000 (10:43 -0800)]
Be lenient in parsing tx confidence protobuf, store pubkeys, cleanup

6 years agoPersist TransactionConfidence to protobuf
Miron Cuperman [Wed, 25 Jan 2012 18:40:20 +0000 (10:40 -0800)]
Persist TransactionConfidence to protobuf

6 years agoMake BlockTest.testDate pass outside of CET.
Mike Hearn [Thu, 2 Feb 2012 14:37:24 +0000 (15:37 +0100)]
Make BlockTest.testDate pass outside of CET.

6 years agoCreate the localhost address without relying on a method that does DNS lookups behind...
Mike Hearn [Thu, 2 Feb 2012 14:00:46 +0000 (15:00 +0100)]
Create the localhost address without relying on a method that does DNS lookups behind the scenes. Resolves issue 120.

6 years agoInvoke onCoinsSent() when receiving a pending transaction that spends the wallets...
Mike Hearn [Thu, 2 Feb 2012 13:49:46 +0000 (14:49 +0100)]
Invoke onCoinsSent() when receiving a pending transaction that spends the wallets coins.

6 years agoAdd a comment to the EventListenerInvoker class.
Mike Hearn [Thu, 2 Feb 2012 13:48:23 +0000 (14:48 +0100)]
Add a comment to the EventListenerInvoker class.

6 years agoPubkeys are 65 bytes, not 32.
Mike Hearn [Thu, 26 Jan 2012 17:40:24 +0000 (18:40 +0100)]
Pubkeys are 65 bytes, not 32.

6 years agoCallbacks for when a transaction in the chain is seen that spends coins from our...
Mike Hearn [Thu, 26 Jan 2012 15:25:16 +0000 (16:25 +0100)]
Callbacks for when a transaction in the chain is seen that spends coins from our wallet, not just to.
Introduce EventListenerInvoker to simplify the pattern by which event listeners can delete themselves safely whilst running.
Update the ToyWallet app to accept a public key:creation time pair on the command line and show all relevant transactions, to demonstrate (very crudely) the watching functionality.

6 years agoSlight redesign of the ECKey API to allow you to have public only ("watching") keys.
Mike Hearn [Thu, 26 Jan 2012 15:23:29 +0000 (16:23 +0100)]
Slight redesign of the ECKey API to allow you to have public only ("watching") keys.

6 years agoFix a dumb seconds/milliseconds mismatch bug in Block.getTime(). Add a unit test.
Mike Hearn [Thu, 26 Jan 2012 14:25:15 +0000 (15:25 +0100)]
Fix a dumb seconds/milliseconds mismatch bug in Block.getTime(). Add a unit test.

6 years agoAdd an accessor to set the key creation time, along with another convenience c'tor...
Mike Hearn [Wed, 25 Jan 2012 16:20:18 +0000 (17:20 +0100)]
Add an accessor to set the key creation time, along with another convenience c'tor to make the API a bit less inconsistent. Resolves issue 117.

6 years agoPort Wallet to use getAppearsInHashes(), which resolves some failing unit tests.
Mike Hearn [Wed, 25 Jan 2012 15:58:31 +0000 (16:58 +0100)]
Port Wallet to use getAppearsInHashes(), which resolves some failing unit tests.

6 years agoMerge branch 'master' of https://code.google.com/p/bitcoinj
Mike Hearn [Sat, 21 Jan 2012 16:56:53 +0000 (17:56 +0100)]
Merge branch 'master' of https://code.google.com/p/bitcoinj

6 years agoFollow the protocol change that occurs on Feb 20th
Mike Hearn [Sat, 21 Jan 2012 16:56:19 +0000 (17:56 +0100)]
Follow the protocol change that occurs on Feb 20th

6 years agoDisable the gen source directory for now as it is unused
Miron Cuperman [Thu, 19 Jan 2012 16:41:41 +0000 (08:41 -0800)]
Disable the gen source directory for now as it is unused

6 years agoRemove dependence of WalletProtobufSerializer on BlockStore, migrate to Transaction...
Miron Cuperman [Tue, 17 Jan 2012 19:06:01 +0000 (11:06 -0800)]
Remove dependence of WalletProtobufSerializer on BlockStore, migrate to Transaction.appearsInHashes

6 years agoProvide a sendCoinsAsync that returns immediately instead of waiting for the tx to...
Mike Hearn [Mon, 16 Jan 2012 18:16:16 +0000 (19:16 +0100)]
Provide a sendCoinsAsync that returns immediately instead of waiting for the tx to be broadcast. Change PeerGroup.broadcastTransaction to return a Future<Transaction> and only consider the tx to be broadcast once it was written to at least one peer directly (not waiting for a response to an inv). Re-plumb the peer group thread to poll for tasks when there are active peers.

6 years agoSet newly created wallet transactions to have NOT_SEEN_IN_CHAIN confidence rather...
Mike Hearn [Mon, 16 Jan 2012 16:47:52 +0000 (17:47 +0100)]
Set newly created wallet transactions to have NOT_SEEN_IN_CHAIN confidence rather than UNKNOWN.

6 years agoAdd a .gitignore file that contains the target directory.
Mike Hearn [Mon, 16 Jan 2012 16:44:10 +0000 (17:44 +0100)]
Add a .gitignore file that contains the target directory.

6 years agoRationalize protobuf Pool enum
Miron Cuperman [Thu, 12 Jan 2012 00:29:09 +0000 (16:29 -0800)]
Rationalize protobuf Pool enum

6 years agoFixes to protobuf building from Gary
Miron Cuperman [Thu, 12 Jan 2012 00:04:14 +0000 (16:04 -0800)]
Fixes to protobuf building from Gary

6 years agoAllow building without protobuf-compiler installed
Miron Cuperman [Wed, 11 Jan 2012 21:34:14 +0000 (13:34 -0800)]
Allow building without protobuf-compiler installed

6 years agoFix test, upgrade to protobuf 2.4.1, doc
Miron Cuperman [Wed, 11 Jan 2012 20:41:14 +0000 (12:41 -0800)]
Fix test, upgrade to protobuf 2.4.1, doc

6 years agoFixes based on input from Mike, fix invariant checking, fix spentBy
Miron Cuperman [Wed, 11 Jan 2012 18:04:00 +0000 (10:04 -0800)]
Fixes based on input from Mike, fix invariant checking, fix spentBy

6 years agoWallet protobuf cleanup.
Miron Cuperman [Tue, 10 Jan 2012 19:10:15 +0000 (11:10 -0800)]
Wallet protobuf cleanup.

* Un-nest protobuf

* Add rest of tx fields, ASN.1 private key

* Pending-inactive combo

* Tests

6 years agoRead Wallet from protobuf stream
Miron Cuperman [Sat, 7 Jan 2012 00:31:43 +0000 (16:31 -0800)]
Read Wallet from protobuf stream

6 years agoProtobuf serialization for Wallet
Miron Cuperman [Fri, 6 Jan 2012 22:50:34 +0000 (14:50 -0800)]
Protobuf serialization for Wallet

6 years agoFix merge mistake, fix PeerGroup.stop
Miron Cuperman [Mon, 9 Jan 2012 20:59:44 +0000 (12:59 -0800)]
Fix merge mistake, fix PeerGroup.stop

6 years agoRepair the damage caused by a bad merge in rev 56489f9fc60c
Mike Hearn [Mon, 9 Jan 2012 16:59:45 +0000 (17:59 +0100)]
Repair the damage caused by a bad merge in rev 56489f9fc60c

6 years agoAddress some review comments from Miron.
Mike Hearn [Mon, 9 Jan 2012 14:42:43 +0000 (15:42 +0100)]
Address some review comments from Miron.

6 years agoWallet side of the quick hack (oops)
Mike Hearn [Tue, 27 Dec 2011 23:14:11 +0000 (23:14 +0000)]
Wallet side of the quick hack (oops)

6 years agoQuick hack (unfinished API) to clear out wallet transactions so you can replay the...
Mike Hearn [Tue, 27 Dec 2011 23:10:32 +0000 (23:10 +0000)]
Quick hack (unfinished API) to clear out wallet transactions so you can replay the wallet in case of bugs, like forgetting to save the wallet when you need to.

6 years agoCouple of minor concurrency fixes.
Mike Hearn [Tue, 27 Dec 2011 23:05:55 +0000 (23:05 +0000)]
Couple of minor concurrency fixes.

6 years agoAnnounce pending transactions in wallets when a peer connects (both self-created...
Mike Hearn [Tue, 27 Dec 2011 21:52:00 +0000 (21:52 +0000)]
Announce pending transactions in wallets when a peer connects (both self-created spends and relevant received transactions). Allow creation of transactions without broadcast, for offline wallets.

6 years agoAdd an ugly toy wallet app, which will evolve into a more fully fledged example of...
Mike Hearn [Mon, 26 Dec 2011 18:37:41 +0000 (18:37 +0000)]
Add an ugly toy wallet app, which will evolve into a more fully fledged example of a MultiBit style app. This keeps it obvious how much boilerplate type code is needed and what other features might be helpful. Currently it just shows transactions received with their confidences.

6 years agoAdd an accessor for network params to the wallet. Bugfix for TransactionConfidence...
Mike Hearn [Mon, 26 Dec 2011 16:10:29 +0000 (16:10 +0000)]
Add an accessor for network params to the wallet. Bugfix for TransactionConfidence (again)

6 years agoRemove memory usage optimization that was complicating things.
Mike Hearn [Sat, 24 Dec 2011 19:30:55 +0000 (19:30 +0000)]
Remove memory usage optimization that was complicating things.

6 years agoRework how event listeners are called, so tx confidences are updated at the end of...
Mike Hearn [Sat, 24 Dec 2011 18:42:14 +0000 (18:42 +0000)]
Rework how event listeners are called, so tx confidences are updated at the end of the receive process. Otherwise it's possible for the wallet to get confused because the state can change in the middle of processing. Document this and add a test. Update PingService. Also, change onCoinsReceived so it's only called once per transaction, to know when a tx appears in a block requires registration of a tx confidence listener.

6 years agoAdd event listeners to the TransactionConfidence object and a duplicate method.
Mike Hearn [Wed, 21 Dec 2011 14:56:58 +0000 (15:56 +0100)]
Add event listeners to the TransactionConfidence object and a duplicate method.

6 years agoAdd a numConnectedPeers() accessor to PeerGroup.
Mike Hearn [Wed, 21 Dec 2011 14:55:02 +0000 (15:55 +0100)]
Add a numConnectedPeers() accessor to PeerGroup.

6 years agoMinor typo fix.
Mike Hearn [Wed, 21 Dec 2011 14:54:44 +0000 (15:54 +0100)]
Minor typo fix.

6 years agoConfidence levels now include double spending of transactions. Add a unit test to...
Mike Hearn [Mon, 19 Dec 2011 23:56:24 +0000 (00:56 +0100)]
Confidence levels now include double spending of transactions. Add a unit test to check the inbound finney attack case, in which a double spending block overrides a pending transaction.

6 years agoPut a bound on the size of the peer transaction pools.
Mike Hearn [Mon, 19 Dec 2011 22:54:18 +0000 (23:54 +0100)]
Put a bound on the size of the peer transaction pools.

6 years agoStore a transaction in the Peer if we've seen it before.
Mike Hearn [Mon, 19 Dec 2011 22:37:36 +0000 (23:37 +0100)]
Store a transaction in the Peer if we've seen it before.

6 years agoAdd a couple of methods to TransactionConfidence to get depth in chain measured in...
Mike Hearn [Sat, 17 Dec 2011 00:00:58 +0000 (01:00 +0100)]
Add a couple of methods to TransactionConfidence to get depth in chain measured in blocks and work done. Add example of usage to PingService. Still not quite there yet.

6 years agoFirst cut at transaction confidence levels. Expose a TransactionConfidence object...
Mike Hearn [Fri, 16 Dec 2011 17:13:55 +0000 (18:13 +0100)]
First cut at transaction confidence levels. Expose a TransactionConfidence object that is updated by peers and wallets, which tracks how many peers have announced the transaction and the height of the transaction in the best chain (if any). Unit tests that check it does the right thing with re-orgs. Various small cleanups and simplifications in the tests.

6 years agoAddress more of Mirons review comments. Peers and PeerGroups now notify PeerEventList...
Mike Hearn [Thu, 15 Dec 2011 14:43:32 +0000 (15:43 +0100)]
Address more of Mirons review comments. Peers and PeerGroups now notify PeerEventListeners of broadcast transactions. Wallets provide an event listener object (note: they don't implement directly as most events are not of interest). Convenience APIs are provided to make linking it all together clearer.

6 years agoAddress some review comments from Miron:
Mike Hearn [Tue, 6 Dec 2011 11:42:12 +0000 (12:42 +0100)]
Address some review comments from Miron:
- Remove safety check that could disguise bugs in future
- Typo fix.
Fix a bug that caused the tx.isPending() flag to be wrong inside callbacks, revealed by manual testing. Improved unit test realism to catch this case.

6 years agoAllow specification of the remote peer to connect to in PingService.
Mike Hearn [Tue, 6 Dec 2011 11:40:40 +0000 (12:40 +0100)]
Allow specification of the remote peer to connect to in PingService.
Save the wallet after receiving a pending transaction.

6 years agoFirst cut at a pending transactions patch. This isn't the final API, which will
Mike Hearn [Tue, 29 Nov 2011 14:11:15 +0000 (15:11 +0100)]
First cut at a pending transactions patch. This isn't the final API, which will
involve some changes to the wallet event listener/tx to have a concept of
confidence levels.

6 years agoTemporarily disable a couple of non-deterministic tests.
Mike Hearn [Mon, 9 Jan 2012 11:09:11 +0000 (12:09 +0100)]
Temporarily disable a couple of non-deterministic tests.

6 years agoMerge branch 'master' of https://code.google.com/p/bitcoinj
Mike Hearn [Mon, 9 Jan 2012 11:02:33 +0000 (12:02 +0100)]
Merge branch 'master' of https://code.google.com/p/bitcoinj

6 years agoAddress comments from Miron and Andreas:
Mike Hearn [Mon, 9 Jan 2012 10:57:08 +0000 (11:57 +0100)]
Address comments from Miron and Andreas:
- Make GetBlocksMessage/GetHeadersMessage implement toString/hashCode
- Minor comment/naming fixes
- > not >= for comparing fast catchup time to block header
- Return current time in Wallet.getEarliestKeyCreationTime() rather than throw an exception when there are no keys in the wallet.

6 years agoPrepare Derby for merging
Miron Cuperman [Thu, 5 Jan 2012 23:58:35 +0000 (15:58 -0800)]
Prepare Derby for merging

6 years agoSmall cleanup and optimization for Derby store
Miron Cuperman [Fri, 16 Dec 2011 22:04:06 +0000 (14:04 -0800)]
Small cleanup and optimization for Derby store