forked from MicroBitcoinOrg/ApiServer
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
version
commit 7c5ce87d226e623b913b0f4c03441534e22ed2b0
Author: volbil <[email protected]>
Date: Fri Jun 5 19:10:22 2020 +0900
Fix spent info method
daemon (still syncing)
$HOME/sugarchain/src/sugarchaind -server=1 -rpcuser=rpcuser -rpcpassword=rpcpassword -testnet -txindex=1 -addressindex -spentindex -daemon
error
$ python3 app.py
Traceback (most recent call last):
File "app.py", line 1, in <module>
from server import config
File "/root/api-server/server/__init__.py", line 28, in <module>
from server import esplora
File "/root/api-server/server/esplora.py", line 101
return Response(f"start index must be a multipication of {config.tx_page}", mimetype="text/plain", status=400)
^
SyntaxError: invalid syntax
config (testnet)
$ cat config.py
rid = 'api-server'
cache = 3600 # Cache request for 1 hour
secret = 'PASSWORD'
endpoint = 'http://rpcuser:[email protected]:44229/' # Testnet5
host = '0.0.0.0'
port = 1234
debug = False
block_page = 10
tx_page = 25
whats missing in config?
Metadata
Metadata
Assignees
Labels
No labels