Chia-Network / chia-blockchain

Chia blockchain python implementation (full node, farmer, harvester, timelord, and wallet)
Apache License 2.0
10.83k stars 2.02k forks source link

CHIA-1465 Simplify double spend validation in validate_block_body #18628

Closed AmineKhaldi closed 5 days ago

AmineKhaldi commented 1 week ago

Purpose:

We only need to check the values. The keys are not needed.

Current Behavior:

We iterate through key value pairs in order to check for duplicate spends inside a block.

New Behavior:

We iterate through values in order to do that duplicate spends check.