Ori Newman
53781eed4d
Remove payload hash ( #1583 )
...
* Remove payload hash
* Fix tests
2021-03-08 15:15:03 +02:00
Ori Newman
4a354cd538
Validate transactions on BuildBlock ( #1491 )
...
* Validate transactions on BuildBlock
* Rename tx -> transactions
* Add transaction validator to block builder constructor and fix TestValidateAndInsertErrors
Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>
2021-02-08 14:59:43 +02:00
Ori Newman
67be4d82bf
Don't mark bad merkle root as invalid ( #1419 )
...
* Don't mark bad merkle root as invalid
* Fix TestBlockStatus
* Move discardAllChanges inside the inner if
2021-01-17 10:40:05 +02:00
Ori Newman
a1381d6768
Add TestCheckParentBlockBodiesExist ( #1405 )
...
* Add TestCheckParentBlockBodiesExist
* Use block in pruning point's anticone for the test
* Fix test db name
2021-01-14 13:31:17 +02:00
talelbaz
8ad5725421
Adding a test for the error cases on the function 'checkBlockStatus()' ( #1398 )
...
* Adds test for error cases on the function checkBlockStatus.
* Fix review's comments.
* Move test to validateandinsertblock_test.go
Co-authored-by: tal <tal@daglabs.com>
Co-authored-by: Ori Newman <orinewman1@gmail.com>
2021-01-12 15:55:02 +02:00
Svarog
49e0a2a2e7
Add basic support for archival node ( #1370 )
...
* Add archival cli flag
* If --archival was activated - don't delete anything
* Fix tests
* Still change block status to StatusHeaderOnly even in archival nodes
2021-01-10 10:25:15 +02:00
Ori Newman
3ec1cbe236
Add TestBlockStatus ( #1361 )
...
Co-authored-by: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com>
2021-01-06 10:37:10 +02:00