Skip to content

Commit

Permalink
Merge pull request #199 from cryptosharks131/v1.5.1
Browse files Browse the repository at this point in the history
v1.5.1
  • Loading branch information
cryptosharks131 authored Feb 2, 2023
2 parents abc210b + 8f5c465 commit 210c2ee
Show file tree
Hide file tree
Showing 3 changed files with 267 additions and 232 deletions.
3 changes: 3 additions & 0 deletions gui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def home(request):
pending_force_closed = None
waiting_for_close = None
pending_open_balance = 0
pending_closing_balance = 0
if pending_channels.pending_open_channels:
target_resp = pending_channels.pending_open_channels
peers = Peers.objects.all()
Expand Down Expand Up @@ -142,10 +143,12 @@ def home(request):
target_resp = pending_channels.waiting_close_channels
waiting_for_close = []
for i in range(0,len(target_resp)):
pending_closing_balance += target_resp[i].limbo_balance
pending_item = {'remote_node_pub':target_resp[i].channel.remote_node_pub,'channel_point':target_resp[i].channel.channel_point,'capacity':target_resp[i].channel.capacity,'local_balance':target_resp[i].channel.local_balance,'remote_balance':target_resp[i].channel.remote_balance,'local_chan_reserve_sat':target_resp[i].channel.local_chan_reserve_sat,
'remote_chan_reserve_sat':target_resp[i].channel.remote_chan_reserve_sat,'initiator':target_resp[i].channel.initiator,'commitment_type':target_resp[i].channel.commitment_type, 'local_commit_fee_sat': target_resp[i].commitments.local_commit_fee_sat, 'limbo_balance':target_resp[i].limbo_balance,'closing_txid':target_resp[i].closing_txid}
pending_item.update(pending_channel_details(channels, target_resp[i].channel.channel_point))
waiting_for_close.append(pending_item)
limbo_balance -= pending_closing_balance
#Get recorded payment events
payments = Payments.objects.exclude(status=3)
#Get recorded invoice details
Expand Down
3 changes: 3 additions & 0 deletions initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def write_settings(node_ip, lnd_tls_path, lnd_macaroon_path, lnd_database_path,
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'data/db.sqlite3',
'OPTIONS': {
'timeout': 20,
},
}
}
Expand Down
Loading

0 comments on commit 210c2ee

Please sign in to comment.