Skip to content

Commit 618f2fa

Browse files
committed
ref(changeset): rename constant WALLET_OUTPOINT_LOCK_TABLE_NAME
1 parent 3113509 commit 618f2fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wallet/src/wallet/changeset.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl ChangeSet {
177177
/// Name of table to store wallet descriptors and network.
178178
pub const WALLET_TABLE_NAME: &'static str = "bdk_wallet";
179179
/// Name of table to store wallet locked outpoints.
180-
pub const WALLET_UTXO_LOCK_TABLE_NAME: &'static str = "bdk_wallet_locked_outpoints";
180+
pub const WALLET_OUTPOINT_LOCK_TABLE_NAME: &'static str = "bdk_wallet_locked_outpoints";
181181

182182
/// Get v0 sqlite [ChangeSet] schema
183183
pub fn schema_v0() -> alloc::string::String {
@@ -202,7 +202,7 @@ impl ChangeSet {
202202
expiration_height INTEGER, \
203203
PRIMARY KEY(txid, vout) \
204204
) STRICT;",
205-
Self::WALLET_UTXO_LOCK_TABLE_NAME,
205+
Self::WALLET_OUTPOINT_LOCK_TABLE_NAME,
206206
)
207207
}
208208

@@ -252,7 +252,7 @@ impl ChangeSet {
252252
// Select locked outpoints.
253253
let mut stmt = db_tx.prepare(&format!(
254254
"SELECT txid, vout, is_locked, expiration_height FROM {}",
255-
Self::WALLET_UTXO_LOCK_TABLE_NAME,
255+
Self::WALLET_OUTPOINT_LOCK_TABLE_NAME,
256256
))?;
257257
let rows = stmt.query_map([], |row| {
258258
Ok((
@@ -325,7 +325,7 @@ impl ChangeSet {
325325
// Insert locked outpoints.
326326
let mut stmt = db_tx.prepare_cached(&format!(
327327
"INSERT INTO {}(txid, vout, is_locked, expiration_height) VALUES(:txid, :vout, :is_locked, :expiration_height) ON CONFLICT DO UPDATE SET is_locked=:is_locked, expiration_height=:expiration_height",
328-
Self::WALLET_UTXO_LOCK_TABLE_NAME,
328+
Self::WALLET_OUTPOINT_LOCK_TABLE_NAME,
329329
))?;
330330
for (&outpoint, utxo_lock) in &self.locked_outpoints {
331331
let OutPoint { txid, vout } = outpoint;

0 commit comments

Comments
 (0)