From 76c5c7dbe6c7600f6879e08ef685177b76987bcc Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Mon, 16 Dec 2024 09:49:26 +0100 Subject: [PATCH] Fix storing claim_address --- lib/core/src/persist/chain.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/src/persist/chain.rs b/lib/core/src/persist/chain.rs index 0c4950c32..cec6ca00a 100644 --- a/lib/core/src/persist/chain.rs +++ b/lib/core/src/persist/chain.rs @@ -24,7 +24,6 @@ impl Persister { id, id_hash, direction, - claim_address, lockup_address, timeout_block_height, preimage, @@ -38,13 +37,12 @@ impl Persister { created_at, state ) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ON CONFLICT DO NOTHING", ( &chain_swap.id, &id_hash, &chain_swap.direction, - &chain_swap.claim_address, &chain_swap.lockup_address, &chain_swap.timeout_block_height, &chain_swap.preimage, @@ -69,6 +67,7 @@ impl Persister { accept_zero_conf = :accept_zero_conf, server_lockup_tx_id = :server_lockup_tx_id, user_lockup_tx_id = :user_lockup_tx_id, + claim_address = :claim_address, claim_tx_id = :claim_tx_id, refund_tx_id = :refund_tx_id, pair_fees_json = :pair_fees_json, @@ -83,6 +82,7 @@ impl Persister { ":accept_zero_conf": &chain_swap.accept_zero_conf, ":server_lockup_tx_id": &chain_swap.server_lockup_tx_id, ":user_lockup_tx_id": &chain_swap.user_lockup_tx_id, + ":claim_address": &chain_swap.claim_address, ":claim_tx_id": &chain_swap.claim_tx_id, ":refund_tx_id": &chain_swap.refund_tx_id, ":pair_fees_json": &chain_swap.pair_fees_json,