jjos2372
9afa0dd01f
gradle build
2020-02-26 09:11:12 -03:00
jjos2372
657ebf57de
Adding gradle build
2020-02-26 09:04:49 -03:00
jjos2372
9159a629a2
Removed namecoin stuff
2020-02-26 09:04:01 -03:00
langerhans
889ff26ebf
Update fasterxml dependency
2019-05-04 16:40:20 +02:00
JeremyRand
31fb8985ba
Namecoin LevelDBTransactionCache: Only store name scriptPubKey in the record, not entire transaction. ( #32 )
...
This breaks backward compatibility with older name databases. You'll need to delete the blockchain and resync.
2018-03-18 08:59:42 +00:00
Max K
6ce57fdb04
Remove non-working seed ( #30 )
2017-12-29 22:09:00 +01:00
JeremyRand
9d20db9a84
Namecoin: add LevelDBTransactionCache algorithm. ( #27 )
...
Added Namecoin latest-name lookup algorithm using a local LevelDB transaction cache.
2017-11-06 10:36:12 +00:00
MikeR
70ce836956
Add Regtest mode for Litecoin ( #20 )
2017-06-19 09:58:47 +01:00
Ross Nicoll
1419b81241
Merge pull request #19 from JeremyRand/namecoin-fix-hash-verification
...
Fix verification bug in Namecoin.
2017-03-22 10:13:59 +00:00
JeremyRand
0237a504c4
Fix verification bug in Namecoin.
...
P2P full-block by-hash retrieval wasn't verifying that the received block had a header whose hash matched the requested hash.
This probably made it trivially easy to falsify name records, since any internally valid block supplied by a malicious P2P peer (or a MITM attacker) would be accepted, and the name transactions in it trusted as valid, even if the block had (for example) minimum difficulty.
The REST Merkle API is unaffected.
There's a reason I haven't deployed libdohj-namecoin to end users yet; this is that reason. Review takes time.
2016-07-21 19:59:20 +00:00
Ross Nicoll
faadcca7ad
Merge pull request #18 from JeremyRand/namecoin-initial-pull-request
...
Initial Namecoin support
2016-07-05 20:15:00 +01:00
JeremyRand
ca28f2a0ba
Add classes for name lookups with SPV verification.
2016-07-04 04:04:39 +00:00
JeremyRand
80faef7303
Added tests for name transaction utils.
2016-07-04 04:04:39 +00:00
JeremyRand
7f873b69a6
Added util class for processing name transactions.
2016-07-04 04:04:39 +00:00
JeremyRand
a9fa671988
Added tests for parsing name scripts.
2016-07-04 04:04:39 +00:00
JeremyRand
f8186d9aee
Added (incomplete) support for parsing name scripts.
2016-07-04 04:04:39 +00:00
JeremyRand
0cb659ca21
Added network parameters for Namecoin (abstract and mainnet).
2016-07-04 04:04:39 +00:00
Ross Nicoll
bacc348541
Restructure libdohj around Maven modules
2016-06-27 21:06:44 +01:00
Ross Nicoll
6f92dc64bd
Update to bitcoin 0.14.2
2016-06-05 11:31:20 +01:00
Ross Nicoll
89cf3c6b17
Handle legacy AuxPoW blocks
...
Adds handling of legacy AuxPoW blocks before there was a merged mining
header.
2016-02-28 11:48:40 +00:00
Ross Nicoll
9afda0e8e9
Add build status image
2016-01-08 20:37:00 +00:00
Ross Nicoll
75fa1f4677
Add Travis configuration
2016-01-08 20:31:16 +00:00
Ross Nicoll
24f1ffe459
Clean up network parameters
...
Correct block subsidy calculations for Dogecoin and Litecoin and add test
coverage for both networks.
Change Litecoin block version check parameters to match Litecoin Core.
Add checkpoints for Dogecoin main and test, and Litecoin main network.
2015-12-28 21:17:47 +00:00
Ross Nicoll
9261271b3d
Add Litecoin testnet difficulty rules
...
Add special rules for Litecoin testnet difficulty transitions when there's
a long break between blocks
2015-12-28 10:19:31 +00:00
Ross Nicoll
0f4a659fa8
Add Dogecoin testnet difficulty calculation rules
...
Add missing special case rules for Dogecoin testnet which allow blocks to
be mined against the maximum target, if the interval since the last block
is twice the target interval.
2015-12-25 18:24:20 +00:00
Ross Nicoll
3c371a543f
Change from testing arrays to BitSet objects directly
2015-12-20 23:11:00 +00:00
Ross Nicoll
c15a742ffa
Remove dependency on Java 7 in AltcoinBlock
2015-12-20 22:01:45 +00:00
Ross Nicoll
bf9539076f
Add Bitcoin max money to Dogecoin parameters
...
Add Bitcoin max money to Dogecoin parameters as workaround until bitcoinj
hooks for network-specific maximums are complete.
2015-11-08 09:37:13 +00:00
Ross Nicoll
a3910134f8
Add Litecoin support
2015-11-08 09:35:31 +00:00
Ross Nicoll
de30a8e0c9
Update comments on network parameter classes.
2015-11-07 18:15:47 +00:00
langerhans
2d7ea57916
Enable parsing of merkleblock messages
...
Needs to construct the parts of the FilteredBlock manually at this time, but has potential for optimzations
2015-11-07 17:50:59 +00:00
langerhans
2c3466866c
Advance the cursor the full header length
...
Otherweise parsing the nonexistant transactions would reset the size of the message to 80
2015-11-07 17:50:58 +00:00
Ross Nicoll
1dcdff9f6e
Correct AuxPoW index calculation to match unsigned integer maths used by reference client.
...
Add unit tests for AuxPoW index calculation.
2015-11-07 17:50:58 +00:00
Ross Nicoll
95060faa20
Update subclasses to match bitcoinj API changes
...
Update AltcoinBlock and AltcoinSerializer to handle offset as a parameter
when parsing blocks.
2015-10-23 20:55:35 +01:00
Ross Nicoll
29d11d357b
Merge pull request #9 from schildbach/patch-1
...
Fix typo in build.md.
2015-10-18 20:06:20 +01:00
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