To trigger a request synchronization request:
- Make sure docker installed
- Clone https://github.com/Baseledger/baseledger-lakewood.git
- Copy the blockchain_app folder from lakewood repo to root of this repo
- Navigate to repo root/ops/local folder
- Run ./run_blockchain.sh (WSL) or sudo sh run_blockchain.sh (Non root user on Linux)
- Make sure to follow manual steps in run-blockchain script to start 2 nodes and to fund second node account (check line with comment
start first node
,start second node
andsend tokens to second node address
) - Import 'proxy_app/misc/Baseledger Proxy v2.postman_collection.json' to postman
- Open 'create initial suggestion' request
- Fire away
Possible Problems when running on MacOS:
- exhausted ports:
- when getting the connect: cannot assign requested address text error while running starport
- try to extend the ports available on the mac by running the following two commands:
sudo sysctl -w net.inet.ip.portrange.first=32768
sudo sysctl -w net.inet.ip.portrange.hifirst=32768
- No such Container:
- when getting a no such Container error due to the name convention of docker-compose on macOS
- downgrade docker-compose from v2 to v1
- When using the Docker Desktop application it is possible to simply uncheck the "Use Docker Compose V2" in the preferences under general.
- .baseledger/config/config.toml no such file or directory
- when getting the .baseledger/config/config.toml no such file or directory error
- replace "~" with "/root" in the ops/local/run-blockchain.sh script