3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 10:45:51 +00:00

2542 Commits

Author SHA1 Message Date
Kalpesh Parmar
7a02d2e598 Database (stores MySQL/Postgres/H2) column names/objects lower case consistency fix. 2015-08-08 11:59:07 +02:00
Andreas Schildbach
98b54d78c1 If wallet is watching, mention this in the dump. 2015-08-08 11:23:41 +02:00
Andreas Schildbach
7f8a5ed182 Print human readable time when initializing a new block store with a checkpoint. 2015-08-08 10:51:01 +02:00
Andreas Schildbach
e978ff4997 Add help text to BuildCheckpoints. 2015-08-07 17:20:22 +02:00
Andreas Schildbach
0e7819d1bf Add build-checkpoints shell wrappers. 2015-08-07 17:01:11 +02:00
Andreas Schildbach
16465d9310 Fix licenses for tools and examples. 2015-08-07 16:45:18 +02:00
Devrandom
044c98e096 Support testnet and regtest in BuildCheckpoints tool. 2015-08-07 13:18:53 +02:00
Mike Hearn
5f3d3a7f84 Wallet: optimization for cases where (e.g. due to spam attacks) there are tons of relevant transactions in a block. 2015-08-05 12:42:49 +02:00
Mike Hearn
09f13f7956 Tighten the exception SPVBlockStore throws when the chain file is locked. 2015-07-30 17:31:25 +02:00
Devrandom
041b51f8e6 allow unmarried chains to have P2SH addresses 2015-07-29 12:38:22 +02:00
Andreas Schildbach
fa7af642ee BitcoinSerializerTest: Make more readable. 2015-07-28 22:15:47 +02:00
Andreas Schildbach
7744a00629 Remove lazy parsing of messages.
In particular:

* Message.parse(): is now always called once, in the Message constructor
* Message.parsed: removed
* Message.parseLite(): folded into Message.parse()
* Message.maybeParse(): removed
* Message.ensureParsed(): removed
* Message.isParsed(): removed
* Block.parseHeader(): folded into Block.parse()
* Block.parseTransactions(): folded into Block.parse()
* Block.maybeParseHeader(): removed
* Block.maybeParseTransactions(): removed
* Block.ensureParsedHeader(): removed
* Block.ensureParsedTransactions(): removed
* Block.isParsedHeader(): removed
* Block.isParsedTransasctions(): removed
* MessageSerializer.isParseLazyMode(): removed
* BitcoinSerializer.parseLazy: removed
* BitcoinSerializer.getSerializer(): parseLazy parameter removed
* LazyParseException: removed
* LazyParseByteCacheTest: renamed to ParseByteCacheTest
2015-07-28 22:14:59 +02:00
Mike Hearn
d753d28ba5 Wallet: take key chain lock not only wallet lock in getWatchedOutputs().
Flagged by the IntelliJ Inspector static analysis engine.
2015-07-28 20:59:03 +02:00
Andreas Schildbach
b7c24c6196 Wallet: Fix not removing unspent transaction outputs when clearing transactions.
Adds very basic unit test for resetting wallets.
2015-07-28 20:50:20 +02:00
Andreas Schildbach
bee75f8d36 TestNet3Params: Fix missing assignments for majorityEnforceBlockUpgrade, majorityRejectBlockOutdated and majorityWindow. 2015-07-28 19:07:01 +02:00
Ross Nicoll
6f03669fbd Enforce block version supermajority for BIP 66 onwards. 2015-07-28 12:55:54 +02:00
Mike Hearn
5a9bd2d797 Better README formatting 2015-07-28 12:43:30 +02:00
Mike Hearn
4543be4102 Add IRC button to README
Idea from @bumi
2015-07-28 12:42:30 +02:00
Ross Nicoll
12602650ce Modify data object serialization/deserialization to provide extension hooks
Make headerParsed, transactionParsed, headerBytesValid and transactionBytesValid protected so subclasses in the same package can access them.

Add constructor for use when a block is contained within another object (i.e. AuxPoW header)

Make headerParsed, transactionParsed, headerBytesValid and transactionBytesValid protected so subclasses in the same package can access them.

Add constructor for use when a block is contained within another object (i.e. AuxPoW header)

Add parseTransactions() method which takes in a payload offset, so block parsers can indicate that transactions do not start at byte 80.

Extract common interface from BitcoinSerializer to support alternative serializers, as well as dummy serializer for message classes which do not have their network parameters.

Thread BitcoinSerializer through messages in place of existing parseLazy and parseRetain properties.

Insert dummy serializer into message subclasses when deserialized by Java.

Replace calls to construct Block/Transaction classes from payloads, with calls to MessageSerializer, so alternative formats can be supported elegantly.

Make headerParsed, transactionParsed, headerBytesValid and transactionBytesValid protected so subclasses in the same package can access them.

Add constructor for use when a block is contained within another object (i.e. AuxPoW header)

