B6: atomic UTXO reservation, bet signed by the worker and saved before broadcast, broadcast verdicts (BET-30..33)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2acd4ccd1c
commit
feff993584
25 files changed
+995
-53
No files matched your search
@@ -35,6 +35,8 @@ class LotteryConfig(models.Model):
|
||||
# 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
|
||||
# Network fee of the transactions built from now on, sat/vB (BET-04); a transaction in flight keeps its own.
|
||||
fee_rate_sat_vb = models.PositiveIntegerField(default=1)
|
||||
|
||||
# ADR-57: three distinct commands.
|
||||
pause_after_round = models.BooleanField(default=False)
|
||||
@@ -67,6 +69,9 @@ class LotteryConfig(models.Model):
|
||||
condition=Q(deposit_confirmations__gte=1, deposit_confirmations__lte=100),
|
||||
name="lottery_config_deposit_confirmations_range",
|
||||
),
|
||||
models.CheckConstraint(
|
||||
condition=Q(fee_rate_sat_vb__gte=1, fee_rate_sat_vb__lte=5000), name="lottery_config_fee_rate_range"
|
||||
),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user