bkolobara Sure thing,
bkolobara sure thing..
Here is my core configuration file:
PUBLIC_HTTP_PORT=true
LOG_FILE_PATH="/var/log/stellar/stellar-core.log"
# BUCKET_DIR_PATH (string) default "buckets"
# Specifies the directory where stellar-core should store the bucket list.
# This will get written to a lot and will grow as the size of the ledger grows.
BUCKET_DIR_PATH="/var/stellar/buckets"
NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
KNOWN_PEERS=[
"core-testnet1.stellar.org",
"core-testnet2.stellar.org",
"core-testnet3.stellar.org"]
DATABASE="postgresql://dbname=stellar host=192.168.1.42 user=stellar password=stellar123"
UNSAFE_QUORUM=true
FAILURE_SAFETY=1
CATCHUP_RECENT=8640
#The public keys of the Stellar testnet servers
[QUORUM_SET]
THRESHOLD_PERCENT=51 # rounded up -> 2 nodes out of 3
VALIDATORS=[
"GDKXE2OZMJIPOSLNA6N6F2BVCI3O777I2OOC4BV7VOYUEHYX7RTRYA7Y sdf1",
"GCUCJTIYXSOXKBSNFGNFWW5MUQ54HKRPGJUTQFJ5RQXZXNOLNXYDHRAP sdf2",
"GC2V2EFSXN6SQTWVYA5EPJPBWWIMSD2XQNKUOHGEKB535AQE2I6IXV2Z sdf3"]
[HISTORY.cache]
get="cp /opt/stellar/history-cache/{0} {1}"
#The history store of the Stellar testnet
[HISTORY.h1]
get="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_001/{0} -o {1}"
[HISTORY.h2]
get="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_002/{0} -o {1}"
[HISTORY.h3]
get="curl -sf http://history.stellar.org/prd/core-testnet/core_testnet_003/{0} -o {1}"
Here are some logs from my stellar core instance:
Nov 28 19:02:18 horizon horizon[66094]: time="2017-11-28T19:02:18-05:00" level=info msg="Starting request" host=horizon.sakotek.com ip="69.218.211.161:49068" method=GET path="/friendbot?addr=GDOLZTQAT7T2WG7T5ZGMWIJKFGOVXK3DZMQ7KJASFPQ62SUUM7GJDTEO" pid=66094 req="horizon/IMD8W6aDi4-000029"
Nov 28 19:02:18 horizon horizon[66094]: time="2017-11-28T19:02:18-05:00" level=error msg="friendbot account not found" pid=66094 req="horizon/IMD8W6aDi4-000029" stack=unknown
Nov 28 19:02:18 horizon horizon[66094]: time="2017-11-28T19:02:18-05:00" level=info msg="Finished request" bytes=492 duration=2.970181ms host=horizon.sakotek.com ip="69.218.211.161:49068" method=GET path="/friendbot?addr=GDOLZTQAT7T2WG7T5ZGMWIJKFGOVXK3DZMQ7KJASFPQ62SUUM7GJDTEO" pid=66094 req="horizon/IMD8W6aDi4-000029" status=500 streaming=false
Nov 28 19:15:05 horizon horizon[66094]: time="2017-11-28T19:15:05-05:00" level=info msg="Starting request" host=horizon.sakotek.com ip="69.218.211.161:49070" method=GET path="/accounts/GBW3EZBZKRERB4JUDWGQPIBGHKJ4XPOFG2VQ2WTFR4F7TYC5WS7F3XGR" pid=66094 req="horizon/IMD8W6aDi4-000030"
Nov 28 19:15:05 horizon horizon[66094]: time="2017-11-28T19:15:05-05:00" level=info msg="Finished request" bytes=368 duration=2.694871ms host=horizon.sakotek.com ip="69.218.211.161:49070" method=GET path="/accounts/GBW3EZBZKRERB4JUDWGQPIBGHKJ4XPOFG2VQ2WTFR4F7TYC5WS7F3XGR" pid=66094 req="horizon/IMD8W6aDi4-000030" status=404 streaming=false
Nov 28 19:15:05 horizon horizon[66094]: time="2017-11-28T19:15:05-05:00" level=info msg="Starting request" host=horizon.sakotek.com ip="69.218.211.161:49072" method=GET path="/accounts/GBW3EZBZKRERB4JUDWGQPIBGHKJ4XPOFG2VQ2WTFR4F7TYC5WS7F3XGR" pid=66094 req="horizon/IMD8W6aDi4-000031"
My horizon endpoint is actually exposed, it can be hit using this url https://horizon.sakotek.com. I created a couple of accounts and wrote a unit test to try them out on my horizon API. I get the result above when I tried it on it my horizon instance but got a positive result with a balance of 10000.0000 lumens when I tried the same accounts on this https://horizon-testnet.stellar.org
I should add that those accounts were created and funded using the friendbot on the the test-network.