B5: real deposits on the ORM, Electrum scan with quorum and merkle proof, configurable threshold (DEP-20..23, ELC-31)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f1d09075a1
commit
2acd4ccd1c
21 files changed
+1223
-49
No files matched your search
@@ -31,6 +31,9 @@ class LotteryConfig(models.Model):
|
||||
round_duration_seconds = models.PositiveIntegerField(default=600)
|
||||
round_cooldown_seconds = models.PositiveIntegerField(default=30)
|
||||
draw_confirmations = models.PositiveSmallIntegerField(default=3)
|
||||
# DAT-62, DEP-21: confirmations a deposit needs before it is credited; read at every scan, so a change
|
||||
# applies at once to the credits that follow.
|
||||
deposit_confirmations = models.PositiveSmallIntegerField(default=6)
|
||||
max_round_pool_sats = models.BigIntegerField(default=0) # 0 = no cap
|
||||
|
||||
# ADR-57: three distinct commands.
|
||||
@@ -60,6 +63,10 @@ class LotteryConfig(models.Model):
|
||||
condition=Q(draw_confirmations__gte=1, draw_confirmations__lte=20),
|
||||
name="lottery_config_draw_confirmations_range",
|
||||
),
|
||||
models.CheckConstraint(
|
||||
condition=Q(deposit_confirmations__gte=1, deposit_confirmations__lte=100),
|
||||
name="lottery_config_deposit_confirmations_range",
|
||||
),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user