zulucrypto / docker-stellar-integration-test-network Goto Github PK
View Code? Open in Web Editor NEWStandalone network for running integration tests against Horizon
License: MIT License
Standalone network for running integration tests against Horizon
License: MIT License
@zulucrypto you might want to upgrade the container with a current Horizon release, which is 0.12.3.
See https://github.com/stellar/go/releases
Mind that the Friendbot is a separate service now, not a part of Horizon anymore.
First: Thanks for this Docker image!! You have opened the door for me to explore Stellar on my Mac!
Question: I am using the Javascript SDK, and attempting to connect to the instance on my machine.
EDIT: I solved my problem.I leave this information here for anyone who may be trying this Docker image and using the Javascript SDK. See my third post below for how I resolved.
I have begun this way:
sdk.Network.use(new sdk.Network('Integration Test Network ; zulucrypto'))
const server = new sdk.Server('http://localhost:8000')
The problem is that I get an error:
Error: Cannot connect to insecure horizon server
Now, this surprises me because the Horizon server is running insecure HTTP because I can access it via curl just fine:
curl -X GET http://localhost:8000/accounts/GAPSWEVEZVAOTW6AJM26NIVBITCKXNOMGBZAOPFTFDTJGKYCIIPVI4RJ
{
"_links": {
"self": {
"href": "http://localhost:8000/accounts/GAPSWEVEZVAOTW6AJM26NIVBITCKXNOMGBZAOPFTFDTJGKYCIIPVI4RJ"
},
Are you able to get the Java SDK to make connections to an insecure Horizon server?
Sometimes fixtures completes and some times it fails:
INFO exited: fixtures (exit status 22; not expected)
I can't tell why this is happening but restarting a few times I can usually get it to complete.
I had a lot of difficulties to set up my private network but it works now. However i spent lot of time trying to understand why the Horizon API can't find the accounts/transactions created in the "genesis block".
The answer was that the history started to ingest only at the 2nd ledger, so I had to use the command "horizon db rebase " to be able to have all the transactions/operations and accounts in the horizon database. Do not use the option "--newdb" before to do "horizon db rebase" or it will delete the genesis block from databases.
you might want to update the component versions:
Currently some Horizon endpoints (/trades
and /assets
) are not working.
Start script used version 9.4. Now same apt package changed to version 9.6.
Path PGING: /usr/lib/postgresql/9.4/bin compares /usr/lib/postgresql/9.6/bin
Can you update a part of Postgres script in master branch from 9.4 to 9.6?
Hello,
New version as following
ENV STELLAR_CORE_VERSION 9.2.0-551-7561c1d5
ENV HORIZON_VERSION 0.13.0
ENV BRIDGE_VERSION 0.0.31
The HORIZON download location was changed, so new downloaded path is:
wget -O horizon.tar.gz https://github.com/stellar/go/releases/download/horizon-v${HORIZON_VERSION}/horizon-v${HORIZON_VERSION}-linux-amd64.tar.gz
P.S is some one interested , i update existing running docker as following:
export STELLAR_CORE_VERSION=9.2.0-551-7561c1d5
Run update:
wget -O stellar-core.deb https://s3.amazonaws.com/stellar.org/releases/stellar-core/stellar-core-${STELLAR_CORE_VERSION}_amd64.deb \
&& dpkg -i stellar-core.deb \
&& rm stellar-core.deb \
export HORIZON_VERSION=0.13.0
Run update:
wget -O horizon.tar.gz https://github.com/stellar/go/releases/download/horizon-v${HORIZON_VERSION}/horizon-v${HORIZON_VERSION}-linux-amd64.tar.gz \
&& tar -zxvf horizon.tar.gz \
&& mv /horizon-v${HORIZON_VERSION}-linux-amd64/horizon /usr/local/bin \
&& chmod +x /usr/local/bin/horizon \
&& rm -rf horizon.tar.gz /horizon-v${HORIZON_VERSION}-linux-amd64 \
export BRIDGE_VERSION=0.0.31
Run update:
curl -L https://github.com/stellar/bridge-server/releases/download/v${BRIDGE_VERSION}/bridge-v${BRIDGE_VERSION}-linux-amd64.tar.gz \
| tar -xz -C /opt/stellar/bridge --strip-components=1 \
Hi Team,
I am getting below error for this command in private integration network:-
Command:-
curl http://localhost:8004?addr=GA56F3HTRQ5JALYN4C36J4LPV5LH2LXCGZOBB734LVJUVKSWMR7KUXVH
Error:-
time="2018-12-06T06:58:05.472Z" level=info msg="Finished request" bytes=325 duration=0.000893881 forwarded_ip= host="localhost:8000" ip=127.0.0.1 ip_port="127.0.0.1:40532" method=GET path="/accounts/GBH2M7PZBC6GK4Q4AQLMK3MZ4WKUJ73NYHBCW5VCYOSZTAJFB2QLRCKZ" pid=144 req="11e6173b4662/h7gxQ4pOlO-000016" route="/accounts/{account_id}/" status=404 streaming=false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.