3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 18:25:51 +00:00

3065 Commits

Author SHA1 Message Date
Andreas Schildbach
11d7f15322 BlockImporter: Set bitcoinj context. 2018-04-06 19:20:13 +02:00
Andreas Schildbach
93b9229397 BlockFileLoader: Add a second constructor that allows to specify a custom directory. 2018-04-06 19:20:05 +02:00
Andreas Schildbach
1700ec0be4 SPVBlockStore: Remove mmap hack for Windows.
It breaks on Java9 because it is using unofficial sun.* API.
2018-04-01 23:57:43 +02:00
Andreas Schildbach
03f404506c MonetaryFormat: Implement equals() and hashCode(). 2018-04-01 19:50:32 +02:00
Andreas Schildbach
8663236de0 SPVBlockStore: Ability to grow the block store. 2018-03-31 12:39:59 +02:00
Andreas Schildbach
37525e6eb7 WalletFiles: Getter for wallet that is managed. 2018-03-30 22:58:09 +02:00
Andreas Schildbach
c9a36647a9 WalletFiles: Don't save any more if executor is shut down. 2018-03-30 20:49:03 +02:00
Andreas Schildbach
e244453073 DeterministicKeyChain: Remove type argument from JavaDoc. 2018-03-24 22:58:42 +01:00
Daniel James
0be938b4a7 Block: Avoid NPE in hasTransactions()
Field is nullable;

```java
@Nullable List<Transaction> transactions;
```
2018-03-24 22:32:00 +01:00
Andreas Schildbach
52d000b6f9 README.md: Remove mention of ForwardingService, it's outdated. 2018-03-22 19:45:07 +01:00
Oscar Guindzberg
afa14d6968 Transaction: Limit initial size of inputs and outputs ArrayList. 2018-03-21 16:19:10 +01:00
Andreas Schildbach
b976205716 ScriptPattern: Add pattern matcher for segwit commitment (in an output of the coinbase transaction).
Adds a test for parsing block 481815, which contains a segwit commitment in its coinbase.
2018-03-21 15:04:03 +01:00
denis
d30d83c616 FiatTest: Increase test coverage for Fiat class. 2018-03-18 19:11:57 +01:00
HashEngineering
6aba962d62 DeterministicKeyChain: Allow decrypting DeterministicKeyChain with arbitrary path 2018-03-14 22:01:53 -07:00
Andreas Schildbach
afe1b69f31 Use InetAddress.getLoopbackAddress() rather than hardcoding '127.0.0.1'. 2018-03-14 12:16:26 +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
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