nimbus-eth1/fluffy/tests
Kim De Mey 36d430aaa2
Add headers with proof content type and use it for verification (#1281)
* Add headers with proof content type and use it for verification

- Add BlockHeaderWithProof content type & content
- Use BlockHeaderWithProof content to verify if chain data is
part of the canonical chain
- Adjust parser & seeder code to be able to seed these headers
with proof
- Adjust eth_data_exporter to be able to export custom header
ranges for which to build proofs (mostly for testing)

There is currently quite some ugliness & clean-up needed for which
a big part is due tos upporting both BlockHeader and
BlockHeaderWithProof on the network.

* Change accumulator proof to array / SSZ vector type

- Change accumulator proof to SSZ vector instead of SSZ list.
- Add and use general buildProof and buildHeaderWithProof func.

* Make the BlockHeaderWithProof an SSZ Union with None option

* Update portal-spec-tests to master commit
2022-11-04 09:27:01 +01:00
..
beacon_light_client_tests Extend light client network (#1287) 2022-11-03 09:12:32 +01:00
blocks Add verification of block data by use of accumulator (#1178) 2022-08-01 21:00:21 +02:00
custom_genesis Add a first, simple, content network test (#760) 2021-07-15 15:12:33 +02:00
portal_spec_tests/mainnet Remove Accumulator as network content type and add it to binary (#1267) 2022-10-17 20:38:51 +02:00
all_fluffy_tests.nim Add initial implementation of portal powered light client (#1280) 2022-10-28 09:49:18 +02:00
test_accumulator.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
test_bridge_parser.nim Oops, isMainModule will not run of course for all_tests (#841) 2021-09-21 18:38:08 +02:00
test_content_db.nim StyleCheck fixes for Fluffy and lcproxy (#1220) 2022-09-10 21:00:27 +02:00
test_discovery_rpc.nim StyleCheck fixes for Fluffy and lcproxy (#1220) 2022-09-10 21:00:27 +02:00
test_helpers.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
test_history_network.nim Add headers with proof content type and use it for verification (#1281) 2022-11-04 09:27:01 +01:00
test_history_validation.nim Split parsing and seeding functionality for history data (#1218) 2022-09-09 21:21:48 +02:00
test_portal_wire_protocol.nim Remove Accumulator as network content type and add it to binary (#1267) 2022-10-17 20:38:51 +02:00
test_state_distance.nim StyleCheck fixes for Fluffy and lcproxy (#1220) 2022-09-10 21:00:27 +02:00
test_state_network.nim StyleCheck fixes for Fluffy and lcproxy (#1220) 2022-09-10 21:00:27 +02:00