Commit Graph

1509 Commits

Author SHA1 Message Date
Mike Hearn
eceae231e8 Fix a crash that can occur if a peer reports a chain height of zero (this is a protocol violation but such crashes were seen in the wild). 2014-04-22 15:07:01 +02:00
Andreas Schildbach
30cc5c6a12 Adjust MIN_NONDUST_OUTPUT down to 546 only for risk analysis. This is required because we start seeing more and more transactions using the new fee rules introduced with Bitcoin Core 0.9. 2014-04-18 15:44:25 +02:00
Mike Hearn
4faa8b486c TransactionInput: verify(): don't crash if the given output has no parent. Clears a static analysis warning. 2014-04-18 15:37:38 +02:00
Andreas Schildbach
ea8e122cef Cheap test to see if an input stream is a wallet. 2014-04-18 15:36:18 +02:00
Mike Hearn
1bc77f843b More mock clock conversions, to avoid failures when running test cases independently.
Probably we should be injecting a mock Clock class so it goes away at the end of each test, but this would complicate the API somewhat.
2014-04-18 15:36:18 +02:00
Mike Hearn
60b0d917e7 Fix unit test broken by less aggressive backoff time. 2014-04-18 15:28:15 +02:00
Mike Hearn
95009f0310 PeerGroup: tweak global backoff to be faster. 2014-04-18 15:19:55 +02:00
Mike Hearn
86e63fb048 PeerGroup: bugfixes to backoff.
1) Do the wait even on the exception path so if discoverPeers throws, we don't bypass the sleep.
2) Move some field accesses inside the lock.

