mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-03 12:24:27 +01:00
Prevent wallet attempting to re-pay a cancelled invoice transaction (#707)
This commit is contained in:
@@ -680,6 +680,9 @@ where
|
||||
if t.tx_type == TxLogEntryType::TxSent {
|
||||
return Err(Error::TransactionAlreadyReceived(ret_slate.id.to_string()));
|
||||
}
|
||||
if t.tx_type == TxLogEntryType::TxSentCancelled {
|
||||
return Err(Error::TransactionWasCancelled(ret_slate.id.to_string()));
|
||||
}
|
||||
}
|
||||
|
||||
let height = w.w2n_client().get_chain_tip()?.0;
|
||||
|
||||
Reference in New Issue
Block a user