This repo contains pastel-api, a server which simulates the real Pastel API. This is used for integration testing and testing at the development stage.
PASTEL_API_DEBUG=1 ./pastel-api --log-level debugPASTEL_API_DEBUG=1displays advanced log messages and stack of the errors.
We have to run each supernode on a different port. The range of ports must be within the range of extAddress in the json response masternode top. To achieve this, we use different config files, with different port settings.
SUPERNODE_DEBUG=1 LOAD_TFMODELS=0 ./supernode --log-level debug -c ./examples/configs/localnet-4444.yml
SUPERNODE_DEBUG=1 LOAD_TFMODELS=0 ./supernode --log-level debug -c ./examples/configs/localnet-4445.yml
SUPERNODE_DEBUG=1 LOAD_TFMODELS=0 ./supernode --log-level debug -c ./examples/configs/localnet-4446.ymlSUPERNODE_DEBUG=1displays advanced log messages and stack of the errors.LOAD_TFMODELS=0prevent loading tensorflow models.
WALLETNODE_DEBUG=1 ./walletnode --log-level debug -c ./examples/configs/localnet.yml --swaggerWALLETNODE_DEBUG=1displays advanced log messages and the stack of the errors.--swaggerenables REST API docs on the http://localhost:8080/swagger
-
masternode topReturns the result from the fileapi/services/fake/data/masternode_top.json. -
storagefee getnetworkfeeReturns the result from the fileapi/services/fake/data/storagefee_getnetworkfee.json. -
tickets list id mineReturns the result from the fileapi/services/fake/data/tickets_list_id_mine.json. -
masternode list-confFilters the result from the fileapi/services/fake/data/tickets_list_id_mine.jsonwithextPortusing the username from AuthBasic as the value. -
masternode statusFilters the result from the fileapi/services/fake/data/tickets_list_id_mine.jsonwithextPortusing the username from AuthBasic as the value. -
pastelid sign "text" "PastelID" "passphrase"Returns a hash ofPastelIDandtextas signature. -
pastelid verify "text" "signature" "PastelID"Returns true if a hash ofPastelIDandtextmatches thesignature.