koolhead17 has joined #stellar-dev
<stellar-slack> <meetreks> Hi Folks
<Kwelstr> hi meetreks
<stellar-slack> <meetreks> what is the general opinion on Banks and other financial companies building their own private network by forking out Ripple / Stellar...
<stellar-slack> <meetreks> does this not defeat the whole purpose?
<stellar-slack> <meetreks> would appreciate the forum members views
<Kwelstr> meetreks, there is a lot of different opinions on that subject. Personally I think banks MAY in some cases use an internal version between branches that is closed to the public
<Kwelstr> but if you want international money transfers and or inter-bank payments you need Stellar or a similar service
pixelbeat_ has quit [Ping timeout: 256 seconds]
pixelbeat_ has joined #stellar-dev
<Kwelstr> an example of internal permissioned legers is hyperledger, which was bought not long ago, but this is the #dev channel, probably you should take this conversation to #general
sacarlson1 has quit [Quit: Leaving.]
sacarlson has joined #stellar-dev
<stellar-slack> <matschaffer> Kwelstr: (OT) did that `+:thumbsup:` show anything on IRC?
<stellar-slack> <matschaffer> even further OT I’m amazed that you connect via both. The popups drive me nuts when I try that
<stellar-slack> <meetreks> matschaffer - yes it does
<stellar-slack> <meetreks> Kwelstr -- will do as advised
<stellar-slack> <matschaffer> oh you connect via IRC too? wow
<stellar-slack> <matschaffer> surprised it’s so common
<Kwelstr> `+:thumbsup:` on IRC
<stellar-slack> <matschaffer> interesting
<sacarlson> fantastic example of multi-sig I needed and just got around to reading https://github.com/stellar/js-stellar-lib/tree/master/docs#creating-a-multi-signature-account
<sacarlson> should I assume this only works on the new version of stellar and not stellard?
<sacarlson> in any case I think with this I will be able to add multi sign contracts to my pokerth_accounting system
de_henne has quit [Ping timeout: 264 seconds]
de_henne has joined #stellar-dev
pixelbeat_ has quit [Ping timeout: 248 seconds]
koolhead_ has joined #stellar-dev
koolhead17 has quit [Ping timeout: 256 seconds]
sv-logger has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
koolhead_ has quit [Remote host closed the connection]
TheSeven has quit [Ping timeout: 256 seconds]
TheSeven has joined #stellar-dev
de_henne has quit [Remote host closed the connection]
de_henne has joined #stellar-dev
<stellar-slack> <jed> sacarlson: yeah only in the new code
koolhead17 has joined #stellar-dev
koolhead17 has quit [Ping timeout: 252 seconds]
pixelbeat_ has joined #stellar-dev
<stellar-slack> <naumenkogs> What I need is a guide to start go-horizon. I know that I need attach it to my stellar-core db, but I can't find out how to start it
nelisky has joined #stellar-dev
koolhead17 has joined #stellar-dev
<stellar-slack> <naumenkogs> I found out that I should run executable horizon but I'm still looking for a guide to use -- commands
nelisky has quit [Quit: nelisky]
nelisky has joined #stellar-dev
<stellar-slack> <naumenkogs> By the way is the using of postgres in stellar-core enough stable? I have some problems with it. It seems not possible to use sqlite3 with go-horizon
koolhead17 has quit [Ping timeout: 256 seconds]
nelisky has quit [Quit: nelisky]
<stellar-slack> <scott> @naumenkogs: go-horizon is currently only compatible with postgresql, but eventually we will support interacting with a sqlite stellar-core database. However, the history database that horizon creates uses postgres specific features (most notably jsonb) and so postgres will likely be the only database compatible with the horizon history database for the foreseeable future.
<stellar-slack> <scott> as far as a guide to start go-horizon, we don’t really have anything like that yet. You can see the minimal help documentation we have for each argument using `horizon --help`
<stellar-slack> <naumenkogs> Can you give me an example of a command including arguments to call horizon? I mean with --stellar-core-db. There are different formats for postgres url for example so let me know which one do you use. Now I execute something like ./horizon --stellar-core-url="localhost:8912" --stellar-core-db-url="postgresql://stellar:stellar@localhost/stellar" and nothing appears at all.
<stellar-slack> <naumenkogs> I mean maybe I miss some needed args or something like that?
<stellar-slack> <scott> yeah, totally. but first I want to explain about how environment variables can be used to replace command line arguments. If you look at https://github.com/stellar/go-horizon/blob/master/src/github.com/stellar/go-horizon/cmd/horizon/main.go#L28-L40 you’ll see lines like `viper.BindEnv("stellar-core-db-url", "STELLAR_CORE_DATABASE_URL”)` which means that if a horizon process’s environment has STELLAR_C
<stellar-slack> "stellar-core-db-url” command line argument if one isn’t specified. I use this feature during development so that I can launch horizon more simply. I use a `.env` file to establish this environment which you can see here: https://github.com/stellar/go-horizon/blob/master/.env
<stellar-slack> <scott> So, for example you can see that the `stellar-core-url` needs to be a full http url like `http://localhost:39132`
<stellar-slack> <scott> As far as your specific question, you haven’t yet specified a `db-url` argument, which is required.
<stellar-slack> <scott> `db-url`, `stellar-core-db-url`, and `stellar-core-url` should be the 3 currently required arguments
<stellar-slack> <naumenkogs> Creating a stellar-core-db asks me to use user and password in stellar-core.cfg file. I created that db with special password. How should I use pass in stellar-core-db-url?
nelisky has joined #stellar-dev
<stellar-slack> <scott> As an example: `postgres://USER:PASSWORD@localhost/horizon_development?sslmode=disable`. Does that make sense?
<stellar-slack> <naumenkogs> Yeah, thanks. Now I get a respond. But there are strange exceptions there so I gonna figure them out.
<stellar-slack> <scott> np, feel free to ask more questions as they come up :)
<stellar-slack> <naumenkogs> Do I need to fill horizon_development manually? It seems like I skipped a step where it is created.
<stellar-slack> <naumenkogs> And now after launching horizon it is empty so I get "relation history_ledgers doesnt exists". Btw I created horizon_development as a simple CREATE TABLE sql in postgres
<stellar-slack> <scott> @naumenkogs: the horizon database is presently populated by a “ruby-horizon” server which was the first prototype release of horizon: https://github.com/stellar/horizon
<stellar-slack> <scott> we will be fully removing ruby-horizon prior to the public switchover, but for now you have to run both ruby-horizon and go-horizon to have a fully working horizon system
<stellar-slack> <scott> ruby-horizon is currently responsible for importing history, posting transactions to stellar-core and the “friendbot” currency faucet
<stellar-slack> <scott> You’ll want to follow: https://github.com/stellar/horizon/blob/master/doc/developing.md to setup ruby-horizon
<stellar-slack> <naumenkogs> So for now I can use ruby without go but I cannot use go without ruby?
<stellar-slack> <scott> well, they don’t interact directly, so you can run them independently, but you must presently use ruby to create the schema that go-horizon assumes for the history database and you must use ruby to populate the history database.
<stellar-slack> <naumenkogs> So ruby is needed only for launching once to create schema?
<stellar-slack> <scott> yes, and it’s also needed to populate the rows of the history database. The ruby code watches the stellar core database for new closed ledgers and then transforms that new data into db rows in the history schema
<stellar-slack> <naumenkogs> By the way, as far as I see in ruby-horizon repo, there is no "CREATE DATABASE hayashi-development" string there, but hayashi_test. Are they equal?
<stellar-slack> <scott> That document assumes that you created hayashi_development as part of setting up stellar-core.
<stellar-slack> <scott> hayashi_test is just used if you need to run the test suite
<stellar-slack> <naumenkogs> I mean horizon, not hayashi
<stellar-slack> <naumenkogs> Sorry
<stellar-slack> <scott> the previous command: `rake db:create && RAILS_ENV=test rake db:create` creates the horizon databases, both development and test
<stellar-slack> <naumenkogs> Can the ruby-horizon currently do, for example, submit transaction request?
<stellar-slack> <naumenkogs> Its API says that i need a strange data_binary parameter. And also some of requests described in API doesnt work. Im trying to figure out if I do something wrong or it is not ready.
<stellar-slack> <scott> yes, ruby-horizon can submit transactions to the network. You can read about the endpoint here: http://stellar.github.io/go-horizon/endpoint/transactions_create/
<stellar-slack> <scott> That reference doc is a bit out of date, but the input parameters and the url are the same
<stellar-slack> <naumenkogs> The fact is I have a lot of exceptions while testing and starting ruby-horizon and its difficult to figure out what's wrong
<stellar-slack> <naumenkogs> Go-horizon works correct but it is not enough to work with stellar-core:pensive:
<stellar-slack> <scott> yep, I totally understand it’s frustrating to learn at present, and I apologize. Our goal is not to keep it that way.
<stellar-slack> <eva> @naumenkogs absolutely :S just so you know, we're all working towards making Stellar easier for developers. You can track our progress on the public roadmap, if you're interested https://trello.com/c/8PSRgQXl/58-project-endeavour-improve-developer-experience
<stellar-slack> <eva> and to second Scott, sorry that it's such a frustrating experience right now
<stellar-slack> <naumenkogs> You have a perfect feedback here and I hope the new stellar-core will be developed in a same way.
<stellar-slack> <scott> :) happy to help
sacarlson1 has joined #stellar-dev
sacarlson has quit [Ping timeout: 248 seconds]
sacarlson1 has quit [Read error: Connection reset by peer]
sacarlson has joined #stellar-dev
nelisky has quit [Quit: nelisky]
TheSeven has quit [Disconnected by services]
[7] has joined #stellar-dev
edubai_ has quit [*.net *.split]
moo-_- has quit [*.net *.split]
[0__0] has quit [Ping timeout: 255 seconds]
[0__0] has joined #stellar-dev
moo-_- has joined #stellar-dev
edubai_ has joined #stellar-dev
sacarlson has quit [Ping timeout: 252 seconds]
koolhead17 has joined #stellar-dev
sacarlson has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
nelisky has joined #stellar-dev
nelisky has quit [Quit: nelisky]
nelisky has joined #stellar-dev
nelisky has quit [Quit: nelisky]
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev