Skip to content

Commit

Permalink
patch snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
Crispin LeLento committed Jan 27, 2025
1 parent 095d618 commit 6f6739e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/schema_account_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
"#
Expand Down

0 comments on commit 6f6739e

Please sign in to comment.