Mike Hearn
cd7dc3e535
Don't print logging messages when calculating checkpoints.
2015-01-12 16:53:45 +01:00
Andreas Schildbach
121d2fcb63
Change the WatchMempool pool to build statistics about risk analysis. Removes the pay-to-pubkey detection which was in there.
2015-01-02 17:30:24 +01:00
Mike Hearn
f82f160c2c
PeerGroup: configure peer as download peer even when there is no chain, but don't configure download params as that would trigger block fetch.
2014-12-21 14:03:13 +01:00
Mike Hearn
8f219ff458
WatchMempol: fix a regression
2014-12-21 13:57:17 +01:00
Mike Hearn
b25899de58
Rename DownloadListener to DownloadProgressTracker
2014-12-18 13:59:50 +01:00
Andreas Schildbach
478fb5dac9
Fix Integer to long casting compiler error for Eclipse.
2014-12-08 20:39:04 +01:00
Mike Hearn
e7c00df740
Replace peerGroup.startAsync/awaitRunning with start() and awaitTerminated with stop().
2014-11-24 13:04:58 +01:00
Andreas Schildbach
e12930c00f
Fix formatting dates at several places. Common mistakes:
...
- DateFormats are not thread safe
- new Date() is used for formatting which does not specify a locale
We now use a Utils.dateTimeFormat() helper for formatting to ISO 8601 (UTC).
2014-11-19 16:50:00 +01:00
Wojciech Langiewicz
41f8f5ccb4
Addes NetworkParams as a parameter to DeterministicKey serialization/deserialization.
2014-11-14 16:34:19 +01:00
Andreas Schildbach
91e7fe6816
WalletTool: magic --output value ALL for easier emptying of wallets.
2014-11-07 14:19:38 +01:00
Mike Hearn
f961e79346
WalletTool: use minBroadcastConnections == 1 when in regtest mode.
2014-11-04 23:19:21 +01:00
Andreas Schildbach
e9f016b753
Rename wallet-tool option --net=PROD to --net=MAIN. PROD can still be used as an alias to MAIN.
...
The mainnet blockchain file is renamed to mainnet.chain.
2014-11-03 14:23:36 +01:00
Mike Hearn
6c5d51f55a
WalletTool: allow rotation time to be specified in seconds.
2014-10-23 15:42:05 +02:00
Mike Hearn
ea02436f96
Rename maybeDoMaintenance to doMaintenance and add a bit more docs.
2014-10-22 19:32:51 +02:00
Mike Hearn
77ace479d9
Key rotation: remove the enabled setting. It's no longer useful and defaulted to off, which is dangerous and can lead to bugs.
2014-10-22 19:32:51 +02:00
Devrandom
22f0600afe
Refactor married keychains
...
* move handling of following keychains into the leading keychain
* move multisig threshold into the leading keychain
* extract MarriedKeyChain from DeterministicKeyChain
2014-10-07 15:39:04 +02:00
Mike Hearn
9dcc4ed6f4
0.13-SNAPSHOT
2014-10-05 20:38:00 +02:00
Mike Hearn
83a9a71f3f
bitcoinj 0.12
2014-10-03 00:46:31 +02:00
Mike Hearn
0a6f901b23
Renamespace to org.bitcoinj away from com.google.bitcoin, as bitcoinj is no longer a Google project and being namespaced under com.google causes issues with Sonatype/Maven Central.
...
To fixinate your code:
find . -name '*.java' | xargs sed -i .bak 's/import com.google.bitcoin./import org.bitcoinj./g;s/import static com.google.bitcoin./import static org.bitcoinj./g'
2014-09-30 17:05:07 +02:00
Devrandom
03bacf4fa9
Cache deterministic seed
2014-09-22 15:00:18 +02:00
Andreas Schildbach
3e5e3496ea
Introduce textual checkpoint format. It's basically one base64-encoded line per checkpoint.
...
The BuildCheckpoints tool now generates and sanity checks both formats.
2014-09-10 17:59:41 +02:00
Mike Hearn
664d0b130c
Make WalletTool compile again.
2014-08-21 13:57:44 +02:00
Mike Hearn
014438b456
Take out the redundant SigHashType parameter to wallet.signTransaction.
...
In the end the API evolved in such a way that changing this param isn't that useful. To do contracts you tend to work with transactions directly, and a Wallet subclass that needs to do special signing by default can override the signing engine used.
2014-08-13 14:57:43 +02:00
Kosta Korenkov
f6b2fa5a2b
Pluggable signers: simple local KeyBag signer
...
Introduced pluggable signers notion. Instances of
TransactionSigner could be added into the wallet, so that they subsequently
applied to transaction to complete it.
Existing signing code (Transaction.signInputs) was refactored into
LocalTransactionSigner, which is always implicitly added to any wallet.
Related pull request: #157
2014-08-12 17:58:29 +02:00
Mike Hearn
90492b61f7
Change printed format of the wallet to be less verbose and make wallet-tool not dump privkeys by default.
2014-08-11 18:26:23 +02:00
Andreas Schildbach
415e43885c
Consistently use version 2.3 of maven-shade-plugin.
2014-08-11 11:18:09 +02:00
Mike Hearn
6778a51d45
Create a lightly optimised, dedicated JAR for wallet-tool instead of the oddly named bitcoinj-tools-0.12.jar
2014-08-05 15:42:29 +02: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
bb362aa483
WalletTool: make raw-dump output a little more helpful.
2014-07-21 16:23:43 +02:00
Mike Hearn
d6cf090f5c
Take out old WalletTool code that let you specify entropy as hex.
2014-07-11 13:12:40 +02:00
Mike Hearn
36b1eb7dee
Disable code that no longer compiles in WalletTool pending fix.
2014-07-10 15:33:34 +02:00
Devrandom
2fae12064c
Fix BIP39 implementation
2014-07-10 14:53:42 +02:00
Andreas Schildbach
afcc7e3f13
Coin.toFriendlyFormat() includes denomination (BTC). This saves a lot of string concatenation code.
2014-07-05 21:03:51 +02:00
Mike Hearn
dbd6004f1b
HD Wallets: redo key rotation, it's no longer automatic and expects the wallet app to poll for maintenance transactions. Deterministic keys now inherit the creation time of their parent.
2014-06-26 16:21:23 +02:00
Mike Hearn
7b337680bf
Add encrypt/decrypt command to the WalletTool help text.
2014-06-26 16:21:22 +02:00
troggy
736c4c9907
Married HD wallets: Bloom filter adjustments
...
Pull request: #115
Based on design notes:
https://groups.google.com/forum/#!msg/bitcoinj/Uxl-z40OLuQ/e2m4mEWR6gMJ
2014-06-26 14:45:03 +02:00
Kosta Korenkov
9680911bca
Fix autosave in WalletTool on Windows
...
Wallet.saveToFile failed to remove original wallet file because WalletTool
left open input stream. This error happened on Windows-specific code path
Stacktrace:
```
Failed to save wallet! Old wallet should be left untouched.
java.io.IOException: Failed to delete canonical wallet file for
replacement with autosave
at com.google.bitcoin.core.Wallet.saveToFile(Wallet.java:834)
at
com.google.bitcoin.core.Wallet.saveToFile(Wallet.java:863)
at
com.google.bitcoin.tools.WalletTool.saveWallet(WalletTool.java:851)
at
com.google.bitcoin.tools.WalletTool.main(WalletTool.java:362)
```
2014-06-24 14:19:14 +02:00
Kosta Korenkov
215ecbfa21
Wallet tool launcher for Windows
...
Essentially it is just a port of wallet-tool bash script
2014-06-24 14:18:58 +02:00
Mike Hearn
443d556909
HD Wallets: implement auto upgrade behaviour and refresh the design doc.
2014-06-13 14:11:51 +02:00
Andreas Schildbach
49adaeed16
Rename Coin.toNanoCoin(String) to Coin.parseCoin(String).
2014-05-30 15:09:33 +02:00
Andreas Schildbach
3e846901cb
Remove weird value accessors.
2014-05-30 15:09:33 +02:00
Andreas Schildbach
eb81b0c815
Move coin related methods and constants from Utils into Coin.
2014-05-30 15:09:32 +02:00
Andreas Schildbach
022e7c27fe
Wrap coin-ish BigIntegers into Coin class.
2014-05-30 15:09:32 +02:00
Mike Hearn
1f776c3f19
Add a program that measures confirmation time for a given fee level.
...
This is a complementary approach to what the estimatefees code for Core does, because Core cannot really measure confirmation time for a fee level if nobody is setting it.
2014-05-29 20:11:17 +02:00
Mike Hearn
45a1b11b48
WalletTool: add a lookahead flag that lets you control the lookahead size on the receive branch. Update help text to reflect the new flag and the seed flag as well.
2014-05-29 20:11:15 +02:00
Mike Hearn
51b71a4363
HD Wallets: support watching wallets in Wallet and wallet-tool.
...
Also, respect includePrivateKeys flag for the seed in wallet.toString again.
2014-05-29 20:11:14 +02:00
Mike Hearn
a1fcca3883
WalletTool: allow creation of a wallet from a given [word] seed.
2014-05-29 20:11:14 +02:00
Mike Hearn
5638387d3a
HD wallets alpha preview
2014-05-29 20:11:13 +02:00
Mike Hearn
665aa2c36c
BuildCheckpoints: compare strings correctly.
2014-05-21 15:20:02 +02:00
Andreas Schildbach
cdfec498a4
Extract methods for creating and parsing payment requests, payment messages and payment acks, as well as Ack data class. Expose more payment request data from PaymentSession. Add unit tests for roundtripping all messages.
2014-05-05 11:26:25 +02:00