1456 Commits

Author SHA1 Message Date
Just Wonder
cc9fac4ff6 Added comment for failed parseDouble test cases with RandomX. 2020-02-29 08:07:06 -08:00
Just Wonder
ecbc9fec10 WIP: RandomX. 2020-02-28 17:04:37 -08:00
Just Wonder
1d7ddc7a23 Added timestamp to keva zmq results. 2020-01-31 17:30:57 -08:00
Just Wonder
1dd2c67eb7 Implemented Keva ZMQ notification. 2020-01-31 09:47:33 -08:00
Jianping Wu
33ed36e5bf Fixed unit test cases after change of hash calculation. 2019-03-21 23:32:48 -07:00
Jianping Wu
7b07bb8817 Fixed validation_block_tests with correct heights. 2019-03-21 12:53:11 -07:00
Jianping Wu
70df11c1a7 Fixed unit test blockchain generation. 2019-03-21 10:31:35 -07:00
Jianping Wu
1e55d22ac0 Introduced block legacy mode for regtests. 2019-03-20 21:50:44 -07:00
Jianping Wu
937095dd4d WIP: started fixing make check. Fixed difficulty computation. 2019-03-20 20:51:25 -07:00
Jianping Wu
1aa9fbd044 Fixed keva unit test. 2019-02-13 21:24:42 -08:00
Jianping Wu
f5935c6a39 Fixed testnet address prefix.
Moved to testnet5.
2019-01-28 18:37:13 -08:00
Jianping Wu
5f8376e01e Fixed blockchain difficulty tests. 2019-01-26 18:15:10 -08:00
Jianping Wu
c627628f11 Skipped some miner tests (CreateNewBlock_validity) as genesis block is not available yet.
TODO: add back these test cases.
2019-01-26 17:53:16 -08:00
Jianping Wu
9ab8e8d8a0 Fixed base58 test cases.
Skipped lots of test cases since many of them are irrelevant, e.g. kevacoin only have compressed keys.
2019-01-26 17:49:29 -08:00
Jianping Wu
c6b604c418 Changed LTC to KVA.
Fixed qt test cases.
2019-01-26 16:34:11 -08:00
Jianping Wu
22cae7e612 Fixed rpc rawsign test case. 2019-01-26 15:20:05 -08:00
Jianping Wu
16ff06c5c2 Fixed script and transaction tests. 2019-01-26 00:57:32 -08:00
Jianping Wu
72d45d6a69 Fixed unit tests. 2019-01-25 21:25:48 -08:00
Jianping Wu
f80d9fed49 Set the same halving schedule as bitcoin. Increased block reward to 500. 2018-12-15 21:22:25 -08:00
Jianping Wu
9a025be151 Implemented keva_filter. 2018-12-13 10:43:54 -08:00
Jianping Wu
ceefe25a87 WIP: Keva mempool test. 2018-12-13 10:43:54 -08:00
Jianping Wu
37ea895cde Keva undo tests. 2018-12-13 10:43:54 -08:00
Jianping Wu
7f2f9e55b7 Started working on keva test case. 2018-12-13 10:43:54 -08:00
Jianping Wu
c436fe9b65 Fixed most miner tests.
Still three failures.
2018-12-13 10:43:54 -08:00
Jianping Wu
fd588c921a Fixed script test. 2018-12-13 10:43:54 -08:00
Jianping Wu
781e53a22b Fixed POW test cases. 2018-12-13 10:43:54 -08:00
Jianping Wu
e4376fdcb5 Increased total supply to: 1344000000.
Fixed subsidy test case.
2018-12-13 10:43:54 -08:00
Jianping Wu
7a994de062 First major changes to kevacoin text. 2018-12-13 10:43:53 -08:00
Jianping Wu
af0a8efb0a More kevacoin name changes. 2018-12-13 10:43:53 -08:00
Jianping Wu
2ba7b82896 Handled keva script with getAddress. 2018-12-13 10:43:53 -08:00
Jianping Wu
49de399c30 Implemented writing to DB. 2018-12-13 10:43:53 -08:00
Adrian Gallagher
defc472744
Merge remote-tracking branch 'bitcoin/0.16' into HEAD 2018-08-26 15:57:58 -07:00
Wladimir J. van der Laan
6518bcd56c
Merge #13797: [0.16] bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes
1cdbea7f742fa128062009ea8ca22383bceacd1e bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes (Thomas Kerin)

Pull request description:

  Backport of #13655 to 0.16