Resolves issue 527.
2014-04-18 15:18:59 +02:00
Andreas Schildbach
f399dafefc Fix race of mock clock with current time if tests are all run sequentially. This commit requires you to use one of the setMockClock() variants before being able to roll it. 2014-04-18 15:18:58 +02:00
Andreas Schildbach
d5ffe88cff In Transaction.toString(): For outpoints, show the pubkey-hash of the connected output (if available). This makes it easier to debug wallets. 2014-04-18 15:14:41 +02:00
Mike Hearn
635002ce11 BloomFilter: javadoc updates 2014-04-18 15:14:14 +02:00
Mike Rosseel
1e58cdc4cf mark didn't really make a mark 2014-04-18 15:13:05 +02:00
Andreas Schildbach
4eb792c74d Allow shutting down wallet auto-saving. 2014-04-18 15:09:27 +02:00
monk
cae096295f Initiliaze/assign sendResult. Prevents NullPointerException and app from crashing when sending money out. 2014-04-18 15:09:11 +02:00
Mike Hearn
de58cb0444 PaymentSession: extract names from S/MIME certificates as well as SSL certs. 2014-04-18 15:06:54 +02:00
Mike Hearn
1a15ae2f52 ECKey: fix bug where creation time was lost when encrypting/decrypting. 2014-04-18 15:06:14 +02:00
Andreas Schildbach
25c332a71b Include the hash160 of addresses in Wallet.toString(). This makes it easier to debug wallets just from the dump. 2014-04-18 15:04:11 +02:00
Mike Hearn
e5677c2f53 Wallet: disallow adding of keys that don't match the wallet's encryption state. 2014-04-18 15:02:03 +02:00
Andreas Schildbach
9010b9a411 Remove incorrect execution of OP_0. That code was never reached, because OP_0 is not an opcode in terms of chunk.isOpCode()). However, it lead to believe that OP_0 pushes the vector [0], rather than correctly the empty vector to the stack.
Because the code was never executed, this bug could never trigger a test. Afaict, script.cpp does not have the corresponding case in its switch block.
2014-04-18 14:59:18 +02:00
Andreas Schildbach
74cf34db82 Add script test to prove that OP_0 evaluates as the empty vector, rather than [0]. Also adds debug output in case an script_invalid.json test fails. 2014-04-18 14:56:24 +02:00
Mike Hearn
16aeea9104 Correct maven instruction in the README file and make ForwardingService work on mainnet again by fixing command line arg parsing.
Resolves issue 523.
2014-04-18 14:53:26 +02:00
Mike Hearn
8fc63e482e Hex dump pending transactions that double spend each other. 2014-04-18 14:50:22 +02:00
Andreas Schildbach
9592f25ba1 Fix method name in SendRequest.aesKey javadoc. 2014-04-18 14:48:35 +02:00
Diego Basch
afff0f701d added path to files on the Mac 2014-04-18 14:46:36 +02:00
Andreas Schildbach
38e103feea Print available balance in Wallet.toString(), rather than the redundant number of Satoshis. 2014-04-18 14:41:51 +02:00
Peter Todd
b3e6a23f0e Update BIP URLs to new github repo 2014-04-18 14:41:23 +02:00
Andreas Schildbach
fd6ceac30c Fix crash in case wallet is so inconsistent that even .toString() fails. 2014-04-18 14:37:33 +02:00
Andreas Schildbach
112f6ab624 Prepare 0.11.2-SNAPSHOT 2014-04-18 14:26:09 +02:00
Mike Hearn
60199f810a Build a bundled JAR for the core in parallel to the normal unbundled JAR. Helps people who don't use Maven for some reason, like Jython/JRuby users. 2014-03-05 17:32:06 +01:00
Andreas Schildbach
95abd140f0 Release 0.11.1 v0.11.1 2014-02-23 13:34:40 +01:00
Mike Hearn
e783895dd3 PeerGroup: fix a regression that stopped Bloom filters being sent when a key is added, and add a unit test covering that behaviour.
Resolves issue 524.
2014-02-23 13:21:55 +01:00
Andreas Schildbach
cc89cd0d16 Don't throw just because the name of the CA cannot be determined. 2014-02-22 16:11:54 +01:00
Andreas Schildbach
28a5d8abbc Fix handling of defaults when parsing the payment message. Bitpay is leaving out the payment details version which was handled incorrectly. Adds a testcase for the defaults. 2014-02-21 13:54:20 +01:00
Mike Hearn
3ffcce49f9 PaymentSession: some bug fixes and new accessors. 2014-02-21 13:53:50 +01:00
Andreas Schildbach
f581a53aa0 Add method to clean up the wallet.
Currently, it just removes risky pending transaction from the wallet and only if their outputs have not been spent. Includes unit-tests by Miron Cuperman.
2014-02-20 22:37:42 +01:00
Matt Corallo
a5bc2f3794 Add isStandard risk analysis.
This is currently only to deal with recent spam, especially dust sybil spam. Includes an unit-test by Andreas Schildbach.
2014-02-20 22:37:31 +01:00
Mike Hearn
5543b166cc Payment protocol: Expose a friendly/display name for validating CA 2014-02-19 09:52:16 +01:00
Andreas Schildbach
3755835d11 When printing the wallet, apply a sensible order to transaction pools. Again, it helps debugging of wallet problems. 2014-02-19 09:50:40 +01:00
Andreas Schildbach
0ee3dca7a0 Move pending transactions to the top of a wallet printout. It helps debugging, as pending transactions happen to attract most problems. 2014-02-19 09:50:03 +01:00
Andreas Schildbach
1250aa8e3d Prepare 0.11.1-SNAPSHOT 2014-02-06 10:33:56 +01:00
Mike Hearn
410d4547a7 Release 0.11 v0.11 2014-02-04 11:30:55 +01:00
Mike Hearn
71391c1271 Fix Maven enforcer hashes. 2014-02-04 11:30:55 +01:00
Mike Hearn
6958ad94f7 WalletTool tweaks. 2014-02-03 16:32:45 +01:00
Mike Hearn
04e7551e99 Move stuff around in the POMs as part of preparing for Maven Central. 2014-02-03 15:42:53 +01:00
Mike Hearn
f4def39f40 H2 is now being exercised more thoroughly and was leaving test db files hanging around that would cause the next run to fail, fix.
Rename method/clean up a bit.
2014-01-31 18:49:58 +01:00
Mike Hearn
f46dc809e4 Add a string c'tor to PaymentRequestException.InvalidPaymentURL 2014-01-31 16:01:00 +01:00
Mike Hearn
cf34fc2815 Add Alex and Kevin to the AUTHORS file. 2014-01-31 14:25:51 +01:00
Alex Taylor
c10e029384 Postgres block store, with ability to calculate address balances. 2014-01-31 14:23:40 +01:00
Mike Hearn
00ca0cea0c PeerGroup: pin TransactionBroadcasts from the peer group to avoid premature garbage collection when user code throws away the broadcast future.
Should resolve an issue Ken is having with flaky key sweeping.
2014-01-30 17:46:55 +01:00
Mike Hearn
fff5af29ff Recalculate but don't rebroadcast bloom filters when a p2pubkey output is received.
Resolves issue 513.
2014-01-30 17:43:33 +01:00