Websocket back-end server for Feather wallet
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
Go to file
tobtoht a33d241015
Merge pull request 'rpc_nodes: widen allowed heights' (#8) from tobtoht/feather-ws:widen_offsets into master
3 роки тому
data Fix nodes json 3 роки тому
fapi rpc_nodes: widen allowed heights 3 роки тому
utils Initial commit 4 роки тому
.gitignore Initial commit 4 роки тому
Dockerfile Await task HistoricalPriceTask._load() and adjust Dockerfile to expose 3 роки тому
LICENSE Initial commit 4 роки тому
README.md Feather-ws rewrite; 3 роки тому
asgi.py Feather-ws rewrite; 3 роки тому
docker-compose.yml Feather-ws rewrite; 3 роки тому
requirements.txt Feather-ws rewrite; 3 роки тому
run.py Feather-ws rewrite; 3 роки тому
settings.py_example Feather-ws rewrite; 3 роки тому

README.md

feather-ws

Back-end websocket server for Feather wallet.

  • Quart web framework, Py3 asyncio
  • Redis

Coins supported

  • Monero
  • Wownero

See also the environment variables FEATHER_COIN_NAME, FEATHER_COIN_SYMBOL, etc. in settings.py.

Tasks

This websocket server has several scheduled recurring tasks:

  • Fetch latest blockheight from various block explorers
  • Fetch crypto/fiat exchange rates
  • Fetch latest Reddit posts
  • Fetch funding proposals
  • Check status of RPC nodes (data/nodes.json)

When Feather wallet starts up, it will connect to this websocket server and receive the information listed above which is necessary for normal operation.

See fapi.tasks.* for the various tasks.

Development

Requires Python 3.7 and higher.

virtualenv -p /usr/bin/python3 venv
source venv/bin/activate
pip install -r requirements.txt

export FEATHER_DEBUG=true
python run.py

Note that run.py is meant as a development server. For production, use asgi.py with something like hypercorn.

Docker

In production you may run via docker;

docker-compose up

Will bind on http://127.0.0.1:1337. Modify docker-compose.yml if necessary.