Sean Gilligan
e5dc4f0c24
ForwardingService: remove unused imports
2022-07-09 23:39:32 +02:00
Sean Gilligan
cbe1833e04
ForwardingService: create singleton class, simplify main()
2022-07-09 22:24:15 +02:00
Sean Gilligan
d3599482c8
ForwardingService: extract getPrefix()
2022-07-09 22:21:18 +02:00
Sean Gilligan
a8e43b1b15
ForwardingService: use BitcoinNetwork where possible
2022-07-09 20:51:50 +02:00
Sean Gilligan
89fb6fe0a8
ForwardingService: extract requiredConfirmations to a variable
2022-07-09 12:18:22 +02:00
Sean Gilligan
44d0576ce4
org.bitcoinj.base: move Base58, Bech32, AddressFormatException to base
2022-06-23 11:48:01 +02:00
Sean Gilligan
0645a835de
org.bitcoinj.base: move Script.ScriptType to a top level type in base
2022-06-22 18:13:34 +02:00
Sean Gilligan
93cc0ac9c5
org.bitcoinj.base: move Sha256Hash and byte/math Utils members to base
...
* move o.b.core.Sha256Hash to o.b.base.Sha256Hash
* move byte and math utility methods from o.b.core.Utils to a new
o.b.base.ByteUtils class
2022-06-22 17:40:50 +02:00
Sean Gilligan
84e737acdf
org.bitcoinj.base: introduce new package that provides fundamental types with minimal dependencies
...
This also moves Coin, Fiat, its parent Monetary and the related MonetaryFormat into the new base package.
See the provided package-info.java for details.
2022-06-21 19:25:47 +02:00
Andreas Schildbach
837b614906
ForwardingService, PrivateKeys: also parse segwit addresses from arguments
2022-05-01 00:12:22 +02:00
Andreas Schildbach
eb71e0b0c6
DoubleSpend, SendRequest: migrate hardcoded addresses to segwit
2022-05-01 00:10:28 +02:00
Sean Gilligan
c3896e6caf
examples/tools: use explicit script type and wallet structure
...
* Explicitly use P2WPKH (this changes behavior to segwit)
* Explicitly use BIP32 (this is the same behavior as before)
2022-04-30 23:24:25 +02:00
Sean Gilligan
1219e0d7b0
InternalUtils: replace Guava Joiner and Splitter with native JDK equivalent
...
Also deprecate the old Joiner and Splitter related members of Utils.
2022-04-10 16:20:00 +02:00
Sean Gilligan
003b6dc52d
SendRequest: migrate from ListenableFuture to CompletableFuture
2022-03-07 22:33:27 +01:00
Sean Gilligan
b8c72c996a
FetchTransactions, PrintPeers: more CompletableFuture conversions
2022-03-07 14:39:50 +01:00
Sean Gilligan
eb56d71f8f
TransactionConfidence: Convert to CompletableFuture
2022-03-04 13:04:41 -08:00
Andreas Schildbach
52babf52b0
LevelDBBlockStore, LevelDBFullPrunedBlockStore: remove LevelDB-based block stores
2022-03-04 18:27:40 +01:00
Sean Gilligan
9db8b49c50
Convert TransactionBroadcast, Wallet.doMaintenance() to CompletableFuture
...
* Use ListenableCompletableFuture on all public APIs
* Use CompletableFuture internally, in example, and in tests
* Add new FutureUtils class
* Add 2 new static methods to ListenableCompletableFuture
2022-02-24 20:48:54 +01:00
Andreas Schildbach
d3d5edbcbd
NetworkEnum: delete unused class from examples
2021-12-25 11:26:47 +01:00
Andreas Schildbach
0b5d40e49f
Remove references to a specific testnet faucet.
2021-10-22 09:08:21 +02:00
Andreas Schildbach
e407240b7e
Support BIP133 feefilter
messages.
2021-05-03 16:23:51 +02:00
Andreas Schildbach
1db44fb4f1
PeerMonitor: Show an additional column with the results of an getaddr request.
2021-04-22 16:50:07 +02:00
Andreas Schildbach
04a71b09af
PeerMonitor: Increase initial size of window.
2021-04-22 16:02:19 +02:00
Andreas Schildbach
39bb7faafb
PeerMonitor: Simplify a switch-case.
2021-04-22 15:59:09 +02:00
Andreas Schildbach
ffb02ae760
Script: Deprecate non-segwit variant of correctlySpends().
2021-03-07 09:43:55 +01:00
Andreas Schildbach
8906e7cc27
Transaction: Add toHexString() for converting a transaction to raw hex format.
2021-02-16 11:26:09 +01:00
Andreas Schildbach
4c094ef193
WalletTool, BuildCheckpoints, FetchBlock: Migrate parsing of command line options from JOpt to picocli.
2021-02-11 16:15:16 +01:00
Andreas Schildbach
f0bbb92bcf
ForwardingService: Get rid of unused forwardCoins() method argument.
2020-10-24 16:45:04 +02:00
Andreas Schildbach
b6b221ae1b
Apply "Anonymous type has shorter lambda alternative" refactoring.
2020-09-07 21:13:14 +02:00
Andreas Schildbach
c08a4d97d3
Apply "Anonymous type can be replaced with lambda" refactoring.
2020-09-07 21:13:14 +02:00
Andreas Schildbach
4847a9df27
Apply "Explicit generic type can be replaced with <>" refactoring.
2020-09-07 21:10:44 +02:00
Andreas Schildbach
7d9f109ee1
Peer: Deprecate a redundant constructor.
2020-03-04 17:34:11 +01:00
Andreas Schildbach
06bd0a841e
PeerDiscovery: Change getPeers() return type from array to list.
...
This gets rid of a lot of array/list conversions.
2020-03-04 12:35:02 +01:00
Andreas Schildbach
5fb2b44d47
PrivateKeys: Send coins before stopping the PeerGroup.
2019-08-09 11:29:14 +02:00
Andreas Schildbach
d67f060e27
Remove Micropayment Channels.
...
Now that HTLC-based bi-directional payment channels are state of the art, nobody will ever use the old style.
2019-07-15 11:05:14 +02:00
Sean Gilligan
806afa0441
Replace Guava newArrayList()/newLinkedList() with direct call to the JDK 7 constructor.
...
This is recommended by deprecation comment in Guava.
2019-06-01 13:58:11 +02:00
Sean Gilligan
783dd45c4b
Wallet: Remove (or reduce visibility of) the deprecated constructors.
...
Replace usages in unit tests and examples with usage of the static createDeterministic() constructor.
2019-04-08 11:23:41 +02:00
Andreas Schildbach
08bb331cc3
Update jopt-simple to 5.0.4.
2019-02-15 04:03:39 +01:00
Andreas Schildbach
f24a4aa19a
Update Guava to 27.0.1-android.
2019-02-15 03:34:11 +01:00
Andreas Schildbach
bfe2a195b6
Receive to and send from native segwit addresses
...
- Hierarchical-deterministic derivation of native segwit addresses.
- Receive payments to native segwit addresses.
- Spend and sign payments from native segwit addresses.
- Watch-only wallets with native segwit addresses (zpub/vpub).
- WalletAppKit, Wallet-tool and Wallet-template are taught to deal with segwit-enabled wallets.
Be aware this adds a new field in the wallet protobuf: output_script_type in Key, which keeps track
of the script type of DeterministicKeyChains. Protobufs will be migrated; old DeterministicKeyChains
are assumed to be of type P2PKH.
Includes some code by Fabrice Drouin.
2019-02-11 16:48:37 +01:00
Andreas Schildbach
53a63c43bb
Transaction: Add getTxId() and getWTxId(); deprecate getHash() and getHashAsString().
2019-02-06 02:15:11 +01:00
Andreas Schildbach
a5fd9c6848
KeyBag: Rename method findKeyFromPubHash() to findKeyFromPubKeyHash().
2019-02-01 18:02:20 +01:00
Andreas Schildbach
53908d8939
KeyBag, TransactionBag: Rename parameters pubkey to pubKey, pubkeyHash to pubKeyHash.
2019-02-01 18:01:45 +01:00
Andreas Schildbach
0875d4a5b3
ECKey: If DER-encoded signatures cannot be parsed, throw SignatureDecodeException rather than RuntimeException.
2019-01-03 11:55:32 +01:00
Andreas Schildbach
7e9c45ad55
ForwardingService: Fix hardcoded fee by simply emptying the entire wallet to the forwarding address. This will make sure the library is calculating the correct fee.
2018-03-13 23:03:48 +01:00
Andreas Schildbach
7f5b6753f5
Use Address whereever possible in the API, rather than LegacyAddress.
...
This is a preparation for the remaining segwit changes. LegacyAddress
variables in unit tests are also changed.
2018-03-05 10:35:09 +01:00
Andreas Schildbach
e11119b64f
Rename VersionedChecksummedBytes→PrefixedChecksummedBytes, Address→LegacyAddress and AbstractAddress→Address.
...
This also renames corresponding test classes and mentions in comments.
2018-02-28 16:57:16 +01:00
Andreas Schildbach
dedeb01dac
Move ECKey.toAddress() to Address.fromKey().
...
This is a preparation for supporting native segwit addresses. Keys can't know what
type of address is wanted. In future, there will also be a SegwitAddress.fromKey().
2018-02-26 02:13:18 +01:00
harryge00
911f6d49c0
SendRequest example: Fix the print info.
2018-02-10 17:43:25 +01:00
Andreas Schildbach
c927f0238b
Rename variable peers to peerGroup, as the name can be misleading.
2017-12-21 12:47:13 +01:00