@aztec/p2p 0.0.1-commit.6d63667d → 0.0.1-commit.733c4a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/client/factory.d.ts +7 -6
- package/dest/client/factory.d.ts.map +1 -1
- package/dest/client/factory.js +35 -11
- package/dest/client/interface.d.ts +45 -32
- package/dest/client/interface.d.ts.map +1 -1
- package/dest/client/p2p_client.d.ts +38 -50
- package/dest/client/p2p_client.d.ts.map +1 -1
- package/dest/client/p2p_client.js +145 -200
- package/dest/client/test/tx_proposal_collector/proposal_tx_collector_worker.js +6 -6
- package/dest/config.d.ts +24 -8
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +16 -6
- package/dest/errors/tx-pool.error.d.ts +8 -0
- package/dest/errors/tx-pool.error.d.ts.map +1 -0
- package/dest/errors/tx-pool.error.js +9 -0
- package/dest/index.d.ts +2 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +1 -0
- package/dest/mem_pools/attestation_pool/attestation_pool.d.ts +104 -88
- package/dest/mem_pools/attestation_pool/attestation_pool.d.ts.map +1 -1
- package/dest/mem_pools/attestation_pool/attestation_pool.js +441 -3
- package/dest/mem_pools/attestation_pool/attestation_pool_test_suite.d.ts +2 -2
- package/dest/mem_pools/attestation_pool/attestation_pool_test_suite.d.ts.map +1 -1
- package/dest/mem_pools/attestation_pool/attestation_pool_test_suite.js +353 -87
- package/dest/mem_pools/attestation_pool/index.d.ts +2 -3
- package/dest/mem_pools/attestation_pool/index.d.ts.map +1 -1
- package/dest/mem_pools/attestation_pool/index.js +1 -2
- package/dest/mem_pools/attestation_pool/mocks.d.ts +2 -2
- package/dest/mem_pools/attestation_pool/mocks.d.ts.map +1 -1
- package/dest/mem_pools/attestation_pool/mocks.js +2 -2
- package/dest/mem_pools/index.d.ts +3 -2
- package/dest/mem_pools/index.d.ts.map +1 -1
- package/dest/mem_pools/index.js +1 -1
- package/dest/mem_pools/interface.d.ts +5 -5
- package/dest/mem_pools/interface.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool/eviction/invalid_txs_after_mining_rule.js +3 -3
- package/dest/mem_pools/tx_pool_v2/deleted_pool.d.ts +104 -0
- package/dest/mem_pools/tx_pool_v2/deleted_pool.d.ts.map +1 -0
- package/dest/mem_pools/tx_pool_v2/deleted_pool.js +251 -0
- package/dest/mem_pools/tx_pool_v2/eviction/eviction_manager.d.ts +3 -3
- package/dest/mem_pools/tx_pool_v2/eviction/eviction_manager.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/eviction_manager.js +18 -9
- package/dest/mem_pools/tx_pool_v2/eviction/fee_payer_balance_eviction_rule.d.ts +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/fee_payer_balance_eviction_rule.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/fee_payer_balance_eviction_rule.js +5 -2
- package/dest/mem_pools/tx_pool_v2/eviction/fee_payer_balance_pre_add_rule.d.ts +3 -3
- package/dest/mem_pools/tx_pool_v2/eviction/fee_payer_balance_pre_add_rule.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/fee_payer_balance_pre_add_rule.js +10 -4
- package/dest/mem_pools/tx_pool_v2/eviction/index.d.ts +2 -2
- package/dest/mem_pools/tx_pool_v2/eviction/index.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/index.js +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/interfaces.d.ts +48 -5
- package/dest/mem_pools/tx_pool_v2/eviction/interfaces.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/interfaces.js +8 -0
- package/dest/mem_pools/tx_pool_v2/eviction/invalid_txs_after_mining_rule.js +7 -5
- package/dest/mem_pools/tx_pool_v2/eviction/invalid_txs_after_reorg_rule.js +7 -5
- package/dest/mem_pools/tx_pool_v2/eviction/low_priority_eviction_rule.d.ts +2 -2
- package/dest/mem_pools/tx_pool_v2/eviction/low_priority_eviction_rule.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/low_priority_eviction_rule.js +14 -6
- package/dest/mem_pools/tx_pool_v2/eviction/low_priority_pre_add_rule.d.ts +4 -4
- package/dest/mem_pools/tx_pool_v2/eviction/low_priority_pre_add_rule.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/low_priority_pre_add_rule.js +14 -4
- package/dest/mem_pools/tx_pool_v2/eviction/nullifier_conflict_rule.d.ts +3 -3
- package/dest/mem_pools/tx_pool_v2/eviction/nullifier_conflict_rule.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/eviction/nullifier_conflict_rule.js +2 -2
- package/dest/mem_pools/tx_pool_v2/index.d.ts +2 -1
- package/dest/mem_pools/tx_pool_v2/index.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/index.js +1 -0
- package/dest/mem_pools/tx_pool_v2/instrumentation.d.ts +15 -0
- package/dest/mem_pools/tx_pool_v2/instrumentation.d.ts.map +1 -0
- package/dest/mem_pools/tx_pool_v2/instrumentation.js +43 -0
- package/dest/mem_pools/tx_pool_v2/interfaces.d.ts +22 -8
- package/dest/mem_pools/tx_pool_v2/interfaces.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/interfaces.js +4 -1
- package/dest/mem_pools/tx_pool_v2/tx_metadata.d.ts +39 -5
- package/dest/mem_pools/tx_pool_v2/tx_metadata.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/tx_metadata.js +74 -5
- package/dest/mem_pools/tx_pool_v2/tx_pool_indices.d.ts +12 -3
- package/dest/mem_pools/tx_pool_v2/tx_pool_indices.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/tx_pool_indices.js +27 -4
- package/dest/mem_pools/tx_pool_v2/tx_pool_v2.d.ts +9 -4
- package/dest/mem_pools/tx_pool_v2/tx_pool_v2.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/tx_pool_v2.js +11 -6
- package/dest/mem_pools/tx_pool_v2/tx_pool_v2_impl.d.ts +13 -5
- package/dest/mem_pools/tx_pool_v2/tx_pool_v2_impl.d.ts.map +1 -1
- package/dest/mem_pools/tx_pool_v2/tx_pool_v2_impl.js +312 -169
- package/dest/msg_validators/attestation_validator/fisherman_attestation_validator.d.ts +3 -3
- package/dest/msg_validators/attestation_validator/fisherman_attestation_validator.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/aggregate_tx_validator.d.ts +4 -4
- package/dest/msg_validators/tx_validator/aggregate_tx_validator.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/aggregate_tx_validator.js +3 -3
- package/dest/msg_validators/tx_validator/block_header_validator.d.ts +16 -3
- package/dest/msg_validators/tx_validator/block_header_validator.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/block_header_validator.js +1 -1
- package/dest/msg_validators/tx_validator/double_spend_validator.d.ts +13 -3
- package/dest/msg_validators/tx_validator/double_spend_validator.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/double_spend_validator.js +4 -4
- package/dest/msg_validators/tx_validator/factory.d.ts +114 -6
- package/dest/msg_validators/tx_validator/factory.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/factory.js +219 -58
- package/dest/msg_validators/tx_validator/gas_validator.d.ts +58 -3
- package/dest/msg_validators/tx_validator/gas_validator.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/gas_validator.js +73 -36
- package/dest/msg_validators/tx_validator/index.d.ts +2 -1
- package/dest/msg_validators/tx_validator/index.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/index.js +1 -0
- package/dest/msg_validators/tx_validator/nullifier_cache.d.ts +14 -0
- package/dest/msg_validators/tx_validator/nullifier_cache.d.ts.map +1 -0
- package/dest/msg_validators/tx_validator/nullifier_cache.js +24 -0
- package/dest/msg_validators/tx_validator/timestamp_validator.d.ts +20 -4
- package/dest/msg_validators/tx_validator/timestamp_validator.d.ts.map +1 -1
- package/dest/msg_validators/tx_validator/timestamp_validator.js +6 -6
- package/dest/services/dummy_service.d.ts +13 -5
- package/dest/services/dummy_service.d.ts.map +1 -1
- package/dest/services/dummy_service.js +10 -4
- package/dest/services/encoding.d.ts +2 -2
- package/dest/services/encoding.d.ts.map +1 -1
- package/dest/services/encoding.js +4 -3
- package/dest/services/gossipsub/index.d.ts +3 -0
- package/dest/services/gossipsub/index.d.ts.map +1 -0
- package/dest/services/gossipsub/index.js +2 -0
- package/dest/services/gossipsub/scoring.d.ts +21 -3
- package/dest/services/gossipsub/scoring.d.ts.map +1 -1
- package/dest/services/gossipsub/scoring.js +24 -7
- package/dest/services/gossipsub/topic_score_params.d.ts +173 -0
- package/dest/services/gossipsub/topic_score_params.d.ts.map +1 -0
- package/dest/services/gossipsub/topic_score_params.js +346 -0
- package/dest/services/libp2p/libp2p_service.d.ts +91 -38
- package/dest/services/libp2p/libp2p_service.d.ts.map +1 -1
- package/dest/services/libp2p/libp2p_service.js +411 -321
- package/dest/services/peer-manager/peer_scoring.d.ts +1 -1
- package/dest/services/peer-manager/peer_scoring.d.ts.map +1 -1
- package/dest/services/peer-manager/peer_scoring.js +25 -2
- package/dest/services/reqresp/batch-tx-requester/batch_tx_requester.d.ts +4 -3
- package/dest/services/reqresp/batch-tx-requester/batch_tx_requester.d.ts.map +1 -1
- package/dest/services/reqresp/batch-tx-requester/batch_tx_requester.js +19 -46
- package/dest/services/reqresp/batch-tx-requester/interface.d.ts +2 -6
- package/dest/services/reqresp/batch-tx-requester/interface.d.ts.map +1 -1
- package/dest/services/reqresp/batch-tx-requester/missing_txs.d.ts +10 -13
- package/dest/services/reqresp/batch-tx-requester/missing_txs.d.ts.map +1 -1
- package/dest/services/reqresp/batch-tx-requester/missing_txs.js +25 -46
- package/dest/services/reqresp/batch-tx-requester/peer_collection.d.ts +17 -11
- package/dest/services/reqresp/batch-tx-requester/peer_collection.d.ts.map +1 -1
- package/dest/services/reqresp/batch-tx-requester/peer_collection.js +49 -15
- package/dest/services/reqresp/batch-tx-requester/tx_validator.js +2 -2
- package/dest/services/reqresp/interface.d.ts +10 -1
- package/dest/services/reqresp/interface.d.ts.map +1 -1
- package/dest/services/reqresp/interface.js +15 -1
- package/dest/services/reqresp/protocols/block_txs/block_txs_handler.d.ts +4 -3
- package/dest/services/reqresp/protocols/block_txs/block_txs_handler.d.ts.map +1 -1
- package/dest/services/reqresp/protocols/block_txs/block_txs_reqresp.d.ts +7 -1
- package/dest/services/reqresp/protocols/block_txs/block_txs_reqresp.d.ts.map +1 -1
- package/dest/services/reqresp/protocols/block_txs/block_txs_reqresp.js +15 -0
- package/dest/services/reqresp/protocols/tx.d.ts +7 -1
- package/dest/services/reqresp/protocols/tx.d.ts.map +1 -1
- package/dest/services/reqresp/protocols/tx.js +20 -0
- package/dest/services/reqresp/reqresp.d.ts +1 -1
- package/dest/services/reqresp/reqresp.d.ts.map +1 -1
- package/dest/services/reqresp/reqresp.js +11 -4
- package/dest/services/service.d.ts +39 -3
- package/dest/services/service.d.ts.map +1 -1
- package/dest/services/tx_collection/config.d.ts +19 -1
- package/dest/services/tx_collection/config.d.ts.map +1 -1
- package/dest/services/tx_collection/config.js +46 -0
- package/dest/services/tx_collection/fast_tx_collection.d.ts +3 -1
- package/dest/services/tx_collection/fast_tx_collection.d.ts.map +1 -1
- package/dest/services/tx_collection/fast_tx_collection.js +56 -36
- package/dest/services/tx_collection/file_store_tx_collection.d.ts +53 -0
- package/dest/services/tx_collection/file_store_tx_collection.d.ts.map +1 -0
- package/dest/services/tx_collection/file_store_tx_collection.js +167 -0
- package/dest/services/tx_collection/file_store_tx_source.d.ts +37 -0
- package/dest/services/tx_collection/file_store_tx_source.d.ts.map +1 -0
- package/dest/services/tx_collection/file_store_tx_source.js +90 -0
- package/dest/services/tx_collection/index.d.ts +2 -1
- package/dest/services/tx_collection/index.d.ts.map +1 -1
- package/dest/services/tx_collection/index.js +1 -0
- package/dest/services/tx_collection/instrumentation.d.ts +1 -1
- package/dest/services/tx_collection/instrumentation.d.ts.map +1 -1
- package/dest/services/tx_collection/instrumentation.js +2 -1
- package/dest/services/tx_collection/missing_txs_tracker.d.ts +32 -0
- package/dest/services/tx_collection/missing_txs_tracker.d.ts.map +1 -0
- package/dest/services/tx_collection/missing_txs_tracker.js +27 -0
- package/dest/services/tx_collection/proposal_tx_collector.d.ts +7 -6
- package/dest/services/tx_collection/proposal_tx_collector.d.ts.map +1 -1
- package/dest/services/tx_collection/proposal_tx_collector.js +5 -4
- package/dest/services/tx_collection/slow_tx_collection.d.ts +7 -3
- package/dest/services/tx_collection/slow_tx_collection.d.ts.map +1 -1
- package/dest/services/tx_collection/slow_tx_collection.js +60 -26
- package/dest/services/tx_collection/tx_collection.d.ts +23 -10
- package/dest/services/tx_collection/tx_collection.d.ts.map +1 -1
- package/dest/services/tx_collection/tx_collection.js +75 -3
- package/dest/services/tx_collection/tx_collection_sink.d.ts +18 -8
- package/dest/services/tx_collection/tx_collection_sink.d.ts.map +1 -1
- package/dest/services/tx_collection/tx_collection_sink.js +26 -29
- package/dest/services/tx_collection/tx_source.d.ts +8 -3
- package/dest/services/tx_collection/tx_source.d.ts.map +1 -1
- package/dest/services/tx_collection/tx_source.js +19 -2
- package/dest/services/tx_file_store/config.d.ts +1 -3
- package/dest/services/tx_file_store/config.d.ts.map +1 -1
- package/dest/services/tx_file_store/config.js +0 -4
- package/dest/services/tx_file_store/tx_file_store.d.ts +4 -3
- package/dest/services/tx_file_store/tx_file_store.d.ts.map +1 -1
- package/dest/services/tx_file_store/tx_file_store.js +9 -6
- package/dest/services/tx_provider.d.ts +4 -4
- package/dest/services/tx_provider.d.ts.map +1 -1
- package/dest/services/tx_provider.js +9 -8
- package/dest/test-helpers/make-test-p2p-clients.d.ts +3 -3
- package/dest/test-helpers/make-test-p2p-clients.d.ts.map +1 -1
- package/dest/test-helpers/mock-pubsub.d.ts +29 -2
- package/dest/test-helpers/mock-pubsub.d.ts.map +1 -1
- package/dest/test-helpers/mock-pubsub.js +103 -2
- package/dest/test-helpers/reqresp-nodes.d.ts +1 -1
- package/dest/test-helpers/reqresp-nodes.d.ts.map +1 -1
- package/dest/test-helpers/reqresp-nodes.js +2 -1
- package/dest/test-helpers/testbench-utils.d.ts +43 -38
- package/dest/test-helpers/testbench-utils.d.ts.map +1 -1
- package/dest/test-helpers/testbench-utils.js +128 -59
- package/dest/testbench/p2p_client_testbench_worker.d.ts +2 -2
- package/dest/testbench/p2p_client_testbench_worker.d.ts.map +1 -1
- package/dest/testbench/p2p_client_testbench_worker.js +10 -10
- package/dest/util.d.ts +2 -2
- package/dest/util.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/client/factory.ts +66 -14
- package/src/client/interface.ts +61 -33
- package/src/client/p2p_client.ts +179 -236
- package/src/client/test/tx_proposal_collector/proposal_tx_collector_worker.ts +19 -9
- package/src/config.ts +35 -11
- package/src/errors/tx-pool.error.ts +12 -0
- package/src/index.ts +1 -0
- package/src/mem_pools/attestation_pool/attestation_pool.ts +496 -91
- package/src/mem_pools/attestation_pool/attestation_pool_test_suite.ts +442 -102
- package/src/mem_pools/attestation_pool/index.ts +9 -2
- package/src/mem_pools/attestation_pool/mocks.ts +2 -1
- package/src/mem_pools/index.ts +4 -1
- package/src/mem_pools/interface.ts +4 -4
- package/src/mem_pools/tx_pool/README.md +1 -1
- package/src/mem_pools/tx_pool/eviction/invalid_txs_after_mining_rule.ts +3 -3
- package/src/mem_pools/tx_pool_v2/README.md +76 -10
- package/src/mem_pools/tx_pool_v2/deleted_pool.ts +321 -0
- package/src/mem_pools/tx_pool_v2/eviction/eviction_manager.ts +21 -8
- package/src/mem_pools/tx_pool_v2/eviction/fee_payer_balance_eviction_rule.ts +5 -2
- package/src/mem_pools/tx_pool_v2/eviction/fee_payer_balance_pre_add_rule.ts +15 -4
- package/src/mem_pools/tx_pool_v2/eviction/index.ts +4 -0
- package/src/mem_pools/tx_pool_v2/eviction/interfaces.ts +49 -4
- package/src/mem_pools/tx_pool_v2/eviction/invalid_txs_after_mining_rule.ts +5 -5
- package/src/mem_pools/tx_pool_v2/eviction/invalid_txs_after_reorg_rule.ts +5 -5
- package/src/mem_pools/tx_pool_v2/eviction/low_priority_eviction_rule.ts +14 -9
- package/src/mem_pools/tx_pool_v2/eviction/low_priority_pre_add_rule.ts +24 -6
- package/src/mem_pools/tx_pool_v2/eviction/nullifier_conflict_rule.ts +3 -3
- package/src/mem_pools/tx_pool_v2/index.ts +1 -0
- package/src/mem_pools/tx_pool_v2/instrumentation.ts +69 -0
- package/src/mem_pools/tx_pool_v2/interfaces.ts +23 -8
- package/src/mem_pools/tx_pool_v2/tx_metadata.ts +103 -9
- package/src/mem_pools/tx_pool_v2/tx_pool_indices.ts +32 -5
- package/src/mem_pools/tx_pool_v2/tx_pool_v2.ts +18 -7
- package/src/mem_pools/tx_pool_v2/tx_pool_v2_impl.ts +347 -166
- package/src/msg_validators/attestation_validator/fisherman_attestation_validator.ts +2 -2
- package/src/msg_validators/tx_validator/README.md +115 -0
- package/src/msg_validators/tx_validator/aggregate_tx_validator.ts +5 -5
- package/src/msg_validators/tx_validator/block_header_validator.ts +15 -3
- package/src/msg_validators/tx_validator/double_spend_validator.ts +11 -6
- package/src/msg_validators/tx_validator/factory.ts +353 -77
- package/src/msg_validators/tx_validator/gas_validator.ts +90 -27
- package/src/msg_validators/tx_validator/index.ts +1 -0
- package/src/msg_validators/tx_validator/nullifier_cache.ts +30 -0
- package/src/msg_validators/tx_validator/timestamp_validator.ts +23 -18
- package/src/services/dummy_service.ts +18 -6
- package/src/services/encoding.ts +4 -3
- package/src/services/gossipsub/README.md +641 -0
- package/src/services/gossipsub/index.ts +2 -0
- package/src/services/gossipsub/scoring.ts +29 -5
- package/src/services/gossipsub/topic_score_params.ts +487 -0
- package/src/services/libp2p/libp2p_service.ts +431 -344
- package/src/services/peer-manager/peer_scoring.ts +25 -0
- package/src/services/reqresp/batch-tx-requester/batch_tx_requester.ts +20 -48
- package/src/services/reqresp/batch-tx-requester/interface.ts +1 -5
- package/src/services/reqresp/batch-tx-requester/missing_txs.ts +23 -71
- package/src/services/reqresp/batch-tx-requester/peer_collection.ts +63 -24
- package/src/services/reqresp/batch-tx-requester/tx_validator.ts +2 -2
- package/src/services/reqresp/interface.ts +26 -1
- package/src/services/reqresp/protocols/block_txs/block_txs_handler.ts +4 -3
- package/src/services/reqresp/protocols/block_txs/block_txs_reqresp.ts +17 -0
- package/src/services/reqresp/protocols/tx.ts +22 -0
- package/src/services/reqresp/reqresp.ts +13 -3
- package/src/services/service.ts +51 -2
- package/src/services/tx_collection/config.ts +68 -0
- package/src/services/tx_collection/fast_tx_collection.ts +65 -32
- package/src/services/tx_collection/file_store_tx_collection.ts +202 -0
- package/src/services/tx_collection/file_store_tx_source.ts +117 -0
- package/src/services/tx_collection/index.ts +1 -0
- package/src/services/tx_collection/instrumentation.ts +7 -1
- package/src/services/tx_collection/missing_txs_tracker.ts +52 -0
- package/src/services/tx_collection/proposal_tx_collector.ts +8 -7
- package/src/services/tx_collection/slow_tx_collection.ts +66 -33
- package/src/services/tx_collection/tx_collection.ts +113 -16
- package/src/services/tx_collection/tx_collection_sink.ts +30 -34
- package/src/services/tx_collection/tx_source.ts +22 -3
- package/src/services/tx_file_store/config.ts +0 -6
- package/src/services/tx_file_store/tx_file_store.ts +10 -8
- package/src/services/tx_provider.ts +10 -9
- package/src/test-helpers/make-test-p2p-clients.ts +3 -3
- package/src/test-helpers/mock-pubsub.ts +143 -3
- package/src/test-helpers/reqresp-nodes.ts +2 -1
- package/src/test-helpers/testbench-utils.ts +127 -71
- package/src/testbench/p2p_client_testbench_worker.ts +22 -15
- package/src/util.ts +7 -1
- package/dest/mem_pools/attestation_pool/kv_attestation_pool.d.ts +0 -40
- package/dest/mem_pools/attestation_pool/kv_attestation_pool.d.ts.map +0 -1
- package/dest/mem_pools/attestation_pool/kv_attestation_pool.js +0 -218
- package/dest/mem_pools/attestation_pool/memory_attestation_pool.d.ts +0 -31
- package/dest/mem_pools/attestation_pool/memory_attestation_pool.d.ts.map +0 -1
- package/dest/mem_pools/attestation_pool/memory_attestation_pool.js +0 -180
- package/src/mem_pools/attestation_pool/kv_attestation_pool.ts +0 -320
- package/src/mem_pools/attestation_pool/memory_attestation_pool.ts +0 -264
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { TopicType, createTopicString } from '@aztec/stdlib/p2p';
|
|
2
|
+
import { calculateMaxBlocksPerSlot } from '@aztec/stdlib/timetable';
|
|
3
|
+
import { createTopicScoreParams } from '@chainsafe/libp2p-gossipsub/score';
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the number of blocks per slot based on timing parameters.
|
|
6
|
+
* Uses the shared calculation from @aztec/stdlib/timetable.
|
|
7
|
+
*
|
|
8
|
+
* @param slotDurationMs - L2 slot duration in milliseconds
|
|
9
|
+
* @param blockDurationMs - Duration per block in milliseconds (undefined = single block mode)
|
|
10
|
+
* @returns Number of blocks per slot
|
|
11
|
+
*/ export function calculateBlocksPerSlot(slotDurationMs, blockDurationMs) {
|
|
12
|
+
return calculateMaxBlocksPerSlot(slotDurationMs / 1000, blockDurationMs ? blockDurationMs / 1000 : undefined);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Determines the decay window in slots based on expected message frequency.
|
|
16
|
+
* Low-frequency topics need longer decay windows to accumulate meaningful counter values.
|
|
17
|
+
*
|
|
18
|
+
* @param expectedMessagesPerSlot - Expected messages per slot for this topic
|
|
19
|
+
* @returns Number of slots over which the counter should decay to ~1%
|
|
20
|
+
*/ export function getDecayWindowSlots(expectedMessagesPerSlot) {
|
|
21
|
+
if (expectedMessagesPerSlot <= 1) {
|
|
22
|
+
return 5; // Low frequency: decay over 5 slots
|
|
23
|
+
} else if (expectedMessagesPerSlot <= 10) {
|
|
24
|
+
return 3; // Medium frequency: decay over 3 slots
|
|
25
|
+
} else {
|
|
26
|
+
return 2; // High frequency: decay over 2 slots
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Computes the decay factor for exponential decay over a given window.
|
|
31
|
+
* After `heartbeatsInWindow` heartbeats, the counter decays to ~1% of its original value.
|
|
32
|
+
*
|
|
33
|
+
* @param heartbeatIntervalMs - Gossipsub heartbeat interval in milliseconds
|
|
34
|
+
* @param slotDurationMs - L2 slot duration in milliseconds
|
|
35
|
+
* @param decayWindowSlots - Number of slots over which to decay
|
|
36
|
+
* @returns Decay factor (0 < decay < 1), applied each heartbeat
|
|
37
|
+
*/ export function computeDecay(heartbeatIntervalMs, slotDurationMs, decayWindowSlots) {
|
|
38
|
+
const heartbeatsPerSlot = slotDurationMs / heartbeatIntervalMs;
|
|
39
|
+
const heartbeatsInWindow = heartbeatsPerSlot * decayWindowSlots;
|
|
40
|
+
// Decay to 1% over the window: decay^heartbeatsInWindow = 0.01
|
|
41
|
+
// decay = 0.01^(1/heartbeatsInWindow)
|
|
42
|
+
return Math.pow(0.01, 1 / heartbeatsInWindow);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Computes the steady-state convergence value for a decaying counter.
|
|
46
|
+
* If messages arrive at a constant rate and decay is applied each heartbeat,
|
|
47
|
+
* the counter converges to: rate / (1 - decay)
|
|
48
|
+
*
|
|
49
|
+
* @param messagesPerHeartbeat - Expected messages per heartbeat
|
|
50
|
+
* @param decay - Decay factor applied each heartbeat
|
|
51
|
+
* @returns Convergence value (steady-state counter value)
|
|
52
|
+
*/ export function computeConvergence(messagesPerHeartbeat, decay) {
|
|
53
|
+
return messagesPerHeartbeat / (1 - decay);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Computes a conservative threshold for mesh message deliveries.
|
|
57
|
+
* The threshold should be low enough to avoid penalizing honest peers with normal variance.
|
|
58
|
+
*
|
|
59
|
+
* @param convergence - Steady-state counter value
|
|
60
|
+
* @param conservativeFactor - Fraction of convergence to use as threshold (e.g., 0.3)
|
|
61
|
+
* @returns Threshold value
|
|
62
|
+
*/ export function computeThreshold(convergence, conservativeFactor) {
|
|
63
|
+
return convergence * conservativeFactor;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Determines the effective expected block proposals per slot for scoring.
|
|
67
|
+
* Returns undefined if scoring should be disabled, or a positive number if enabled.
|
|
68
|
+
*
|
|
69
|
+
* @param blocksPerSlot - Number of blocks per slot from timetable
|
|
70
|
+
* @param expectedBlockProposalsPerSlot - Config override. 0 disables scoring, undefined falls back to blocksPerSlot - 1.
|
|
71
|
+
* @returns Positive number of expected block proposals, or undefined if scoring is disabled
|
|
72
|
+
*/ export function getEffectiveBlockProposalsPerSlot(blocksPerSlot, expectedBlockProposalsPerSlot) {
|
|
73
|
+
if (expectedBlockProposalsPerSlot !== undefined) {
|
|
74
|
+
return expectedBlockProposalsPerSlot > 0 ? expectedBlockProposalsPerSlot : undefined;
|
|
75
|
+
}
|
|
76
|
+
// Fallback: In MBPS mode, N-1 block proposals per slot (last one bundled with checkpoint)
|
|
77
|
+
// In single block mode (blocksPerSlot=1), this is 0 → disabled
|
|
78
|
+
const fallback = Math.max(0, blocksPerSlot - 1);
|
|
79
|
+
return fallback > 0 ? fallback : undefined;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Gets the expected messages per slot for a given topic type.
|
|
83
|
+
*
|
|
84
|
+
* @param topicType - The topic type
|
|
85
|
+
* @param targetCommitteeSize - Target committee size
|
|
86
|
+
* @param blocksPerSlot - Number of blocks per slot
|
|
87
|
+
* @param expectedBlockProposalsPerSlot - Override for block proposals. 0 disables scoring, undefined falls back to blocksPerSlot - 1.
|
|
88
|
+
* @returns Expected messages per slot, or undefined if unpredictable
|
|
89
|
+
*/ export function getExpectedMessagesPerSlot(topicType, targetCommitteeSize, blocksPerSlot, expectedBlockProposalsPerSlot) {
|
|
90
|
+
switch(topicType){
|
|
91
|
+
case TopicType.tx:
|
|
92
|
+
// Transactions are unpredictable - disable mesh message delivery scoring
|
|
93
|
+
return undefined;
|
|
94
|
+
case TopicType.block_proposal:
|
|
95
|
+
return getEffectiveBlockProposalsPerSlot(blocksPerSlot, expectedBlockProposalsPerSlot);
|
|
96
|
+
case TopicType.checkpoint_proposal:
|
|
97
|
+
// Exactly 1 checkpoint proposal per slot
|
|
98
|
+
return 1;
|
|
99
|
+
case TopicType.checkpoint_attestation:
|
|
100
|
+
// Each committee member sends one attestation per slot
|
|
101
|
+
return targetCommitteeSize;
|
|
102
|
+
default:
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/** Conservative factor for threshold calculation (30% of convergence) */ const CONSERVATIVE_FACTOR = 0.3;
|
|
107
|
+
/** Number of slots over which invalid message penalty decays */ const INVALID_DECAY_WINDOW_SLOTS = 4;
|
|
108
|
+
/** Weight for invalid message deliveries penalty */ const INVALID_MESSAGE_WEIGHT = -20;
|
|
109
|
+
/** Mesh message deliveries window in milliseconds (5 seconds - balanced for TypeScript runtime) */ const MESH_DELIVERIES_WINDOW_MS = 5000;
|
|
110
|
+
/**
|
|
111
|
+
* Multiplier for activation time to provide extra grace period during network bootstrap.
|
|
112
|
+
* The activation timer starts from mesh join time, not from first message received.
|
|
113
|
+
* During bootstrap, peers may join before messages start flowing, so we need extra time.
|
|
114
|
+
*/ const ACTIVATION_MULTIPLIER = 5;
|
|
115
|
+
// ============================================================================
|
|
116
|
+
// P1 (timeInMesh) Configuration
|
|
117
|
+
// ============================================================================
|
|
118
|
+
// P1 rewards peers for time spent in the mesh. Following Lodestar's approach,
|
|
119
|
+
// we normalize the score so that max P1 = MAX_P1_SCORE after P1_CAP_TIME_SECONDS.
|
|
120
|
+
//
|
|
121
|
+
// Formula: P1 = min(timeInMesh / quantum, cap) * weight
|
|
122
|
+
// - quantum = slotDurationMs (one increment per slot worth of time)
|
|
123
|
+
// - cap = P1_CAP_TIME_SECONDS / slotSeconds (number of slots to reach cap)
|
|
124
|
+
// - weight = MAX_P1_SCORE / cap
|
|
125
|
+
//
|
|
126
|
+
// This ensures: max P1 = cap * weight = MAX_P1_SCORE
|
|
127
|
+
/** Maximum P1 score contribution per topic */ export const MAX_P1_SCORE = 8;
|
|
128
|
+
/** Time in seconds to reach P1 cap (1 hour) */ const P1_CAP_TIME_SECONDS = 3600;
|
|
129
|
+
// ============================================================================
|
|
130
|
+
// P2 (firstMessageDeliveries) Configuration
|
|
131
|
+
// ============================================================================
|
|
132
|
+
// P2 rewards peers who deliver messages first. We normalize so max P2 = MAX_P2_SCORE.
|
|
133
|
+
// P2 uses a decaying counter, so we set the cap based on convergence and scale the weight.
|
|
134
|
+
//
|
|
135
|
+
// Formula: P2 = min(firstMessageDeliveries, cap) * weight
|
|
136
|
+
// - cap = convergence value for first deliveries
|
|
137
|
+
// - weight = MAX_P2_SCORE / cap
|
|
138
|
+
/** Maximum P2 score contribution per topic */ export const MAX_P2_SCORE = 25;
|
|
139
|
+
/** Decay window for first message deliveries in slots (fast decay) */ const P2_DECAY_WINDOW_SLOTS = 2;
|
|
140
|
+
// ============================================================================
|
|
141
|
+
// P3 (meshMessageDeliveries) Configuration
|
|
142
|
+
// ============================================================================
|
|
143
|
+
// P3 penalizes peers who under-deliver messages. For a peer to be pruned from
|
|
144
|
+
// the mesh, their topic score must be negative: P1 + P2 + P3 < 0
|
|
145
|
+
//
|
|
146
|
+
// Therefore, P3 max penalty must exceed (P1 + P2) to cause pruning:
|
|
147
|
+
// |P3| > P1 + P2
|
|
148
|
+
// |P3| > 8 + 25 = 33
|
|
149
|
+
//
|
|
150
|
+
// We set P3 max = -34 per topic (slightly more than P1+P2) to ensure pruning.
|
|
151
|
+
// The number of P3-enabled topics depends on config: by default 2 (checkpoint_proposal +
|
|
152
|
+
// checkpoint_attestation), or 3 if block proposal scoring is enabled via
|
|
153
|
+
// expectedBlockProposalsPerSlot. Total P3b after pruning = -68 (2 topics) or -102 (3 topics).
|
|
154
|
+
//
|
|
155
|
+
// With appSpecificWeight=10, ~20 HighTolerance errors (-40 app score) plus max P3b (-68 or -102)
|
|
156
|
+
// would not cross gossipThreshold (-500). This keeps non-contributors from being disconnected
|
|
157
|
+
// unless they also accrue app-level penalties.
|
|
158
|
+
//
|
|
159
|
+
// The weight formula ensures max penalty equals MAX_P3_PENALTY_PER_TOPIC:
|
|
160
|
+
// weight = MAX_P3_PENALTY_PER_TOPIC / threshold²
|
|
161
|
+
// When deficit = threshold: penalty = threshold² * weight = MAX_P3_PENALTY_PER_TOPIC
|
|
162
|
+
/** Maximum P3 penalty per topic (must exceed P1 + P2 to cause pruning) */ export const MAX_P3_PENALTY_PER_TOPIC = -(MAX_P1_SCORE + MAX_P2_SCORE + 1); // -34
|
|
163
|
+
/**
|
|
164
|
+
* Factory class for creating gossipsub topic scoring parameters.
|
|
165
|
+
* Computes shared values once and reuses them across all topics.
|
|
166
|
+
*/ export class TopicScoreParamsFactory {
|
|
167
|
+
params;
|
|
168
|
+
/** Number of blocks per slot based on timetable configuration */ blocksPerSlot;
|
|
169
|
+
/** Decay factor for invalid message penalties (P4) */ invalidDecay;
|
|
170
|
+
/** Number of heartbeats per slot */ heartbeatsPerSlot;
|
|
171
|
+
/** P1: Time in mesh quantum (slot duration in ms - score increases by ~1 per slot) */ timeInMeshQuantum;
|
|
172
|
+
/** P1: Time in mesh cap (number of slots to reach max score) */ timeInMeshCap;
|
|
173
|
+
/** P1: Time in mesh weight (normalized so max P1 = MAX_P1_SCORE) */ timeInMeshWeight;
|
|
174
|
+
/** P2: First message deliveries decay factor */ firstMessageDeliveriesDecay;
|
|
175
|
+
/** P2: First message deliveries cap (convergence-based) */ firstMessageDeliveriesCap;
|
|
176
|
+
/** P2: First message deliveries weight (normalized so max P2 = MAX_P2_SCORE) */ firstMessageDeliveriesWeight;
|
|
177
|
+
/** Base parameters common to all topics */ baseParams;
|
|
178
|
+
constructor(params){
|
|
179
|
+
this.params = params;
|
|
180
|
+
const { slotDurationMs, heartbeatIntervalMs, blockDurationMs } = params;
|
|
181
|
+
// Compute values that are the same for all topics
|
|
182
|
+
this.blocksPerSlot = calculateBlocksPerSlot(slotDurationMs, blockDurationMs);
|
|
183
|
+
this.heartbeatsPerSlot = slotDurationMs / heartbeatIntervalMs;
|
|
184
|
+
this.invalidDecay = computeDecay(heartbeatIntervalMs, slotDurationMs, INVALID_DECAY_WINDOW_SLOTS);
|
|
185
|
+
// P1: timeInMesh - Lodestar style slot-based normalization
|
|
186
|
+
// quantum = slot duration, so score increases by ~1 per slot of mesh membership
|
|
187
|
+
// cap = number of slots in P1_CAP_TIME_SECONDS (1 hour)
|
|
188
|
+
// weight = MAX_P1_SCORE / cap, so max P1 = cap * weight = MAX_P1_SCORE
|
|
189
|
+
const slotDurationSeconds = slotDurationMs / 1000;
|
|
190
|
+
this.timeInMeshQuantum = slotDurationMs;
|
|
191
|
+
this.timeInMeshCap = P1_CAP_TIME_SECONDS / slotDurationSeconds;
|
|
192
|
+
this.timeInMeshWeight = MAX_P1_SCORE / this.timeInMeshCap;
|
|
193
|
+
// P2: firstMessageDeliveries - convergence-based cap with normalized weight
|
|
194
|
+
// Uses fast decay (2 slots) so it rewards recent first deliveries
|
|
195
|
+
// cap = convergence at 1 first delivery per heartbeat (theoretical max rate)
|
|
196
|
+
// weight = MAX_P2_SCORE / cap, so max P2 = cap * weight = MAX_P2_SCORE
|
|
197
|
+
this.firstMessageDeliveriesDecay = computeDecay(heartbeatIntervalMs, slotDurationMs, P2_DECAY_WINDOW_SLOTS);
|
|
198
|
+
// Convergence for 1 message per heartbeat (generous estimate for first deliveries)
|
|
199
|
+
this.firstMessageDeliveriesCap = computeConvergence(1, this.firstMessageDeliveriesDecay);
|
|
200
|
+
this.firstMessageDeliveriesWeight = MAX_P2_SCORE / this.firstMessageDeliveriesCap;
|
|
201
|
+
// Base params are identical for all topics
|
|
202
|
+
this.baseParams = {
|
|
203
|
+
topicWeight: 1,
|
|
204
|
+
invalidMessageDeliveriesWeight: INVALID_MESSAGE_WEIGHT,
|
|
205
|
+
invalidMessageDeliveriesDecay: this.invalidDecay,
|
|
206
|
+
// P1: timeInMesh (same for all topics)
|
|
207
|
+
timeInMeshQuantum: this.timeInMeshQuantum,
|
|
208
|
+
timeInMeshCap: this.timeInMeshCap,
|
|
209
|
+
timeInMeshWeight: this.timeInMeshWeight,
|
|
210
|
+
// P2: firstMessageDeliveries (same for all topics)
|
|
211
|
+
firstMessageDeliveriesDecay: this.firstMessageDeliveriesDecay,
|
|
212
|
+
firstMessageDeliveriesCap: this.firstMessageDeliveriesCap,
|
|
213
|
+
firstMessageDeliveriesWeight: this.firstMessageDeliveriesWeight
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Creates scoring parameters for topics with unpredictable or zero message rates.
|
|
218
|
+
* Disables P1, P2, P3, and P3b to avoid unbalanced positive score accumulation.
|
|
219
|
+
*
|
|
220
|
+
* Rationale: If P1/P2 were enabled without P3, the topic would contribute free
|
|
221
|
+
* positive scores that could offset penalties from other topics, preventing
|
|
222
|
+
* proper mesh pruning of non-contributing peers.
|
|
223
|
+
*/ createDisabledP3Params() {
|
|
224
|
+
return createTopicScoreParams({
|
|
225
|
+
topicWeight: 1,
|
|
226
|
+
// P1: timeInMesh - disabled (no free positive scores)
|
|
227
|
+
timeInMeshQuantum: 1,
|
|
228
|
+
timeInMeshCap: 0,
|
|
229
|
+
timeInMeshWeight: 0,
|
|
230
|
+
// P2: firstMessageDeliveries - disabled
|
|
231
|
+
firstMessageDeliveriesDecay: 0.5,
|
|
232
|
+
firstMessageDeliveriesCap: 0,
|
|
233
|
+
firstMessageDeliveriesWeight: 0,
|
|
234
|
+
// P3: meshMessageDeliveries - disabled
|
|
235
|
+
meshMessageDeliveriesWeight: 0,
|
|
236
|
+
meshMessageDeliveriesDecay: 0.5,
|
|
237
|
+
meshMessageDeliveriesThreshold: 0,
|
|
238
|
+
meshMessageDeliveriesWindow: 0,
|
|
239
|
+
meshMessageDeliveriesActivation: 0,
|
|
240
|
+
meshMessageDeliveriesCap: 0,
|
|
241
|
+
// P3b: meshFailurePenalty - disabled
|
|
242
|
+
meshFailurePenaltyWeight: 0,
|
|
243
|
+
meshFailurePenaltyDecay: 0.5,
|
|
244
|
+
// P4: invalidMessageDeliveries - still enabled for attack detection
|
|
245
|
+
invalidMessageDeliveriesWeight: INVALID_MESSAGE_WEIGHT,
|
|
246
|
+
invalidMessageDeliveriesDecay: this.invalidDecay
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Creates scoring parameters for topics with predictable message rates.
|
|
251
|
+
* Enables P1, P2, P3, and P3b for balanced scoring.
|
|
252
|
+
*
|
|
253
|
+
* The scoring is designed so that:
|
|
254
|
+
* - P1 + P2 max = 8 + 25 = 33 (positive rewards for good behavior)
|
|
255
|
+
* - P3 max = -34 (penalty exceeds P1+P2 to ensure pruning of non-contributors)
|
|
256
|
+
* - After pruning: P1 resets, P2 decays, P3b persists with slow decay
|
|
257
|
+
*
|
|
258
|
+
* @param expectedPerSlot - Expected messages per slot
|
|
259
|
+
*/ createEnabledP3Params(expectedPerSlot) {
|
|
260
|
+
const { slotDurationMs, heartbeatIntervalMs } = this.params;
|
|
261
|
+
// Calculate decay based on message frequency
|
|
262
|
+
const decayWindowSlots = getDecayWindowSlots(expectedPerSlot);
|
|
263
|
+
const decay = computeDecay(heartbeatIntervalMs, slotDurationMs, decayWindowSlots);
|
|
264
|
+
// Calculate convergence and threshold
|
|
265
|
+
const messagesPerHeartbeat = expectedPerSlot / this.heartbeatsPerSlot;
|
|
266
|
+
const convergence = computeConvergence(messagesPerHeartbeat, decay);
|
|
267
|
+
const threshold = computeThreshold(convergence, CONSERVATIVE_FACTOR);
|
|
268
|
+
// Cap factor: higher for high-volume topics
|
|
269
|
+
const capFactor = expectedPerSlot > 10 ? 8 : 4;
|
|
270
|
+
// P3 Weight: scaled so max penalty = MAX_P3_PENALTY_PER_TOPIC (-34)
|
|
271
|
+
// When deficit = threshold (peer delivers nothing):
|
|
272
|
+
// penalty = deficit² × weight = threshold² × (MAX_P3_PENALTY_PER_TOPIC / threshold²) = MAX_P3_PENALTY_PER_TOPIC
|
|
273
|
+
const meshDeliveriesWeight = threshold > 0 ? MAX_P3_PENALTY_PER_TOPIC / (threshold * threshold) : 0;
|
|
274
|
+
// Activation time: use the decay window multiplied by ACTIVATION_MULTIPLIER for extra grace
|
|
275
|
+
// during network bootstrap. The timer starts from mesh join time, not from first message,
|
|
276
|
+
// so peers joining before messages flow need extra time to accumulate counter values.
|
|
277
|
+
const activationMs = slotDurationMs * decayWindowSlots * ACTIVATION_MULTIPLIER;
|
|
278
|
+
return createTopicScoreParams({
|
|
279
|
+
...this.baseParams,
|
|
280
|
+
// P3: meshMessageDeliveries
|
|
281
|
+
meshMessageDeliveriesWeight: meshDeliveriesWeight,
|
|
282
|
+
meshMessageDeliveriesDecay: decay,
|
|
283
|
+
meshMessageDeliveriesThreshold: threshold,
|
|
284
|
+
meshMessageDeliveriesWindow: MESH_DELIVERIES_WINDOW_MS,
|
|
285
|
+
meshMessageDeliveriesActivation: activationMs,
|
|
286
|
+
meshMessageDeliveriesCap: Math.max(threshold * capFactor, 2),
|
|
287
|
+
// P3b: meshFailurePenalty (same weight and decay as P3)
|
|
288
|
+
meshFailurePenaltyWeight: meshDeliveriesWeight,
|
|
289
|
+
meshFailurePenaltyDecay: decay
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
/** Number of topics with P3 enabled, computed from config. Always 2 (checkpoint_proposal + checkpoint_attestation) plus optionally block_proposal. */ get numP3EnabledTopics() {
|
|
293
|
+
const blockProposalP3Enabled = getEffectiveBlockProposalsPerSlot(this.blocksPerSlot, this.params.expectedBlockProposalsPerSlot) !== undefined;
|
|
294
|
+
return blockProposalP3Enabled ? 3 : 2;
|
|
295
|
+
}
|
|
296
|
+
/** Total maximum P3b penalty across all topics after pruning, computed from config */ get totalMaxP3bPenalty() {
|
|
297
|
+
return MAX_P3_PENALTY_PER_TOPIC * this.numP3EnabledTopics;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Creates topic score parameters for a specific topic type.
|
|
301
|
+
*
|
|
302
|
+
* @param topicType - The topic type
|
|
303
|
+
* @returns TopicScoreParams for the topic
|
|
304
|
+
*/ createForTopic(topicType) {
|
|
305
|
+
const expectedPerSlot = getExpectedMessagesPerSlot(topicType, this.params.targetCommitteeSize, this.blocksPerSlot, this.params.expectedBlockProposalsPerSlot);
|
|
306
|
+
// For unpredictable topics (tx) or topics with 0 expected messages, disable P3/P3b
|
|
307
|
+
if (expectedPerSlot === undefined || expectedPerSlot === 0) {
|
|
308
|
+
return this.createDisabledP3Params();
|
|
309
|
+
}
|
|
310
|
+
return this.createEnabledP3Params(expectedPerSlot);
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Creates all topic score parameters for gossipsub configuration.
|
|
314
|
+
*
|
|
315
|
+
* @param protocolVersion - Protocol version string for topic naming
|
|
316
|
+
* @returns Record mapping topic strings to their score parameters
|
|
317
|
+
*/ createAll(protocolVersion) {
|
|
318
|
+
const topics = {};
|
|
319
|
+
for (const topicType of Object.values(TopicType)){
|
|
320
|
+
const topicString = createTopicString(topicType, protocolVersion);
|
|
321
|
+
topics[topicString] = this.createForTopic(topicType);
|
|
322
|
+
}
|
|
323
|
+
return topics;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Creates topic score parameters for a specific topic type.
|
|
328
|
+
* Convenience function that creates a factory internally.
|
|
329
|
+
*
|
|
330
|
+
* @param topicType - The topic type
|
|
331
|
+
* @param params - Network parameters for scoring calculation
|
|
332
|
+
* @returns TopicScoreParams for the topic
|
|
333
|
+
*/ export function createTopicScoreParamsForTopic(topicType, params) {
|
|
334
|
+
const factory = new TopicScoreParamsFactory(params);
|
|
335
|
+
return factory.createForTopic(topicType);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Creates all topic score parameters for gossipsub configuration.
|
|
339
|
+
*
|
|
340
|
+
* @param protocolVersion - Protocol version string for topic naming
|
|
341
|
+
* @param params - Network parameters for scoring calculation
|
|
342
|
+
* @returns Record mapping topic strings to their score parameters
|
|
343
|
+
*/ export function createAllTopicScoreParams(protocolVersion, params) {
|
|
344
|
+
const factory = new TopicScoreParamsFactory(params);
|
|
345
|
+
return factory.createAll(protocolVersion);
|
|
346
|
+
}
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
import type { EpochCacheInterface } from '@aztec/epoch-cache';
|
|
2
|
+
import { BlockNumber, type SlotNumber } from '@aztec/foundation/branded-types';
|
|
3
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
2
4
|
import { type Logger } from '@aztec/foundation/log';
|
|
3
5
|
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
4
|
-
import type { EthAddress, L2BlockSource } from '@aztec/stdlib/block';
|
|
6
|
+
import type { EthAddress, L2Block, L2BlockSource } from '@aztec/stdlib/block';
|
|
5
7
|
import type { ContractDataSource } from '@aztec/stdlib/contract';
|
|
6
8
|
import type { ClientProtocolCircuitVerifier, PeerInfo, WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
|
|
7
|
-
import { BlockProposal, CheckpointAttestation, CheckpointProposal, type Gossipable, P2PClientType, type ValidationResult as P2PValidationResult, TopicType } from '@aztec/stdlib/p2p';
|
|
8
|
-
import { Tx } from '@aztec/stdlib/tx';
|
|
9
|
+
import { BlockProposal, CheckpointAttestation, CheckpointProposal, type CheckpointProposalCore, type Gossipable, P2PClientType, type ValidationResult as P2PValidationResult, TopicType } from '@aztec/stdlib/p2p';
|
|
10
|
+
import { Tx, type TxValidator } from '@aztec/stdlib/tx';
|
|
11
|
+
import type { UInt64 } from '@aztec/stdlib/types';
|
|
9
12
|
import { type TelemetryClient, WithTracer } from '@aztec/telemetry-client';
|
|
10
13
|
import { type Message, type PeerId, TopicValidatorResult } from '@libp2p/interface';
|
|
11
14
|
import { ENR } from '@nethermindeth/enr';
|
|
12
15
|
import type { P2PConfig } from '../../config.js';
|
|
13
|
-
import type { MemPools } from '../../mem_pools/
|
|
16
|
+
import type { MemPools } from '../../mem_pools/interface.js';
|
|
17
|
+
import { type TransactionValidator } from '../../msg_validators/tx_validator/factory.js';
|
|
14
18
|
import { type PubSubLibp2p } from '../../util.js';
|
|
15
19
|
import type { PeerManagerInterface } from '../peer-manager/interface.js';
|
|
16
20
|
import type { BatchTxRequesterLibP2PService } from '../reqresp/batch-tx-requester/interface.js';
|
|
17
21
|
import type { P2PReqRespConfig } from '../reqresp/config.js';
|
|
18
|
-
import { type ReqRespInterface, type ReqRespResponse, ReqRespSubProtocol, type ReqRespSubProtocolHandler, type ReqRespSubProtocolValidators, type SubProtocolMap } from '../reqresp/index.js';
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
type ReceivedMessageValidationResult<T> = {
|
|
22
|
+
import { AuthRequest, BlockTxsRequest, BlockTxsResponse, type ReqRespInterface, type ReqRespResponse, ReqRespSubProtocol, type ReqRespSubProtocolHandler, type ReqRespSubProtocolValidators, StatusMessage, type SubProtocolMap } from '../reqresp/index.js';
|
|
23
|
+
import type { P2PBlockReceivedCallback, P2PCheckpointReceivedCallback, P2PDuplicateAttestationCallback, P2PService, PeerDiscoveryService } from '../service.js';
|
|
24
|
+
type ReceivedMessageValidationResult<T, M = undefined> = {
|
|
22
25
|
obj: T;
|
|
23
26
|
result: Exclude<TopicValidatorResult, TopicValidatorResult.Reject>;
|
|
27
|
+
metadata?: M;
|
|
24
28
|
} | {
|
|
25
|
-
obj?:
|
|
29
|
+
obj?: T;
|
|
26
30
|
result: TopicValidatorResult.Reject;
|
|
31
|
+
metadata?: M;
|
|
27
32
|
};
|
|
28
33
|
/**
|
|
29
34
|
* Lib P2P implementation of the P2PService interface.
|
|
@@ -34,9 +39,9 @@ export declare class LibP2PService<T extends P2PClientType = P2PClientType.Full>
|
|
|
34
39
|
protected node: PubSubLibp2p;
|
|
35
40
|
private peerDiscoveryService;
|
|
36
41
|
private reqresp;
|
|
37
|
-
|
|
42
|
+
protected peerManager: PeerManagerInterface;
|
|
38
43
|
protected mempools: MemPools;
|
|
39
|
-
|
|
44
|
+
protected archiver: L2BlockSource & ContractDataSource;
|
|
40
45
|
private epochCache;
|
|
41
46
|
private proofVerifier;
|
|
42
47
|
private worldStateSynchronizer;
|
|
@@ -48,6 +53,10 @@ export declare class LibP2PService<T extends P2PClientType = P2PClientType.Full>
|
|
|
48
53
|
private protocolVersion;
|
|
49
54
|
private topicStrings;
|
|
50
55
|
private feesCache;
|
|
56
|
+
/** Callback invoked when a duplicate proposal is detected (triggers slashing). */
|
|
57
|
+
private duplicateProposalCallback?;
|
|
58
|
+
/** Callback invoked when a duplicate attestation is detected (triggers slashing). */
|
|
59
|
+
private duplicateAttestationCallback?;
|
|
51
60
|
/**
|
|
52
61
|
* Callback for when a block is received from a peer.
|
|
53
62
|
* @param block - The block received from the peer.
|
|
@@ -96,6 +105,7 @@ export declare class LibP2PService<T extends P2PClientType = P2PClientType.Full>
|
|
|
96
105
|
addReqRespSubProtocol(subProtocol: ReqRespSubProtocol, handler: ReqRespSubProtocolHandler, validator?: ReqRespSubProtocolValidators[ReqRespSubProtocol]): Promise<void>;
|
|
97
106
|
registerThisValidatorAddresses(address: EthAddress[]): void;
|
|
98
107
|
getPeers(includePending?: boolean): PeerInfo[];
|
|
108
|
+
getGossipMeshPeerCount(topicType: TopicType): number;
|
|
99
109
|
private handleGossipSubEvent;
|
|
100
110
|
/**
|
|
101
111
|
* Send a batch of requests to peers, and return the responses
|
|
@@ -112,6 +122,21 @@ export declare class LibP2PService<T extends P2PClientType = P2PClientType.Full>
|
|
|
112
122
|
getEnr(): ENR | undefined;
|
|
113
123
|
registerBlockReceivedCallback(callback: P2PBlockReceivedCallback): void;
|
|
114
124
|
registerCheckpointReceivedCallback(callback: P2PCheckpointReceivedCallback): void;
|
|
125
|
+
/**
|
|
126
|
+
* Registers a callback to be invoked when a duplicate proposal is detected.
|
|
127
|
+
* This callback is triggered on the first duplicate (when count goes from 1 to 2).
|
|
128
|
+
*/
|
|
129
|
+
registerDuplicateProposalCallback(callback: (info: {
|
|
130
|
+
slot: SlotNumber;
|
|
131
|
+
proposer: EthAddress;
|
|
132
|
+
type: 'checkpoint' | 'block';
|
|
133
|
+
}) => void): void;
|
|
134
|
+
/**
|
|
135
|
+
* Registers a callback to be invoked when a duplicate attestation is detected.
|
|
136
|
+
* A validator signing attestations for different proposals at the same slot.
|
|
137
|
+
* This callback is triggered on the first duplicate (when count goes from 1 to 2).
|
|
138
|
+
*/
|
|
139
|
+
registerDuplicateAttestationCallback(callback: P2PDuplicateAttestationCallback): void;
|
|
115
140
|
/**
|
|
116
141
|
* Subscribes to a topic.
|
|
117
142
|
* @param topic - The topic to subscribe to.
|
|
@@ -141,31 +166,73 @@ export declare class LibP2PService<T extends P2PClientType = P2PClientType.Full>
|
|
|
141
166
|
* @param data - The message data
|
|
142
167
|
*/
|
|
143
168
|
protected handleNewGossipMessage(msg: Message, msgId: string, source: PeerId): Promise<void>;
|
|
144
|
-
protected validateReceivedMessage<T>(validationFunc: () => Promise<ReceivedMessageValidationResult<T>>, msgId: string, source: PeerId, topicType: TopicType): Promise<ReceivedMessageValidationResult<T>>;
|
|
169
|
+
protected validateReceivedMessage<T, M = undefined>(validationFunc: () => Promise<ReceivedMessageValidationResult<T, M>>, msgId: string, source: PeerId, topicType: TopicType): Promise<ReceivedMessageValidationResult<T, M>>;
|
|
145
170
|
protected handleGossipedTx(payloadData: Buffer, msgId: string, source: PeerId): Promise<void>;
|
|
146
171
|
private processCheckpointAttestationFromPeer;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
172
|
+
/** Validates a checkpoint attestation and adds it to the pool. Penalizes the peer if validation fails. */
|
|
173
|
+
protected validateAndStoreCheckpointAttestation(peerId: PeerId, attestation: CheckpointAttestation): Promise<ReceivedMessageValidationResult<CheckpointAttestation>>;
|
|
174
|
+
protected processBlockFromPeer(payloadData: Buffer, msgId: string, source: PeerId): Promise<void>;
|
|
175
|
+
/** Validates a block proposal. Triggers a penalization to the peer that sent it if invalid. Adds to the mempool if valid. */
|
|
176
|
+
protected validateAndStoreBlockProposal(peerId: PeerId, block: BlockProposal): Promise<ReceivedMessageValidationResult<BlockProposal, {
|
|
177
|
+
isEquivocated: boolean;
|
|
178
|
+
}>>;
|
|
179
|
+
protected processValidBlockProposal(block: BlockProposal, sender: PeerId): Promise<void>;
|
|
180
|
+
/**
|
|
181
|
+
* Handle a gossiped checkpoint proposal.
|
|
182
|
+
* Validates and processes the checkpoint proposal, then triggers the callback for attestation.
|
|
183
|
+
*/
|
|
184
|
+
protected handleGossipedCheckpointProposal(payloadData: Buffer, msgId: string, source: PeerId): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Validates a checkpoint proposal. Penalizes peer if validation fails. Adds the checkpoint and
|
|
187
|
+
* its last block (if present) to the mempool if valid. Triggers equivocation detection on both.
|
|
188
|
+
*/
|
|
189
|
+
protected validateAndStoreCheckpointProposal(peerId: PeerId, checkpoint: CheckpointProposal): Promise<ReceivedMessageValidationResult<CheckpointProposal, {
|
|
190
|
+
isEquivocated: boolean;
|
|
191
|
+
processBlock: boolean;
|
|
192
|
+
}>>;
|
|
193
|
+
/**
|
|
194
|
+
* Process a validated checkpoint proposal.
|
|
195
|
+
* Note: The proposal was already added to the pool by tryAddCheckpointProposal in handleGossipedCheckpointProposal.
|
|
196
|
+
*/
|
|
197
|
+
protected processValidCheckpointProposal(checkpoint: CheckpointProposalCore, sender: PeerId): Promise<void>;
|
|
151
198
|
/**
|
|
152
199
|
* Propagates provided message to peers.
|
|
153
200
|
* @param message - The message to propagate.
|
|
154
201
|
*/
|
|
155
202
|
propagate<T extends Gossipable>(message: T): Promise<void>;
|
|
156
|
-
|
|
203
|
+
/**
|
|
204
|
+
* Validate the requested block transactions. Allow partial returns.
|
|
205
|
+
* @param request - The block transactions request.
|
|
206
|
+
* @param response - The block transactions response.
|
|
207
|
+
* @param peerId - The ID of the peer that made the request.
|
|
208
|
+
* @returns True if the requested block transactions are valid, false otherwise.
|
|
209
|
+
*/
|
|
210
|
+
protected validateRequestedBlockTxs(request: BlockTxsRequest, response: BlockTxsResponse, peerId: PeerId): Promise<boolean>;
|
|
157
211
|
private validateRequestedTxs;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
212
|
+
/**
|
|
213
|
+
* Validates a BLOCK response.
|
|
214
|
+
*
|
|
215
|
+
* If a local copy exists, enforces hash equality. If missing, rejects (no penalty) since the hash cannot be verified.
|
|
216
|
+
* Penalizes on block number mismatch or hash mismatch.
|
|
217
|
+
*
|
|
218
|
+
* @param requestedBlockNumber - The requested block number.
|
|
219
|
+
* @param responseBlock - The block returned by the peer.
|
|
220
|
+
* @param peerId - The peer that returned the block.
|
|
221
|
+
* @returns True if the response is valid, false otherwise.
|
|
222
|
+
*/
|
|
223
|
+
protected validateRequestedBlock(requestedBlockNumber: Fr, responseBlock: L2Block, peerId: PeerId): Promise<boolean>;
|
|
224
|
+
protected validateRequestedTx(tx: Tx, peerId: PeerId, txValidator: TxValidator, requested?: Set<`0x${string}`>): Promise<void>;
|
|
225
|
+
protected createRequestedTxValidator(): TxValidator;
|
|
162
226
|
private getGasFees;
|
|
163
227
|
/**
|
|
164
228
|
* Get the BatchTxRequesterLibP2PService dependencies for creating BatchTxRequester instances
|
|
165
229
|
*/
|
|
166
230
|
getBatchTxRequesterService(): BatchTxRequesterLibP2PService;
|
|
167
|
-
|
|
168
|
-
|
|
231
|
+
validateTxsReceivedInBlockProposal(txs: Tx[]): Promise<void>;
|
|
232
|
+
/** Creates the first stage (fast) validators for gossiped transactions. */
|
|
233
|
+
protected createFirstStageMessageValidators(currentBlockNumber: BlockNumber, nextSlotTimestamp: UInt64): Promise<Record<string, TransactionValidator>>;
|
|
234
|
+
/** Creates the second stage (expensive proof verification) validators for gossiped transactions. */
|
|
235
|
+
protected createSecondStageMessageValidators(): Record<string, TransactionValidator>;
|
|
169
236
|
private runValidations;
|
|
170
237
|
private handleDoubleSpendFailure;
|
|
171
238
|
/**
|
|
@@ -175,24 +242,10 @@ export declare class LibP2PService<T extends P2PClientType = P2PClientType.Full>
|
|
|
175
242
|
* @returns True if the checkpoint attestation is valid, false otherwise.
|
|
176
243
|
*/
|
|
177
244
|
validateCheckpointAttestation(peerId: PeerId, attestation: CheckpointAttestation): Promise<P2PValidationResult>;
|
|
178
|
-
/**
|
|
179
|
-
* Validate a block proposal.
|
|
180
|
-
*
|
|
181
|
-
* @param block - The block proposal to validate.
|
|
182
|
-
* @returns True if the block proposal is valid, false otherwise.
|
|
183
|
-
*/
|
|
184
|
-
validateBlockProposal(peerId: PeerId, block: BlockProposal): Promise<P2PValidationResult>;
|
|
185
|
-
/**
|
|
186
|
-
* Validate a checkpoint proposal.
|
|
187
|
-
*
|
|
188
|
-
* @param checkpoint - The checkpoint proposal to validate.
|
|
189
|
-
* @returns True if the checkpoint proposal is valid, false otherwise.
|
|
190
|
-
*/
|
|
191
|
-
validateCheckpointProposal(peerId: PeerId, checkpoint: CheckpointProposal): Promise<P2PValidationResult>;
|
|
192
245
|
getPeerScore(peerId: PeerId): number;
|
|
193
246
|
handleAuthRequestFromPeer(authRequest: AuthRequest, peerId: PeerId): Promise<StatusMessage>;
|
|
194
247
|
private sendToPeers;
|
|
195
248
|
private stopLibP2P;
|
|
196
249
|
}
|
|
197
250
|
export {};
|
|
198
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
251
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicDJwX3NlcnZpY2UuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zZXJ2aWNlcy9saWJwMnAvbGlicDJwX3NlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUM5RCxPQUFPLEVBQUUsV0FBVyxFQUFFLEtBQUssVUFBVSxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDL0UsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGd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BQUUsTUFBTSxHQUFHLE1BQU0sQ0FFMUM7SUFFTSx5QkFBeUIsQ0FBQyxXQUFXLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUVqRztZQUVhLFdBQVc7WUFjWCxVQUFVO0NBWXpCIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libp2p_service.d.ts","sourceRoot":"","sources":["../../../src/services/libp2p/libp2p_service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"libp2p_service.d.ts","sourceRoot":"","sources":["../../../src/services/libp2p/libp2p_service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,MAAM,EAA6C,MAAM,uBAAuB,CAAC;AAG/F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACvH,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,aAAa,EAEb,KAAK,gBAAgB,IAAI,mBAAmB,EAE5C,SAAS,EAIV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,EAAE,EAAwC,KA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