-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
3,148 additions
and
1,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import multiprocessing | ||
import jobs, rebalancer, htlc_stream, p2p | ||
|
||
def run_task(task): | ||
task() | ||
|
||
def main(): | ||
tasks = [jobs.main, rebalancer.main, htlc_stream.main, p2p.main] | ||
print('Controller is starting...') | ||
|
||
processes = [] | ||
for task in tasks: | ||
process = multiprocessing.Process(target=run_task, args=(task,)) | ||
processes.append(process) | ||
process.start() | ||
|
||
for process in processes: | ||
process.join() | ||
|
||
print('Controller is stopping...') | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 4.2.6 on 2023-11-08 20:52 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gui', '0036_peers'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TradeSales', | ||
fields=[ | ||
('id', models.CharField(max_length=64, primary_key=True, serialize=False)), | ||
('creation_date', models.DateTimeField(default=django.utils.timezone.now)), | ||
('expiry', models.DateTimeField(null=True)), | ||
('description', models.CharField(max_length=100)), | ||
('price', models.BigIntegerField()), | ||
('sale_type', models.IntegerField()), | ||
('secret', models.CharField(max_length=1000, null=True)), | ||
('sale_limit', models.IntegerField(null=True)), | ||
('sale_count', models.IntegerField(default=0)), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.