fix check for replay attack + revoke 1sec in the future
This commit is contained in:
parent
a3880e5377
commit
b1602a5020
5 changed files with 67 additions and 48 deletions
|
|
@ -257,10 +257,10 @@ let insert_global_fees =
|
|||
|
||||
let find_wire =
|
||||
let req =
|
||||
Caqti_type.(payto_uri ->? exchange_wire_account)
|
||||
Caqti_type.(payto_uri ->? t3 exchange_wire_account bool time)
|
||||
"SELECT payto_uri, conversion_url, debit_restrictions::TEXT, \
|
||||
credit_restrictions::TEXT, master_sig, bank_label, priority FROM \
|
||||
wire_accounts WHERE payto_uri=$1"
|
||||
credit_restrictions::TEXT, master_sig, bank_label, priority, is_active, \
|
||||
last_change FROM wire_accounts WHERE payto_uri=$1"
|
||||
in
|
||||
fun (module Conn : CONN) ~payto_uri -> Conn.find_opt req payto_uri
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue