mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Add timeout for db writes to avoid sqlite database locked error
This commit is contained in:
parent
d763da8493
commit
18d5cac16a
@ -15,6 +15,13 @@ HOST_NAME = ''
|
||||
# e.g. robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
|
||||
ONION_LOCATION = ''
|
||||
|
||||
# Link to robosats mainnet/testnet (shown on frontend in statsfornerds so users can switch mainnet/testnet)
|
||||
THE_OTHER_ROBOSATS = 'robosats-testnet/mainnet.onion'
|
||||
|
||||
# Lightning node open info, url to amboss and 1ML
|
||||
AMBOSS = ''
|
||||
ONEML = ''
|
||||
|
||||
# Trade fee in percentage %
|
||||
FEE = 0.002
|
||||
# Bond size in percentage %
|
||||
|
@ -86,6 +86,9 @@ DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
'OPTIONS': {
|
||||
'timeout': 20, # in seconds
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user