Skip to content

v1.23.1

Compare
Choose a tag to compare
@dillu24 dillu24 released this 10 Jul 13:19
· 40 commits to master since this release
363a5fc

Released on 10th July 2020

  • Included the --rpc-cors=all flag in the INSTALL_AND_RUN.md guide. Note: All nodes to be added to the API server must run with this flag.
  • Updated @polkadot/api and @polkadot/api-derive packages to v1.23.1.
  • Code refactoring.
  • All endpoints now clear the timers to avoid memory leaks.
  • Every endpoint will now return a Lost connection with node. error message whenever the Web socket connection is lost with the querying node.

To update to the latest release

First make sure that all the nodes which you are going to add to the API server are running with --rpc-cors=all flag.

Now, follow one of the guides below depending on whether you are running the API server from source or using docker.

From source

git pull
npm ci
# stop the older instance of the API Server
bash run_api.sh

Using Docker

docker ps
docker stop <CONTAINER ID of the older release of the API Server>
docker run -p 3000:3000 \
    -v <CONFIG_DIR>:/opt/polkadot_api_server/config:ro \
    -d simplyvc/polkadot_api_server:1.23.1