Commit Graph

351 Commits

Author SHA1 Message Date
langerhans
5ad1659660 Fix arrayMatch.
It would incorrectly return true if just part of the subArray was at the end of the script.
2015-10-18 19:14:32 +02:00
Ross Nicoll
c36d605404 Merge pull request #6 from langerhans/sha256
Use Sha256Hash for checkpoints
2015-10-16 22:46:18 +01:00
Ross Nicoll
355ea2d50e Modified Dogecoin difficulty calculations to use next expected target to determine precision. 2015-10-16 22:44:47 +01:00
langerhans
5e6e821d1a Use Sha256Hash for checkpoints
They are compared with downloaded hashes and the two classes are not equal in terms of the equals method.
2015-10-16 23:10:29 +02:00
Ross Nicoll
95db3b960e Remove old experiments 2015-10-16 21:17:17 +01:00
Ross Nicoll
4951fb7241 Add unit tests for the retarget at block 720. 2015-10-16 21:04:38 +01:00
Ross Nicoll
4cf2dec918 Add majority window figures for BIP 44/BIP 66 enablement. 2015-10-16 20:31:22 +01:00
Ross Nicoll
5d36a644ea Add unit tests to verify how current and previous block time and difficulty are extracted from blocks 2015-10-16 19:49:49 +01:00
Ross Nicoll
a2499cb31a Correct difficulty target passsed to getNewDifficultyTarget - was received rather than previous value 2015-10-16 19:31:30 +01:00
Ross Nicoll
805b78f060 Added check of parsed difficulty bits.
Corrected difficult retarget interval.
2015-10-16 19:18:15 +01:00
Ross Nicoll
0fe4ac43ba Skip parsing AuxPoW block header where the header is too short (i.e. checkpoint blocks) 2015-10-16 18:59:54 +01:00
Ross Nicoll
8a96492c80 Modify parsing of nonce value from AuxPoW coinbase transaction script to
use long values rather than int, to support Java correctly.
Add unit tests for parsing of nonce values and calculating expected slot
index for AuxPoW headers.
2015-09-29 01:26:59 +01:00
Ross Nicoll
1a5184ab4b Correct cast of network parameters to AuxPoW parameters
Also adds unit test coverage
2015-08-26 21:29:43 +01:00
Ross Nicoll
a2ba8da774 Modify version handling to match Dogecoin 1.10 style API
Calling getVersion() on an AuxPoW block now returns the lowest 8 bits
only, and a new getRawVersion() method is introduced to support fetching
full version.
Added unit tests to check unpacking of AuxPoW version numbers.
2015-08-23 13:10:09 +01:00
Ross Nicoll
562ea4f56c Complete rename to libdohj 2015-08-09 15:19:31 +01:00
Ross Nicoll
39fe02389b Add Dogecoin payment protocol support
Add Dogecoin payment protocol support, and remove unused proto definition
files.
2015-08-08 23:16:18 +01:00
Ross Nicoll
049fa77002 Add Dogecoin payment protocol support
Add Dogecoin payment protocol support, and remove unused proto definition
files.
2015-08-08 23:15:16 +01:00
Patrick Lodder
fd0ccb902d add the right dns seeds for mainnet 2015-08-06 14:49:06 +02:00
Ross Nicoll
0f9910c6d8 Updated bitcoinj API calls to bitcoinj 0.14 2015-08-01 11:36:58 +01:00
Ross Nicoll
38e9c4ae1d Update bitcoinj library to 0.14 2015-07-11 20:40:25 +01:00
Ross Nicoll
403696f5e3 Update BIP32 wallet headers 2015-07-11 20:05:35 +01:00
Ross Nicoll
258792c803 Add unit tests for AuxPoW header validation. 2015-06-05 21:40:48 +01:00
Ross Nicoll
36753e5112 Moved classes to altcoinj.core package where they do not specifically require to be part of the bitcoinj package. 2015-06-01 22:58:08 +01:00
Ross Nicoll
573d6f6edf Add AuxPoW chain ID checks. 2015-06-01 22:54:54 +01:00
Ross Nicoll
c6659bad12 Completed AuxPoW header validation code. 2015-05-31 22:54:46 +01:00
Ross Nicoll
453819ccb2 Cleaned up unneeded files after rebase. 2015-05-30 21:22:59 +01:00
Ross Nicoll
5c973f6149 Remove existing build pom.xml
Added genesis block construction for Dogecoin network.
Added difficulty calculations for Dogecoin network.
Completed difficulty calculation code for Dogecoin.
Added code for parsing Dogecoin blocks, and unit tests for same.
2015-05-30 21:22:58 +01:00
Mike Hearn
216deb2d35 Re-organize the source tree so people can depend on bitcoinj without pulling in the examples, tools, or dependencies thereof. 2012-03-11 20:01:12 +01:00
Mike Hearn
a86ca77a58 Move to 0.5-SNAPSHOT 2012-03-09 15:34:34 +01:00
Mike Hearn
74b2f6c172 Update version number to 0.4 from 0.4-SNAPSHOT. Remove the TODO file. Sync contributors list in the POM with the AUTHORS file. 2012-03-09 15:33:04 +01:00
Mike Hearn
2e319dec90 Fire onCoinsSent/Received from commitTx() so it is called when using sendCoins[Async]. Resolves issue 154. 2012-03-07 14:45:12 +01:00
Miron Cuperman
bb97da6a5a Fix race condition on PeerGroup shutdown.
peers can be null in handlePeerDeath if we are shutting down.
Remove redundant numPeers() - use numConnectedPeers().
Rename getPeers() to getConnectedPeers()

