mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Use upsert rather than create in dlcsign in case we have seen the inputs before (#4248)
This commit is contained in:
parent
30a061e549
commit
a2587677c3
1 changed files with 2 additions and 2 deletions
|
@ -914,8 +914,8 @@ abstract class DLCWallet
|
|||
s"CET Signatures for tempContractId ${accept.tempContractId.hex} were valid, adding to database")
|
||||
|
||||
_ <- remoteTxDAO.upsertAll(acceptPrevTxs)
|
||||
inputAction = dlcInputsDAO.createAllAction(acceptInputs)
|
||||
sigsAction = dlcSigsDAO.createAllAction(sigsDbs)
|
||||
inputAction = dlcInputsDAO.upsertAllAction(acceptInputs)
|
||||
sigsAction = dlcSigsDAO.upsertAllAction(sigsDbs)
|
||||
_ <- safeDatabase.run(DBIO.sequence(Vector(inputAction, sigsAction)))
|
||||
_ <- dlcRefundSigDAO.upsert(refundSigsDb)
|
||||
_ <- dlcAcceptDAO.upsert(dlcAcceptDb)
|
||||
|
|
Loading…
Add table
Reference in a new issue