Mike Hearn
4ae6349f35
Fix for Android ART vs Dalvik difference.
2014-08-06 16:40:13 +02:00
Mike Hearn
e41e0c4a1d
Allow usage of signMessage for deterministic keys.
2014-08-06 16:26:48 +02:00
Mike Hearn
047c5ccd03
WalletAppKit: configure Orchid/Tor to use the same directory as bitcoinj uses.
2014-08-06 16:12:41 +02:00
Mike Hearn
96e4774e79
Add support for fetching UTXOs from a peer using the getutxo message.
2014-08-06 13:43:51 +02:00
Mike Hearn
bca2f2abac
Make Wallet.queue* methods protected so subclasses can call them.
2014-08-06 13:43:31 +02:00
Kosta Korenkov
5cfdca1c98
Add ability to create scriptSigs with empty signatures
...
For partial scriptSig OP_0 is used as a signature placeholder:
Pay-to-address: OP_0 [pubkey]
Pay-to-pubkey: OP_0
P2SH with 2-of-3 CHECKMULTISIG: OP_0 OP_0 OP_0 [redeem script]
2014-08-05 20:49:40 +02:00
Martin Zachrison
bc97cf977f
Handle creation of non existing parent directories. Improve exception message.
2014-08-05 17:36:04 +02:00
Mike Hearn
0a7fdf35ba
Add some junk to the POM to create a dedicated bundled JAR for the pull tester.
2014-08-05 16:48:58 +02:00
Andreas Schildbach
918665a6e4
Work done can never be negative. Assert for that fact, because we've seen negative values in the wild.
2014-08-05 12:34:57 +02:00
Kosta Korenkov
fa3037a4b2
Fix KeyChainGroup.toString double keys output
2014-08-05 12:34:18 +02:00
Andreas Schildbach
299879c418
Allow fallback URLs for BIP72 payment request fetching. Adds unit tests.
2014-08-04 14:30:59 +02:00
Mike Hearn
e03f184a1f
PaymentProtocol: fix seconds vs milliseconds confusion. Thanks to Adam Mackler for the bug report.
2014-08-03 21:06:15 +02:00
cyberzac
eff9ac2ecc
Support for bundling an optional info Protobuf ByteString with a PaymentAck message
2014-08-03 21:02:40 +02:00
Mike Hearn
f1dd47443f
More hashes for the dependency verifier, also request version divergence detection. Bump JSR350 jar version.
2014-08-03 20:52:22 +02:00
Mike Hearn
fe6f5aff01
Payment channels: ByteString.EMPTY -> null
2014-07-31 16:18:48 +02:00
cyberzac
1153192be8
Support for bundling an optional info Protobuf ByteString with an UpdatePayment message.
2014-07-31 16:01:38 +02:00
Mike Hearn
9e56093353
ConnectionHandler: Make comment a bit clearer.
2014-07-31 15:55:24 +02:00
Matt Corallo
c5cb306927
Fix memory leak on timeout in NioClient
2014-07-31 15:53:23 +02:00
Matt Corallo
5f5700bbb0
Fix race between connectionClosed() and ConnectionHandler()
2014-07-31 15:53:22 +02:00
Mike Hearn
4dc3392719
Fix Java 6 compatibility.
2014-07-31 15:53:14 +02:00
Mike Hearn
0f124b9ef4
Add some javadocs for Wallet.fromWatchingKey
2014-07-30 12:06:16 +02:00
eleetas
914752623d
close connection regardless of autocommit status and set conn to null
2014-07-30 11:25:55 +02:00
Mike Hearn
d681c72b30
Fix typo
2014-07-30 11:09:56 +02:00
Carlos Lopez-Camey
12e1c3f6bd
Improve javadocs, revert unnecessary unmodifiable list
2014-07-29 12:31:08 -06:00
Carlos Lopez-Camey
ce7520b0c8
Merge branch 'master' of https://github.com/bitcoinj/bitcoinj
2014-07-29 12:23:42 -06:00
Mike Hearn
6679f42f4a
Use a local Bitcoin node if one is detected instead of the p2p network. This allows any user of a bitcoinj based app to upgrade from SPV to full mode security by just installing and running Core on the same machine. Can be controlled with a new property on PeerGroup.
2014-07-29 18:13:52 +02:00
Mike Hearn
812a4f59c4
Re-allow Android devs to override the mnemonic code instance.
2014-07-28 16:13:12 +02:00
Carlos Lopez-Camey
40709495fc
Merge branch 'master' of github.com:kmels/bitcoinj
2014-07-27 13:19:06 -06:00
Carlos Lopez-Camey
e208430ab6
adds helper methods Transaction.getWalletOutputs, TransactionOutput.getAddressFromPubKey and TransactionOutput.getAddressFromScript.
2014-07-27 13:15:20 -06:00
Mike Hearn
539037ec0e
Switch to accelerated secp256k1: huge speed improvements.
2014-07-26 14:56:34 +02:00
Mike Hearn
6ae4662f93
Upgrade to Bouncy/Spongy Castle 1.51
2014-07-26 14:48:51 +02:00
Kosta Korenkov
55803b15ac
Fix Script.getNumberOfBytesRequiredToSpend for P2SH
...
It is a size of redeem script that should be taken into account, not a
size of scriptPubKey
2014-07-26 01:05:22 +04:00
freak
b2efb0ddc2
Close connections in PostgresFullPrunedBlockStore. same as: b6f61e8850
2014-07-23 16:10:45 +02:00
Jiri Peinlich
cb0d052e08
use List interface instead of LinkedList implementation
2014-07-23 16:08:36 +02:00
Andreas Schildbach
c6659bcf5f
BIP38: Fix test using supplementary characters in the passphrase.
2014-07-23 16:07:26 +02:00
Mike Hearn
4a45d4a27f
Print full backtrace when a wallet extension fails to load.
2014-07-23 15:40:14 +02:00
Mike Hearn
afb732c528
Restore new tx purposes correctly.
2014-07-22 16:11:29 +02:00
Mike Hearn
626117bc29
Add logging for output disconnection and reconnection.
2014-07-22 16:04:26 +02:00
Mike Hearn
92544e9d47
Add ASSURANCE_CONTRACT_CLAIM/PLEDGE/STUB to the purpose field.
2014-07-21 16:42:20 +02:00
Mike Hearn
a5e4d046df
Adjust the behaviour of the current key mechanism to be more like what gui wallets really need.
2014-07-15 20:55:23 +02:00
Mike Hearn
96ee76e506
Update bip38 test3 ignore message again now the problem is better understood.
2014-07-15 20:52:08 +02:00
Mike Hearn
e143b2b4cb
Re-organise the layout of the Wallet file and introduce IntelliJ compatible editor regions, so parts of the code can be folded by feature area. This also makes it easier to understand what exactly the wallet does and why it's so huge.
2014-07-15 17:14:59 +02:00
Mike Hearn
b6c1e385c0
Update wallet todo list.
2014-07-15 16:31:03 +02:00
Giannis Dzegoutanis
5e1942f3f0
Made some methods public in BasicKeyChain. Fixes in deterministic key generation
2014-07-15 16:24:53 +02:00
Andreas Schildbach
72b7929523
Getter for addresses watched by wallet.
2014-07-15 14:42:20 +02:00
Andreas Schildbach
15060572a9
Fix some exception messages in BIP38PrivateKey.
2014-07-15 14:06:25 +02:00
Mike Hearn
0addfd63ec
Fix reason why BIP38 test vector is failing, Java strings can contain null characters just fine.
2014-07-15 14:05:04 +02:00
Mike Hearn
bab16650f9
HD Wallets: fix key lookahead and auto-advance so it works as intended.
...
Previously the codepath that was supposed to mark keys as used didn't work, and the lookahead calculation wasn't quite right. Now the current key advances correctly when an inbound tx is found that spends to it, including pending transactions. Additionally the lookahead zone now has the threshold zone after it, not inside it, meaning that if you request a lookahead size of 100 keys you'll actually always have at least 100 keys, never less.
2014-07-15 13:41:45 +02:00
Aaron Voisine
89b4b78dc4
fixed MAX_STANDARD_TX_SIZE to match bitcoin core
...
in bitcoin core MAX_STANDARD_TX_SIZE is 100000, not 102400
https://github.com/bitcoin/bitcoin/blob/master/src/main.h#L43
2014-07-14 16:19:53 -07:00
Andreas Schildbach
8068230042
Remove superfluous AddressFormatException from BIP38PrivateKey.decrypt().
2014-07-13 22:10:28 +02:00