Skip to content

Commit 340c446

Browse files
committed
utxo: Convert errors to utxo from transaction.
1 parent 0540c25 commit 340c446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ledger/utxo.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ impl Ledger {
1010
"INSERT INTO utxos (txid, vout) VALUES (?1, ?2)",
1111
params![utxo.txid.to_string(), utxo.vout],
1212
) {
13-
return Err(LedgerError::Transaction(format!(
13+
return Err(LedgerError::Utxo(format!(
1414
"Couldn't add utxo {:?} to ledger: {}",
1515
utxo, e
1616
)));
@@ -37,7 +37,7 @@ impl Ledger {
3737
"DELETE FROM utxos WHERE txid = ?1 AND vout = ?2",
3838
params![utxo.txid.to_string(), utxo.vout],
3939
) {
40-
return Err(LedgerError::Transaction(format!(
40+
return Err(LedgerError::Utxo(format!(
4141
"Couldn't remove utxo {:?} from ledger: {}",
4242
utxo, e
4343
)));

0 commit comments

Comments
 (0)