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
..
2021-03-09 15:01:08 +02:00
2021-03-09 15:01:08 +02:00
2021-03-09 15:01:08 +02:00
2021-07-26 12:24:07 +03:00
2021-03-09 15:01:08 +02:00

Netsync Stability Tester

This tests that the netsync is at least 5 blocks per second.

Note: the test doesn't delete kaspad's data directory and it's the user responsibility to delete the data directories that appear in the log.

Running

  1. go install kaspad.
  2. go install ./....
  3. cd run
  4. ./run.sh