Tree-SHA512: b62e185f2aa957f09255090e59f96c039f47a5623d68b6fef8d1dd831c6d3135b039be5cfad0f823687ff2a5143d24e34bd83fefcc9ba5b68f43054cbd9d909d
2018-07-30 17:04:07 +02:00
Thomas Kerin
1cdbea7f74 bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes
Github-Pull: #13655
Rebased-From: 417b6c1d2990ffc78c029442e027797d724a101f
2018-07-29 21:08:45 +00:00
Adrian Gallagher
ad3c330972
Merge remote-tracking branch 'bitcoin/0.16' into HEAD 2018-07-23 16:53:43 -07:00
practicalswift
e15e3a9ddd Remove boost dependency (boost/assign/std/vector.hpp)
Github-Pull: #13545
Rebased-From: 962d8eed5bdbe62b9926f01cb85bdce9d435d3d6
2018-07-13 11:50:25 -04:00
practicalswift
10621995ed Fix incorrect tests
Github-Pull: #13545
Rebased-From: c6fd0df4efcd9f75c43ff527fd57fe43bc47a474
2018-07-13 11:50:25 -04:00
Bernhard M. Wiedemann
170b309981 Make tests pass after 2020
also test that 64 bit integers are properly handled

Github-Pull: #13061
Rebased-From: 3ee4be10500710fc8e9b03acf974fd81224c05c4
2018-07-12 10:27:29 -04:00
Adrian Gallagher
8203195e2e
Litecoin: GetPoWHash for validation block tests 2018-06-17 18:56:31 -07:00
Adrian Gallagher
4c20019d30
Merge remote-tracking branch 'bitcoin/0.16' 2018-06-17 18:55:26 -07:00
Luke Dashjr
18b0c69e2f
Bugfix: Include <memory> for std::unique_ptr
GitHub-Pull: #12859
Rebased-From: a5bca13
2018-06-13 16:07:44 +08:00
Johnson Lau
1fffc2b346 Add transaction tests for constant scriptCode
Tests showing that CONST_SCRIPTCODE is applied only to non-segwit transactions

Github-Pull: #11423
Rebased-From: 0f8719bb035187076eeac025e2c786feb0f452d7
2018-05-24 14:03:01 -04:00
Johnson Lau
d353dd121b Add constant scriptCode policy in non-segwit scripts
This disables OP_CODESEPARATOR in non-segwit scripts (even in an unexecuted branch), and makes a positive FindAndDelete result invalid. This ensures that the scriptCode serialized in SignatureHash() is always the same as the script passing to the EvalScript.

Github-Pull: #11423
Rebased-From: 9dabfe49c066301ef75bcfcb089fd308366127c4
2018-05-24 14:03:01 -04:00
Jesse Cohen
d6c3a08c48 Add unit tests for signals generated by ProcessNewBlock()
After a recent bug discovered in callback ordering in MainSignals,
this test checks invariants in ordering of
BlockConnected / BlockDisconnected / UpdatedChainTip signals

Github-Pull: #13023
Rebased-From: dd435ad40267f5c50ff17533c696f9302829a6a6
2018-05-24 13:56:00 -04:00
Xinxi Wang
3f8b8a6c5f
Litecoin: M prefix added for script addresses 2018-03-15 16:47:12 -07:00
Adrian Gallagher
32ee7c79ae
Litecoin: Fix tests 2018-03-15 15:57:27 -07:00
Romano
08f2538862
Litecoin: Enable support for SSE2 instructions in scrypt via configure --enable-sse2 (#362) 2018-03-15 15:25:42 -07:00
Adrian Gallagher
a74a01e617
Litecoin: Branding 2018-03-15 15:25:31 -07:00
Adrian Gallagher
fee6799b12
Litecoin: Protocol and default settings
0) Adjust BIP30 enforcement values

1) Reduce amount that peers can adjust our time to eliminate an attack vector. Thanks to
coblee for this fix.

2) Zeitgeist2 patch - thanks to Lolcust and ArtForz. This fixes an issue where a
51% attack can change difficulty at will. Go back the full period unless it's the
first retarget after genesis.

3) Avoid overflow in CalculateNextWorkRequired(). Thanks to pooler for the overflow fix.

4) Zeitgeist2 bool fshift bnNew.bits(). Thanks to romanornr for this path.

5) SegWit ContextualCheckBlockHeader adjustment and extra coverage.

6) Reject peer proto version below 70002. Thanks to wtogami for this patch.

7) Send final alert message to nodes warning about removal of the alert system. Thanks to coblee for this patch.

8) Adjust default settings for Litecoin.
2018-03-04 18:13:23 -08:00
Wladimir J. van der Laan
01f931b928
test: Add missing signal.h header
util_tests.cpp needs to include the signal.h header on FreeBSD.

Reported by denis2342 on IRC.

Github-Pull: #12447
Rebased-From: dd7e42cbb4390788705031ffa0bc893d26f0597e
Tree-SHA512: 10ead029bb59f5d69e37b5679c710f22d64051de26e1ec8342eec4e4dec4d76249e16dff78d192972bcb8d139d99c7555a7cb2fe43b2b911103eab6d6f943b79
2018-02-27 10:49:44 +01:00