From 6f6739e35b9f2e71ae370c0915e8fcfff1e718f9 Mon Sep 17 00:00:00 2001 From: Crispin LeLento Date: Mon, 27 Jan 2025 16:52:05 -0500 Subject: [PATCH] patch snapshot test --- src/schema_account_state.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/schema_account_state.rs b/src/schema_account_state.rs index 50fec6b..f8fb0cb 100644 --- a/src/schema_account_state.rs +++ b/src/schema_account_state.rs @@ -93,19 +93,17 @@ MERGE (addr:Account {{address: tx.address}}) MERGE (snap:Snapshot {{ address: tx.address, balance: tx.balance, + epoch: tx.epoch, framework_version: tx.framework_version, version: tx.version, sequence_num: tx.sequence_num, - slow_locked: tx.slow_locked, + slow_unlocked: tx.slow_unlocked, slow_transfer: tx.slow_transfer, - donor_voice: tx.donor_voice + donor_voice: tx.donor_voice, + miner_height: coalesce(tx.miner_height, 0) }}) MERGE (addr)-[rel:State {{version: tx.version}}]->(snap) -WITH snap, tx -WHERE tx.miner_height > 0 -SET snap.miner_height = tx.miner_height - RETURN COUNT(snap) AS merged_snapshots "#