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
8ee5e48171
Update to protobuf-java 3.5.1.
...
In the test data for DeterministicKeyChainTest all occurences of the (often invisible) 0x7f
character is replaced by its numerical literal "\177". This change is needed because a bug of
previous versions was fixed, which caused this character not being printed as text.
2018-03-13 21:55:47 +01:00
Andreas Schildbach
dbc4c35209
SPVBlockStoreTest: Add tests for file locking.
2018-03-13 16:13:11 +01:00
Andreas Schildbach
c35d892fa6
Add Utils.isLinux() and Utils.isMac() helpers.
2018-03-13 13:05:59 +01:00
Andreas Schildbach
9e2b0c05c7
Use Utils.isWindows() helper consistently.
2018-03-13 13:05:52 +01:00
HashEngineering
e0d9683bd5
DeterministicKeyChain: Allow encrypting DeterministicKeyChain with arbitrary path
2018-03-12 08:50:16 +01:00
Andreas Schildbach
4bbb7be059
Migrate fully qualified names to using imports.
2018-03-11 21:36:25 +01:00
Andreas Schildbach
9e16d5fdeb
JavaDoc: Fix references.
2018-03-11 20:53:42 +01:00
Andreas Schildbach
fa5bdbb672
JavaDoc: Fix HTML structure.
2018-03-11 20:40:28 +01:00
Andreas Schildbach
bdfc1b3716
JavaDoc: Fix exception not thrown.
2018-03-11 20:31:59 +01:00
Andreas Schildbach
d945822e62
JavaDoc: Replace <code> with {@code}.
2018-03-11 20:29:51 +01:00
Andreas Schildbach
326e076373
JavaDoc: Fix dangling comments.
2018-03-11 20:18:36 +01:00
Andreas Schildbach
df1b954b7b
JavaDoc: Remove unnecessary {@inheritDoc}.
2018-03-11 20:15:56 +01:00
Andreas Schildbach
5b008f90e0
Migrate from Guava Charsets to Java7 StandardCharsets constants.
2018-03-09 17:05:09 +01:00
Andreas Schildbach
faf58ac9a2
Transaction: Add 'to addresses' to outputs in toString().
2018-03-09 01:39:55 +01:00
Andreas Schildbach
d623860250
PeerSocketHandler: Fix JavaDoc warnings.
2018-03-07 16:14:14 +01:00
Andreas Schildbach
2d06e866de
Move protobufs to src/main/proto.
2018-03-07 12:21:48 +01:00
Andreas Schildbach
8e395e2b31
Script.ScriptType: Remove the NO_TYPE value and use null instead.
2018-03-05 22:47:26 +01:00
Andreas Schildbach
d231bade1f
Script.ScriptType: Use stable id for persistence, rather than ordinal().
2018-03-05 22:04:00 +01:00
Andreas Schildbach
c337970ca8
Script.ScriptType: Rename PUB_KEY value to P2PK.
2018-03-05 21:52:21 +01:00
Andreas Schildbach
f5becfbfb0
Script.ScriptType: Document enum values.
2018-03-05 21:51:18 +01:00
Andreas Schildbach
fb54451c0b
Update to SpongyCastle 1.58.0.0.
2018-03-05 19:26:25 +01:00
Andreas Schildbach
b9a31104af
Consistently use standard acronyms: P2PKH, P2PK, P2SH
2018-03-05 16:18:18 +01:00
Alex Voloshko
4722b48628
VersionMessage: Parse NODE_WITNESS service flag.
2018-03-05 13:46:59 +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
6e46d75c61
TransactionBroadcast: Propagate context to EnoughAvailablePeers runnable.
2018-03-04 23:45:00 +01:00
Andreas Schildbach
c9cfd15f7f
Transaction: Fix a JavaDoc link.
2018-03-04 23:44:18 +01:00
Andreas Schildbach
752b06043c
Wallet: Remove several methods that were deprecated long ago.
...
This also removes WalletEventListener and its implementations.
2018-03-04 21:45:35 +01:00
Andreas Schildbach
4971d3fc25
LegacyAddress: Deprecate fromP2SHScript() static constructor.
2018-03-04 18:04:23 +01:00
Andreas Schildbach
c7acfee1a4
LegacyAddress: Rename fromP2SHHash() static constructor to fromScriptHash(), keeping the old method as deprecated.
2018-03-04 17:28:12 +01:00
Andreas Schildbach
bc8828c858
TransactionOutput: Deprecate getAddressFromP2PKHScript() and getAddressFromP2SH() methods.
2018-03-04 17:28:12 +01:00
Andreas Schildbach
3fb6b5fcb6
ScriptPattern: Refactor some matcher methods to use series of ifs.
2018-03-04 17:27:20 +01:00
Andreas Schildbach
061f5c9841
Determine native segwit destination addresses of a transaction by parsing the segwit scriptPubKey.
2018-03-04 16:06:04 +01:00
Andreas Schildbach
52afdc629e
Teach SendRequest and Wallet to send to native segwit addresses.
...
WalletTool and FakeTxBuilder can do it, too.
2018-03-04 15:30:37 +01:00
Andreas Schildbach
2c768bfe07
UTXOProvider: getOpenTransactionOutputs() to take a list of ECKeys rather than addresses.
2018-03-04 15:28:21 +01:00
HashEngineering
d92dfdfd14
Add ability to import an account key that allows for a wallet to spend from it.
...
Previous functionality only allowed watching.
Contributor: Nelson MELINA <nelson.melina@mycelium.com>
2018-03-03 12:57:58 +01:00
Andreas Schildbach
21d65feb28
AddressFormatException: Add InvalidPrefix exception that is thrown when the prefix (version header or HRP) is invalid.
...
WrongNetwork exception is now a subclass of this class.
2018-03-03 10:53:28 +01:00
Andreas Schildbach
b3a41dce89
SegwitAddressTest: Comment test vectors for invalid addresses.
2018-03-03 10:31:23 +01:00
Andreas Schildbach
d55a547740
AddressFormatException: Add InvalidDataLength exception that is thrown when the data part isn't of the right size.
2018-03-03 10:28:30 +01:00
Andreas Schildbach
bc1afbc6c3
Bech32: Encoding should not throw AddressFormatException.
2018-03-03 09:40:29 +01:00
Andreas Schildbach
64aa2ecac6
Bech32Test: Sync test vectors with current version of BIP173.
2018-03-02 16:08:36 +01:00
Andreas Schildbach
15a15ac024
AddressFormatException: Add InvalidCharacter exception that is thrown when a character is used that is invalid in the encoding.
2018-03-02 15:53:22 +01:00
Andreas Schildbach
0297ba4d58
AddressFormatException: Add InvalidChecksum exception that is thrown when a Base58 or Bech32 checksum is invalid.
2018-03-02 15:50:44 +01:00
Andreas Schildbach
0a7f346919
Move WrongNetworkException to AddressFormatException.WrongNetwork.
2018-03-02 13:00:56 +01:00
Andreas Schildbach
6a7a136d7c
LegacyAddress: Make sure the various by-hash constructors throw AddressFormatException if the hash length isn't 20 bytes.
2018-03-02 12:44:52 +01:00
Andreas Schildbach
82edec0978
DumpedPrivateKey: Don't dump private key into exception message, even if it's likely invalid anyway.
2018-03-01 18:42:20 +01:00
Andreas Schildbach
2e8a7474b2
BitcoinURI: Make aware of native segwit addresses.
2018-02-28 18:25:22 +01:00
Andreas Schildbach
d2caf699e1
LegacyAddress: Deprecate isP2SHAddress().
2018-02-28 17:07:39 +01:00
Andreas Schildbach
c0d8039c82
LegacyAddress: Deprecate getHash160().
2018-02-28 17:01:56 +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