Pieter Wuille
6bd1d60c97
Separate core memory usage computation in core_memusage.h
2017-03-14 13:45:05 +13:00
Jorge Timón
e079f010bf
Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in CheckInputs
...
Zcash:
- Replaces some of the refactoring performed in #1017
- Exposed Consensus::CheckTxInputs for testing
2017-03-03 10:57:09 -08:00
Sean Bowe
08de001a25
Regression test.
2016-12-06 12:54:53 -07:00
Sean Bowe
f398a94766
Anchors and nullifiers should always be inherited from the parent cache.
2016-11-17 11:43:54 -07:00
Simon
43f0769cf6
Fix build problem with coins_tests
2016-10-20 23:50:19 -07:00
Pieter Wuille
abd22bb674
Add tests for CCoins deserialization
2016-10-20 22:59:50 -07:00
Simon
805344dcf4
Refactor: replace calls to GetTxid() with GetHash()
2016-09-07 15:12:09 -07:00
Simon
10d2c57c0d
Replace calls to GetHash() with GetTxid() for transaction objects.
...
Where the caller intends to receive a transaction id and not a double
SHA256 hash.
2016-07-26 17:13:03 -07:00
Sean Bowe
22de160219
Fixes for indentation and local variable names.
2016-07-18 10:07:29 -06:00
Sean Bowe
28173cd0de
Remove more usage of serial.
2016-07-18 10:06:18 -06:00
Sean Bowe
9e511dbbdd
Rename CSerialsCacheEntry.
2016-07-18 10:06:18 -06:00
Sean Bowe
1d184d53e1
Rename cacheSerials to cacheNullifiers and fix tests.
2016-07-18 10:06:18 -06:00
Sean Bowe
bb64be52fe
Rename mapSerials to mapNullifiers.
2016-07-18 10:06:18 -06:00
Sean Bowe
d889a287ae
Rename CSerialsMap to CNullifiersMap.
2016-07-18 10:06:18 -06:00
Sean Bowe
d90e46ba8d
Renaming SetSerial to SetNullifier.
2016-07-18 10:06:18 -06:00
Sean Bowe
616f8d05af
Rename GetSerial to GetNullifier.
2016-07-18 10:06:18 -06:00
Sean Bowe
ee964faf3d
Rename HavePourRequirements to HaveJoinSplitRequirements.
2016-07-18 10:06:18 -06:00
Sean Bowe
8675d94b63
Rename vpour to vjoinsplit.
2016-07-18 10:06:18 -06:00
Sean Bowe
a8c68ffe99
Rename CPourTx to JSDescription.
2016-07-18 10:06:18 -06:00
Sean Bowe
ffcd1c57cc
Update tests with cache usage computations
2016-07-10 20:53:33 -06:00
Sean Bowe
c0dde76d8a
Disable coinbase-must-be-protected rule on regtest.
2016-06-13 12:23:55 -06:00
Sean Bowe
1d38795f50
Prevent coinbases from being spent to transparent outputs.
2016-06-13 11:58:10 -06:00
Sean Bowe
ecd8ca5dbe
Minor changes to coins_tests.
2016-06-08 09:15:44 -06:00
Sean Bowe
49ab032b5f
Add test to ensure parent treestates only can appear earlier in the transaction or in the global state, not later.
2016-06-07 21:05:25 -06:00
Sean Bowe
10c33f0f87
Test behavior of chained pour consensus rules.
2016-05-30 22:46:44 -06:00
Sean Bowe
8048f4c048
Ensure merkle tree fixed point removal is tested against inside coins_tests.
2016-05-30 22:46:44 -06:00
Sean Bowe
14b12fde2b
Move new coins tests to within coins_tests test suite.
2016-05-30 22:46:44 -06:00
Sean Bowe
2dc3599271
Transplant of libzcash.
2016-05-12 16:44:47 -06:00
Sean Bowe
434f328446
Integrate new incremental merkle tree implementation into consensus.
2016-04-28 16:07:52 -06:00
Sean Bowe
a897db652f
Reorganizing the zerocash tree.
2016-02-15 15:28:20 -07:00
Sean Bowe
cf47198370
Fixed a couple incremental merkle tree bugs breaking consistency checks.
2016-01-19 14:36:10 -07:00
Sean Bowe
45d6bee945
Add mapSerials infrastructure to CCoinsView.
...
This adds the TXDB/CCoinsViewCache primitives necessary for
writing consensus rules for mapSerials later.
2016-01-19 14:36:04 -07:00
Sean Bowe
9f25631d50
Add mapAnchors infrastructure to CCoinsView.
...
This adds the TXDB/CCoinsViewCache primitives necessary for
writing consensus rules for mapAnchors later.
2016-01-19 14:36:04 -07:00
Pieter Wuille
046392dc1d
Keep track of memory usage in CCoinsViewCache
2015-05-11 17:56:48 -07:00
Wladimir J. van der Laan
92fd887fd4
tests: add a BasicTestingSetup and apply to all tests
...
Make sure that chainparams and logging is properly initialized. Doing
this for every test may be overkill, but this initialization is so
simple that that does not matter.
This should fix the travis issues.
2015-03-12 09:45:22 +01:00
Pieter Wuille
7c70438dc6
Get rid of the dummy CCoinsViewCache constructor arg
2014-09-24 03:19:04 +02:00
Pieter Wuille
ed27e53c9b
Add coins_tests with a large randomized CCoinViewCache test.
2014-09-23 22:29:45 +02:00