Add parseTransactions() method which takes in a payload offset, so block
parsers can indicate that transactions do not start at byte 80.
2015-07-28 12:20:32 +02:00
Ross Nicoll
16a5e1d64b Javadoc format corrections 2015-07-28 12:09:32 +02:00
Chris
0f0c7baec9 Update javascript Tor example to reflect simplified handling of .onion addresses 2015-07-24 23:03:21 +02:00
Chris
8a2e742598 Connect bitcoinj to hidden services
This commit adds a few small modifications to PeerAddress to make it easier for
bitcoinj to connect to Tor hidden services when using the Orchid TorClient.
2015-07-24 23:03:15 +02:00
Jameson Lopp
d0416b7f0f Prevent null pointer exception if DNS seeds parameter is null. 2015-07-24 22:58:30 +02:00
Mike Hearn
30d2da2947 Remove BlockChainListener.isTransactionRelevant.
The optimisation this was meant to support ceased to be relevant a long time ago.
2015-07-23 17:28:03 +02:00
Devrandom
43b89f4678 strict mode for Context 2015-07-23 17:04:57 +02:00
Andreas Schildbach
c169325db7 Remove unused Message.checksum. 2015-07-23 16:38:40 +02:00
Andreas Schildbach
783dfc58d1 Remove Java serialization from...
* NetworkParameters,
* the entire Message hierarchy,
* Block,
* StoredBlock,
* StoredUndoableBlock,
* TransactionConfidence,
* UTXO,
* DeterministicHierarchy,
* MemoryFullPrunedBlockStore,
* KeyCrypterScrypt and
* Wallet

It was largely untested, in many cases not working any more and we don't see a reason for supporting it.
2015-07-23 16:27:25 +02:00
Andreas Schildbach
5c2eaf2654 Make Travis not run any tests that involve accessing the network. 2015-07-23 14:26:04 +02:00
Mike Hearn
551d01a625 BlockingClient: make it easier to manually start a read/write loop. 2015-07-22 22:27:19 +02:00
Andreas Schildbach
12f3d2dbca Remove Java serialization from the ECKey hierarchy. It was broken for some time anyway (LazyECPoint). 2015-07-22 14:21:34 +02:00
Andreas Schildbach
230421484c ExchangeRate: Implement equals/hashCode and add a test for Java serialization. 2015-07-22 11:58:06 +02:00
Devrandom
4411eb8702 Don't derive private keys just to check if they exist 2015-07-21 09:38:17 +02:00
Kalpesh Parmar
a293b09ef5 MySQL data type fixed. Changed binary to varbinary. 2015-07-20 12:30:35 +01:00
Andreas Schildbach
0441b38599 Provide a consistent fromBase58/toBase58 API for the VersionChecksummedBytes hierarchy.
Deprecates the old constructors and migrates bitcoinj itself to use the new API. Also makes DumpedPrivateKey use WrongNetworkException when appropriate. Adds missing testcases and corrects/adds a bit of JavaDoc.
2015-07-18 13:53:59 +02:00
Andreas Schildbach
4112ed8005 Fix last remaining occurences of 'BitCoin' and 'BitCoinJ'. 2015-07-17 00:55:18 +02:00
Andreas Schildbach
af1931db6e BIP38PrivateKey: Fix Java serialization. 2015-07-16 23:02:42 +02:00
Andreas Schildbach
b1402afe9a Address: Fix Java serialization and add serialization test case. 2015-07-16 14:26:48 +02:00
Andreas Schildbach
8db92ede3b Don't auto-release artifacts after uploading to Nexus. 2015-07-15 09:12:21 +02:00
Andreas Schildbach
892b8f88da Update AUTHORS from git. It has become too tedious to track this manually. 2015-07-14 16:29:57 +02:00
Mike Hearn
a52c8669a4 WalletFiles: use a ContextPropagatingThreadFactory instead of propagating the context explicitly.
Fixes bug found by devrandom
2015-07-14 13:15:45 +02:00
Mike Hearn
1352264e86 ContextPropagatingThreadFactory: more features 2015-07-14 13:15:45 +02:00
Mike Hearn
488b934b96 Context: don't throw if the TLS slot is already set. 2015-07-14 13:15:45 +02:00
Andreas Schildbach
13531d98a8 Tell Travis we don't need sudo so we can run on a more modern build infrastructure. 2015-07-14 11:32:57 +02:00
Andreas Schildbach
df5c4091c7 Wallet protobuf serialization for RAISE_FEE transaction purpose. 2015-07-14 10:51:38 +02:00
Andreas Schildbach
c7b2dc3ff0 Add RAISE_FEE to transaction purposes. 2015-07-13 20:09:48 +02:00
Andreas Schildbach
2483d10ad3 TestFeeLevel: Make number of ouputs configurable by tweaking a constant. 2015-07-11 20:23:58 +02:00
Andreas Schildbach
9f55692c04 Update checkpoints. 2015-07-10 11:51:52 +02:00
Mike Hearn
da20b02906 Implement special priority tx size calculation. 2015-07-09 15:07:09 +02:00
Andreas Schildbach
621975556c TestFeeLevel: Create transactions with two outputs (and thus most of the time two inputs). This is more close to standard wallet transactions. 2015-07-09 11:27:41 +02:00
Mike Hearn
49ac4ac2ad CheckpointManager: expose a static method to get the checkpoint stream 2015-07-09 00:36:41 +02:00