Find Ring Intersections
-
Run the
trim_ring_xmr_xmo.py
script that is located in thescripts/hardforks/monero-original
directory.python3 trim_ring_xmr_xmo.py
This script will replace the
fork_indices
column inxmr_xmo_keyimages
with the intersection of the transaction rings.Note: This script reads the Python dictionary mapping
(ring_amount, index)
pairs to the one-time addresses from the file calledxmr_xmo_addr.dat
. Ensure that this file is in the same directory as the script. -
You can query the number of transaction rings where the actual output being spent has been identified by running the following query in the
psql
shell.SELECT COUNT(*) FROM xmr_xmo_keyimages WHERE ARRAY_LENGTH(fork_indices,1) = 1 AND ARRAY_LENGTH(distinct_ring_indices, 1) <> 1 AND block_height <= 2530000;
The result of this query was 77121. Note that the query restricts the block height to 2530000.