Elichai Turkel
bd89ca2125
Log only tips length, and inspect ReachabilityData error instead of calling HasReachabilityData ( #1321 )
...
* Print the amount of tips instead of the tips themselves
* Inspect ReachabilityData error instead of calling HasReachabilityData
2020-12-30 13:02:34 +02:00
Svarog
9b12b9c58a
Make ReachabilityData a read-only interface with a writable variant, to prevent cloning ( #1316 )
...
* Rename reachabilityManager.data to dataForInsertion, and use it only during insertions
* Make reachabilityData an interface
* Fix db serialization of reachability data
* Fix reachabilityDataStore
* Fix all tests
* Cleanup debugging code
* Fix insertToFutureCoveringSet
* Add comments
* Rename to ReachabilityData and MutableReachabilityData
2020-12-30 09:48:38 +02:00
Ori Newman
9a344152aa
[NOD-1517] Properly initialize consensus with Genesis block ( #1009 )
...
* [NOD-1517] Properly initialize consensus with Genesis block
* [NOD-1517] Remove redundant AddHeaderTip
* [NOD-1517] Don't return nil from dbHash<->DomainHash converters
* [NOD-1517] Use pointer receivers
* [NOD-1517] Use domain block in dagParams
* [NOD-1517] Remove boolean from SelectedTip
* [NOD-1517] Rename hasHeader to isHeadersOnlyBlock
* [NOD-1517] Add comment
* [NOD-1517] Change genesis version
* [NOD-1517] Rename TestNewFactory->TestNewConsensus
2020-11-08 15:17:20 +02:00
Ori Newman
a436b30ebf
[NOD-1417] Implement reachability ( #964 )
...
* [NOD-1417] Implement reachability
* [NOD-1417] Rename package name
* [NOD-1417] Add UpdateReindexRoot to interface api
* [NOD-1417] Remove redundant type
* [NOD-1417] Rename reachabilityTreeManager/reachabilityTree to reachabilityManager
* [NOD-1417] Fix typo
* [NOD-1417] Remove redundant copyright message
* [NOD-1417] Fix comment
2020-10-28 12:19:50 +02:00