Skip to content

won't start after esplora #10

Description

@decryp2kanon

version

commit 7c5ce87d226e623b913b0f4c03441534e22ed2b0
Author: volbil <volbilnexus@gmail.com>
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:rpcpassword@127.0.0.1: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
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions