mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-22 19:49:20 +00:00
Add travis build status to readme.
Move templates dir. Add version to index. Remove bitcoin config from docker json config - extra coins can be enabled with prepare -addcoin.
This commit is contained in:
parent
267ff02d3f
commit
1ce87bb58d
9 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,7 @@
|
|||
|
||||
# Particl Atomic Swap - Proof of concept
|
||||
# Simple Atomic Swap Network - Proof of Concept
|
||||
|
||||
[![Build Status](https://travis-ci.org/tecnovert/basicswap.svg?branch=master)](https://travis-ci.org/tecnovert/basicswap)
|
||||
|
||||
## Overview
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ import sqlalchemy as sa
|
|||
from sqlalchemy.orm import sessionmaker, scoped_session
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from enum import IntEnum, auto
|
||||
|
||||
from . import __version__
|
||||
from .util import (
|
||||
COIN,
|
||||
|
@ -33,18 +34,15 @@ from .util import (
|
|||
toWIF,
|
||||
getKeyID,
|
||||
)
|
||||
|
||||
from .chainparams import (
|
||||
chainparams,
|
||||
Coins,
|
||||
)
|
||||
|
||||
from .messages_pb2 import (
|
||||
OfferMessage,
|
||||
BidMessage,
|
||||
BidAcceptMessage,
|
||||
)
|
||||
|
||||
import basicswap.config as cfg
|
||||
import basicswap.segwit_addr as segwit_addr
|
||||
|
||||
|
@ -132,7 +130,7 @@ ABS_LOCK_TIME = 4
|
|||
SEQUENCE_LOCKTIME_GRANULARITY = 9 # 512 seconds
|
||||
SEQUENCE_LOCKTIME_TYPE_FLAG = (1 << 22)
|
||||
SEQUENCE_LOCKTIME_MASK = 0x0000ffff
|
||||
INITIATE_TX_TIMEOUT = 30 * 60
|
||||
INITIATE_TX_TIMEOUT = 40 * 60 # TODO: make variable per coin
|
||||
|
||||
|
||||
def getOfferState(state):
|
||||
|
|
|
@ -15,6 +15,7 @@ import urllib.parse
|
|||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
|
||||
from . import __version__
|
||||
from .util import (
|
||||
COIN,
|
||||
format8,
|
||||
|
@ -35,7 +36,7 @@ from .basicswap import (
|
|||
ABS_LOCK_TIME,
|
||||
)
|
||||
|
||||
file_loader = FileSystemLoader('templates')
|
||||
file_loader = FileSystemLoader('basicswap/templates')
|
||||
env = Environment(loader=file_loader)
|
||||
|
||||
|
||||
|
@ -487,6 +488,7 @@ class HttpHandler(BaseHTTPRequestHandler):
|
|||
title=self.server.title,
|
||||
refresh=30,
|
||||
h2=self.server.title,
|
||||
version=__version__,
|
||||
summary=summary
|
||||
), 'UTF-8')
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
{% if refresh %}
|
||||
Page Refresh: {{ refresh }} seconds<br/>
|
||||
{% endif %}
|
||||
Version: {{ version }}
|
||||
</p>
|
||||
<p>
|
||||
<a href="/active">Swaps in progress: {{ summary.num_swapping }}</a><br/>
|
||||
<a href="/offers">Network Offers: {{ summary.num_network_offers }}</a><br/>
|
||||
<a href="/sentoffers">Sent Offers: {{ summary.num_sent_offers }}</a><br/>
|
|
@ -22,14 +22,6 @@
|
|||
"bindir": "/opt/bin/litecoin",
|
||||
"use_segwit": true,
|
||||
"blocks_confirmed": 2
|
||||
},
|
||||
"bitcoin": {
|
||||
"connection_type": "none",
|
||||
"manage_daemon": false,
|
||||
"rpcport": 19796,
|
||||
"datadir": "/coindata/bitcoin",
|
||||
"bindir": "/coindata/bin/bitcoin",
|
||||
"use_segwit": true
|
||||
}
|
||||
},
|
||||
"check_progress_seconds": 60,
|
||||
|
|
Loading…
Reference in a new issue