mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-08 10:27:23 +02:00
Fix: Bids in Request accepted state now timeout correctly.
This commit is contained in:
@@ -641,6 +641,7 @@ def canTimeoutBidState(state):
|
||||
BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_TX_SIGS,
|
||||
BidStates.XMR_SWAP_HAVE_SCRIPT_COIN_SPEND_TX,
|
||||
BidStates.XMR_SWAP_MSG_SCRIPT_LOCK_SPEND_TX,
|
||||
BidStates.BID_REQUEST_ACCEPTED,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ from typing import Optional
|
||||
|
||||
|
||||
CURRENT_DB_VERSION = 34
|
||||
CURRENT_DB_DATA_VERSION = 7
|
||||
CURRENT_DB_DATA_VERSION = 8
|
||||
|
||||
|
||||
class Concepts(IntEnum):
|
||||
|
||||
@@ -138,6 +138,14 @@ def upgradeDatabaseData(self, data_version):
|
||||
"state_id": int(state),
|
||||
},
|
||||
)
|
||||
if data_version > 0 and data_version < 8:
|
||||
cursor.execute(
|
||||
"UPDATE bidstates SET can_timeout = :can_timeout WHERE state_id = :state_id",
|
||||
{
|
||||
"can_timeout": 1,
|
||||
"state_id": int(BidStates.BID_REQUEST_ACCEPTED),
|
||||
},
|
||||
)
|
||||
if data_version > 0 and data_version < 4:
|
||||
for state in (
|
||||
BidStates.BID_REQUEST_SENT,
|
||||
|
||||
Reference in New Issue
Block a user