mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 00:54:22 +01:00
wallet: Fix a column access size mismatch when reading tx types
This commit is contained in:
committed by
neil saitug
parent
d840496e53
commit
55af02b163
@@ -2946,7 +2946,11 @@ bool wallet_transaction_type(struct wallet *w, const struct bitcoin_txid *txid,
|
||||
return false;
|
||||
}
|
||||
|
||||
*type = db_column_u64(stmt, 0);
|
||||
if (!db_column_is_null(stmt, 0))
|
||||
*type = db_column_u64(stmt, 0);
|
||||
else
|
||||
*type = 0;
|
||||
|
||||
tal_free(stmt);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user