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

2332 Commits

Author SHA1 Message Date
Andreas Schildbach
98fa48ae2c Fix typo in build.md. 2015-10-18 21:04:53 +02:00
Ross Nicoll
18c6df1244 Merge pull request #8 from langerhans/array-match
Fix arrayMatch.
2015-10-18 18:17:04 +01:00
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
98ae05b0a1 Update README.md to match libdohj not dogecoinj 2015-08-23 12:31:46 +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
Ross Nicoll
922243e503 Merge pull request #3 from patricklodder/dogecoin_dnsseeds
add the right dns seeds for mainnet
2015-08-06 13:57:27 +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
Ross Nicoll
245505e984 Started connecting altcoinj to bitcoinj.
Merged in files from bitcoinj which were rejected for altcoin support.
2015-05-30 21:22:57 +01:00
Ross Nicoll
c129d3fc89 Added dependency on bitcoinj and removed code elements which should taken directly from bitcoinj.
Removed classes with no differences to bitcoinj.
Fixed packages.
2015-05-30 21:22:37 +01:00
waglik
09c80d44ff fix package 2015-04-03 19:21:33 +03:00
langerhans
be353f8556 Merge remote-tracking branch 'upstream/master'
Conflicts:
	core/src/main/java/com/dogecoin/dogecoinj/core/PeerGroup.java
	core/src/main/java/com/dogecoin/dogecoinj/core/TransactionBroadcast.java
	core/src/main/java/com/dogecoin/dogecoinj/core/Wallet.java
	core/src/main/java/com/dogecoin/dogecoinj/kits/WalletAppKit.java
	core/src/main/java/com/dogecoin/dogecoinj/net/discovery/DnsDiscovery.java
	core/src/main/java/com/dogecoin/dogecoinj/store/SPVBlockStore.java
	core/src/main/java/org/bitcoinj/net/discovery/HttpDiscovery.java
	wallettemplate/src/main/java/wallettemplate/Main.java
2015-02-12 23:15:09 +01:00
Carlos Lopez-Camey
212aa41143 Updates PeerGroup's javadoc: PeerGroup is not a guava service as from 27bc229 2015-02-07 17:04:22 -06:00
Andreas Schildbach
815c4b9ced Add current-receive-addr action to wallet-tool. 2015-02-03 00:18:45 +01:00
Sean Gilligan
c72c48cd58 Add Comparable to VersionedChecksummedBytes
* Add Comparable interface to VersionedChecksummedBytes
* Add compareTo() method to VersionedChecksummedBytes
* Add test for VersionedChecksummedBytes
* Add tests for Address
2015-02-03 00:15:25 +01:00
Mike Hearn
0d51cee24f PeerGroup: ignore another source of RejectedExecutionException during shutdown 2015-02-02 17:29:50 +01:00
Mike Hearn
653773d67a PeerGroup: don't try and trigger connections during shutdown 2015-01-29 19:24:14 +01:00
Mike Hearn
bc60f0d1f2 TransactionBroadcast: only consider a tx rejected if it has more than half peers signalling a reject. 2015-01-29 19:24:02 +01:00
Mike Hearn
c981555be4 RejectMessage: add a c'tor for initialising a new message and fix a bug in serialisation. 2015-01-29 19:19:28 +01:00
Oscar Guindzberg
f3fa050c09 DeterministicKeyChain Builder - add seedCreationTimeSecs() 2015-01-28 17:21:18 -03:00
Mike Hearn
f1f07df11b ECKey: extend the comment about why private keys of zero and one are now forbidden 2015-01-28 19:37:13 +01:00
Mike Hearn
fd10654143 Fix wallet tests that were using 1 as a private key. 2015-01-28 18:34:27 +01:00
Mike Hearn
fe2aff49ae DnsDiscovery: attempt workaround for apparent lack of working thread safety on some Linux platform C libraries. 2015-01-28 16:21:40 +01:00
Mike Hearn
ad4fb5103c NioClientManager: use a daemon thread so GUI apps can quit fast if they want to without a slow/hung network thread keeping things hanging around. This may break compatibility with apps that expect to be able to start bitcoinj and then exit the main thread: if it causes too many problems this change may be reverted. 2015-01-28 16:20:51 +01:00
Mike Hearn
f4cce4c3c0 ECKey: add a sanity check for private keys that are zero or one. This should never happen but there have been reports from the wild that somehow once or twice someone managed to get a private key of zero into their wallet. 2015-01-28 16:13:24 +01:00
Mike Hearn
f9338519be Add 20 second timeout to HttpDiscovery 2015-01-27 21:52:19 +01:00
Mike Hearn
9b5307ad45 WalletAppKit: remove accidental Java 7-ism that was introduced a few commits ago. 2015-01-27 19:03:48 +01:00