Resolves issue 147.
2012-03-06 12:49:45 -08:00
Miron Cuperman
789798bae0 Serialize key creation time.
Resolves issue 151.
2012-03-03 14:00:05 -08:00
Mike Hearn
0d195e17c8 Lower the priority of the PeerGroup thread and daemonize it. 2012-03-02 15:32:58 +01:00
Mike Hearn
0b20b47c0c Clear another FindBugs warning in PeerGroup. 2012-03-02 15:24:20 +01:00
Mike Hearn
32a2be53c4 Make adding/removing event listeners lock PeerGroup. Take out use of synchronizedList as it's redundant. Resolves issue 148. 2012-03-02 15:15:36 +01:00
Mike Hearn
31463c506f Use EventListenerInvoker in PeerGroup, and clear a FindBugs warning about an unlocked access to the running property. 2012-03-02 15:08:55 +01:00
Mike Hearn
b25446271a Synchronize on event listeners in EventListenerInvoker. 2012-03-02 15:08:36 +01:00
Mike Hearn
001afa9ae2 Print TX values in Wallet.toString() 2012-03-01 18:56:12 +01:00
Mike Hearn
0a473a8d76 Remove an unnecessary save point in ToyWallet. 2012-03-01 18:56:02 +01:00
Mike Hearn
40bd728703 Add a Transaction.getValue(Wallet) method. 2012-03-01 18:55:46 +01:00
Mike Hearn
ddb6da155b Merge branch 'master' of https://code.google.com/p/bitcoinj 2012-03-01 18:07:30 +01:00
Miron Cuperman
feb85a13d3 Remove private key from ECKey.toString and put it in toStringWithPrivate 2012-02-29 14:50:57 -08:00
Mike Hearn
1df679cd17 Change how wallet callbacks are run in the case of a tx that both sends and receives coins from the wallet (common case). 2012-02-24 15:25:38 +01:00
Mike Hearn
c8e76a8f9b Log slow reads in BOBS. 2012-02-24 15:25:06 +01:00
Jim Burton
812ca60b9b BIP21 bitcoin URI implementation.
Resolves issue 143.
2012-02-23 11:29:48 -08:00
Mike Hearn
54a2a71460 Replace WalletEventListener.onDeadTransaction with a generic confidence changed callback, this simplifies the case of listening for all confidence changes in all wallet transactions and gives a single place to save the wallet from. 2012-02-19 15:01:30 +01:00
Mike Hearn
68424281c5 Print out alert messages to the log. 2012-02-19 12:22:43 +01:00
Mike Hearn
0e198e68e8 Add top 50 blocks to the block locator. Should make chain split handling more robust. 2012-02-13 23:39:23 +01:00
Mike Hearn
e8548a197c Make Message inner exception class static, for efficiency. Clears a FindBugs warning. 2012-02-13 23:03:15 +01:00