kaspad/stability-tests
Michael Sutton d957a6d93a
Fix UTXO diff child error (#2084)
* Avoid creating the chain iterator if high hash is actually low hash

* Always use iterator in nextPruningPointAndCandidateByBlockHash

* Initial failing test

* Minimal failing test + some comments

* go lint

* Add simpler tests with two different errors

* Missed some error checks

* Minor

* A workaround patch for preventing the missing utxo child diff bug

* Make sure we fully resolve virtual

* Move ResolveVirtualWithMaxParam to test consensus

* Mark virtual not updated and loop in batches

* Refactor: remove VirtualChangeSet from functions return values

* Remove workaround comments

* If block has no body, virtual is still considered updated

* Remove special error ErrReverseUTXODiffsUTXODiffChildNotFound

Co-authored-by: Ori Newman <orinewman1@gmail.com>
2022-06-15 02:52:14 +03:00
..
2022-06-15 02:52:14 +03:00
2022-03-30 20:17:29 +03:00
2022-06-15 02:52:14 +03:00
2022-06-15 02:52:14 +03:00
2022-06-15 02:52:14 +03:00
2022-03-30 20:17:29 +03:00
2021-03-09 15:01:08 +02:00

Stability-Test Tools

This package provides some higher-level tests for kaspad.
These are tests that are beyond the scope of unit-tests, and some of them might take long time to run.

Running

  • To run only the fast running tests call ./install_and_test.sh
  • To include all tests call SLOW=1 ./install_and_test.sh (Note this will take many hours to finish)
  • To run a single test cd [test-name]/run and call ./run.sh