Skip to content

Commit

Permalink
process outgoing
Browse files Browse the repository at this point in the history
  • Loading branch information
spotty-banana committed Oct 11, 2013
1 parent a593441 commit 7645d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion django_bitcoin/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def send_to_wallet(self, otherWallet, amount, description=''):
changed=(amount), transaction=transaction)
return transaction

def send_to_address(self, address, amount, description='', expires_seconds=2):
def send_to_address(self, address, amount, description='', expires_seconds=settings.BITCOIN_OUTGOING_DEFAULT_DELAY_SECONDS):
if settings.BITCOIN_DISABLE_OUTGOING:
raise Exception("Outgoing transactions disabled! contact support.")
address = address.strip()
Expand Down
5 changes: 5 additions & 0 deletions django_bitcoin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@
settings,
"HISTORICALPRICES_FETCH_TIMESPAN_HOURS",
60)

BITCOIN_OUTGOING_DEFAULT_DELAY_SECONDS = getattr(
settings,
"BITCOIN_OUTGOING_DEFAULT_DELAY_SECONDS",
2)

0 comments on commit 7645d9c

Please sign in to comment.