<stellar-slack>
<buhrmi> @sacarlson how can I trade in my 3 beer credits for real beer?
<stellar-slack>
<buhrmi> Go to thailand?
<stellar-slack>
<buhrmi> @scott don't know about that trades feature. Biggest confusion around horizon for new devs stems from the fact that there are 2 horizons in two languages
<stellar-slack>
<buhrmi> That's why I'm currently making big steps around it
<stellar-slack>
<sacarlson> yes buhrmi to collect your deposit in native BEER you would have to pick it up in person here at the Pattaya office. Sorry we don't deliver. maybe we can get a satalite office in your country or we can setup a trusted affiliate there on your side.
<stellar-slack>
<sacarlson> hope we get the phone app working soon so that I can take delivery on the beach of the direct deposits that I can drink on the spot to keep them safe. when you need the deposit back... well I'm working on that
<stellar-slack>
<buhrmi> hahaha
sv-logger has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
<stellar-slack>
<sacarlson> @buhrmi: I just noted that the sequence number doesn't change even after at transaction on the open-core
[7] has quit [Disconnected by services]
TheSeven has joined #stellar-dev
<stellar-slack>
<buhrmi> Mhh that's weird. Gonna look into that
<stellar-slack>
<buhrmi> Other data in the accounts row like lastmodified changes correctly?
<stellar-slack>
<sacarlson> I didn't look at that yet
<stellar-slack>
<sacarlson> I can also run my createaccount as long as I have fee's set to zero so I can at least run my same code on both networks without taking out createaccount
<stellar-slack>
<sacarlson> I'm trying to make my test set also run on your network with minimal changes
<stellar-slack>
<buhrmi> What's the technical reason behind having a sequence number anyways
<stellar-slack>
<sacarlson> well I guess with string transactions you need to know the sequence when you combine them into a single transaction bundle
<stellar-slack>
<sacarlson> I have so far failed in my attempts to do that yet so I'm not totaly sure
<stellar-slack>
<sacarlson> I was stock on changing fee's that I only just figured out last night
de_henne has joined #stellar-dev
<stellar-slack>
<dzham> @buhrmi: so you can’t replay transactions
<stellar-slack>
<buhrmi> right
<stellar-slack>
<sacarlson> he could if he ran horizon hooked to it
<stellar-slack>
<sacarlson> or if anyone hooked horizon to his network then you would I guess have replay transactions to view past crossed now closed orders
<stellar-slack>
<buhrmi> @sacarlson: i fixed the bug that would not increase seq number. also ... if a fee is set on a tx it should now be ignored by the core
<stellar-slack>
<buhrmi> so you should be able to use exactly the same code for open core and stellar core
<stellar-slack>
<sacarlson> very good so does that mean I need to recompile my present running open-core?
<stellar-slack>
<buhrmi> yeah
<stellar-slack>
<sacarlson> ok will do
<stellar-slack>
<sacarlson> they might have also fixed the bug were it crashes everytime my ip address changes as I would think it should have changed by now and it's still running with sync now
<stellar-slack>
<sacarlson> we will be more sure in 48 hours
<stellar-slack>
<sacarlson> so your going with open-core commit e396ebeecbbbf65d2300e7b8f19cedd072c8b661 that I'll tag as try3
<stellar-slack>
<buhrmi> yeah
<stellar-slack>
<sacarlson> I think I found a new dependancy you now need for your build
<stellar-slack>
<buhrmi> that's weird, nothing changed except for bugfix
<stellar-slack>
<sacarlson> it seems to be compiling fine now after sudo apt-get install libpq-dev
<stellar-slack>
<buhrmi> lol... weird
<stellar-slack>
<sacarlson> ok now started new version ETA: 289 seconds
<stellar-slack>
<buhrmi> :+1::skin-tone-6:
<stellar-slack>
<buhrmi> :beers:
<stellar-slack>
<sacarlson> I hope your adding all the dependancies in your readme
<stellar-slack>
<buhrmi> i don't understand the difference between the manageOffer tx and createPassiveOffer tx ..
<stellar-slack>
<sacarlson> buhrmi: I've never tried passive offer never researched it
<stellar-slack>
<buhrmi> @sacarlson: i made an offer to exchange sacarlson/beer into sacarlson/BEER
<stellar-slack>
<buhrmi> if you make a counter offer, it should be automatically resolved, right?
<stellar-slack>
<dzham> unless you set it to passive
<stellar-slack>
<buhrmi> let's see ^^
<stellar-slack>
<sacarlson> I think I've added the needed function of multi-sign to my stellar_utility.rb. I have yet to test it to see if it works or how it even works yet
<stellar-slack>
<buhrmi> i don't think you need multi sign to have an offer completed
<stellar-slack>
<buhrmi> just need to make a counter offer
<stellar-slack>
<sacarlson> and for buhrmi I should assume I can counter with login to my account on your site
<stellar-slack>
<buhrmi> can u try?
<stellar-slack>
<sacarlson> no my multi-sign is unrelated to your offer. it's just in preparation for adding it to my pokerthacc
<stellar-slack>
<sacarlson> I'm thinking a simple front end that auto calculates Weight parts, you just stick in the number of accounts and it should do the rest
<stellar-slack>
<sacarlson> buhrmi: I guess your site no longer has my other user name that I thought was just sacarlson
<stellar-slack>
<sacarlson> did I use an email?
<stellar-slack>
<buhrmi> i wiped it
<stellar-slack>
<sacarlson> oh ha ha so does it have to be a real email?
<stellar-slack>
<buhrmi> yeah real email
<stellar-slack>
<sacarlson> has to be verified then?
<stellar-slack>
<buhrmi> not atm
<stellar-slack>
<sacarlson> it looks good, I've added 1 account so far
<stellar-slack>
<sacarlson> but this account has no assets so might as well test to see if I can move funds from one account to another with your setup
<stellar-slack>
<sacarlson> it would be cool if I could see another accounts trustlines on your site at some point
<stellar-slack>
<sacarlson> or maybe I could already
<stellar-slack>
<sacarlson> I mean account that are not mine
<stellar-slack>
<buhrmi> yeah... later
<stellar-slack>
<sacarlson> but I found the info I need as the issuer your using for the offer GBZH6Z74OWID6ZP67KYNF7T5ES4APLZSISYO7GZGXW7PJNMFL4XNV3PT
<stellar-slack>
<sacarlson> so I'll add that account you your site so that we can issuer more stuf when needed
<stellar-slack>
<sacarlson> cool I was able to add a trustlines with your site but it failed to let me know it did anything after hitting th tx botton
<stellar-slack>
<sacarlson> but looking in the db I see it worked
<stellar-slack>
<sacarlson> buhrmi: is there any way to send funds on your website? I would think you would set that up before offer
<stellar-slack>
<buhrmi> what if you reload the site? still nothing?
<stellar-slack>
<sacarlson> I note a change in that I can now cancel trust that was added but nothing seen to send funds
<stellar-slack>
<buhrmi> gonna add that
<stellar-slack>
<sacarlson> should be first as you can't setup offers without funds can you?
<stellar-slack>
<sacarlson> but your doing very good in any case
<stellar-slack>
<buhrmi> yeah i think it's not possible
<stellar-slack>
<sacarlson> I'll wait for you to fix that and get back to my multi-sign
<stellar-slack>
<sacarlson> that will be cool when you add multi-sign to your site. then it will be seen by all, not just nerds like us
<stellar-slack>
<buhrmi> woohoo.. it works.. i just made a payment to your for 1 beer credit and it reduced the balance on the trustline
<stellar-slack>
<sacarlson> you da man
<stellar-slack>
<sacarlson> let me check
<stellar-slack>
<buhrmi> wait, deploying
<stellar-slack>
<buhrmi> ok done
<stellar-slack>
<sacarlson> I'm not sure I only see 2 beers total in the inventory of all of us now. didn't we have 3 beers?
<stellar-slack>
<sacarlson> what did you do drink one?
<stellar-slack>
<buhrmi> no, if i send a credit back to you it is as if it was never issued
<stellar-slack>
<sacarlson> oh you should have sent to to my other account then
<stellar-slack>
<sacarlson> that's cool I never tried that you can send back to the issuer to burn assets
<stellar-slack>
<buhrmi> ah, okay whats your other account?
<stellar-slack>
<buhrmi> does your other account already have a trustline to your beer-gateway?
<stellar-slack>
<sacarlson> my other account named sacarlson is GAJYPMJOWAAGCXMB7UYP63LIMTYPXMGIBMYGQRW7QBF5AVSO7S3IRKIP
<stellar-slack>
<buhrmi> sending 1 credit ... now
<stellar-slack>
<sacarlson> well I better issue you some more beer as your almost out ha ha
<stellar-slack>
<buhrmi> txSuccess
<stellar-slack>
<sacarlson> checking
<stellar-slack>
<sacarlson> yes perfect I also see the balance at your site
<stellar-slack>
<sacarlson> one strange thing is that I'm not sure how you can tell who sent you the funds
<stellar-slack>
<sacarlson> so I was about to issue some back but failed to see your address that send me my last beer
<stellar-slack>
<buhrmi> yeah
<stellar-slack>
<sacarlson> even if I look at the db I'm not sure
<stellar-slack>
<buhrmi> that's my address GD5GK7WBU27XXAGD6J75JOLF7WVFGH2RXEBLOQ6OCVJTIA2JZDJLXAJ3
<stellar-slack>
<buhrmi> will work on UI
<stellar-slack>
<sacarlson> ok I'll isuer you 100 beer
<stellar-slack>
<sacarlson> I made sure to send you an even number of cases of beer as they come in boxes of 24
<stellar-slack>
<sacarlson> so 144 beers
<stellar-slack>
<buhrmi> nah
<stellar-slack>
<sacarlson> already sent
<stellar-slack>
<buhrmi> that means you owe me 100 beer
<stellar-slack>
<sacarlson> ya on the books it does
<stellar-slack>
<buhrmi> haha txFailed
<stellar-slack>
<buhrmi> my line has a limit of 5 beers so u can't owe me more than 5
<stellar-slack>
<sacarlson> oh ya I forgot
<stellar-slack>
<sacarlson> you don't trust I'll come up with more than 5 beers smart
<stellar-slack>
<buhrmi> hahaha
<stellar-slack>
<sacarlson> I never cary more than 120 baht that will only buy 4 beers
<stellar-slack>
<sacarlson> it does need some feedback as the status when you send something and status of who sent something. but at this point it's the first web user interface for stellar-core or open-core that I've seen to date that works
<stellar-slack>
<buhrmi> yeah doing a UI overhaul
pixelb has joined #stellar-dev
<stellar-slack>
<sacarlson> I'm looking at this multi-sign and thinking maybe the signers don't even need to be funded even in stellar but I'm not sure
<stellar-slack>
<sacarlson> I'll try both ways
<stellar-slack>
<buhrmi> updates :)
<stellar-slack>
<sacarlson> so you attempting to run horizon? the link to beer isn't comeing up
<stellar-slack>
<buhrmi> yeah that's not working yet
<stellar-slack>
<sacarlson> so what's the plan for that, full horizon or just the ruby half?
<stellar-slack>
<sacarlson> or something else
<stellar-slack>
<buhrmi> i have no plan for horizon
<stellar-slack>
<sacarlson> ok so it's something else just a coincidence you used there same format of input
<stellar-slack>
<buhrmi> yeah
<stellar-slack>
<sacarlson> I'm not sure but it seems create_account no longer works for me. at least on this account GD3DYNE54777BUJLMZVML53LBKG4FQX523NJYOEXFFCZKKXAQABUQPT4
<stellar-slack>
<sacarlson> I have fee set to zero
<stellar-slack>
<sacarlson> and set funding to zero
<stellar-slack>
<sacarlson> maybe it never worked but accounts got created at some other point?
<stellar-slack>
<sacarlson> I'm also failing to see my added signers show up in the db, so I'm going to switch back to stellar and see if I have the same problem
<stellar-slack>
<sacarlson> my guess it they can't without already being created
<stellar-slack>
<buhrmi> the create account transaction has no effect on my fork
<stellar-slack>
<buhrmi> it's not neccesary
pixelb has quit [Ping timeout: 256 seconds]
<stellar-slack>
<buhrmi> cool i can store the accountname of the address in the homeDomain field...
<stellar-slack>
<buhrmi> or is that reserved for other stuff?
<stellar-slack>
<sacarlson> I guess anything if not too many letters
pixelb has joined #stellar-dev
<stellar-slack>
<buhrmi> @sacarlson: will do another history wipe on open core
<stellar-slack>
<buhrmi> ok done
<stellar-slack>
<buhrmi> we need a launch data (would propose just after stellar core launch)
<stellar-slack>
<sacarlson> what's needed on my side with the wipe @buhrmi ?
<stellar-slack>
<buhrmi> stellar-core -newdb
<stellar-slack>
<sacarlson> ok no compile
<stellar-slack>
<buhrmi> no
<stellar-slack>
<sacarlson> present state "state" : "Joining SCP"
<stellar-slack>
<sacarlson> ETA: 339 seconds
<stellar-slack>
<sacarlson> after full reset
<stellar-slack>
<sacarlson> oh I was about to try stellar to test my muli-sign but I was distracted with a chat with my momy
<stellar-slack>
<sacarlson> I attempted to add domain to my account and get {"status"=>"ERROR", "error"=>"AAAAAAAAAAD/////AAAAAf////8AAAAA"}
<stellar-slack>
<buhrmi> I'm on my phone now so I can't decode this txresult
pixelbeat has joined #stellar-dev
pixelb has quit [Ping timeout: 268 seconds]
<stellar-slack>
<buhrmi> it sais txFailed, opBadAuth
<stellar-slack>
<buhrmi> maybe wrong signature? i dont know
<stellar-slack>
<sacarlson> hmm
<stellar-slack>
<sacarlson> well I get the same on stellar so it's on my side
<stellar-slack>
<sacarlson> can't get multi-sign to work on stellar also
Skeribo has joined #stellar-dev
<Skeribo>
can't seem to log in to my stellar account, my email isn't even working.. any idea of where I should turn to get this fixed?
<stellar-slack>
<scott> @buhrmi: totally understand about the confusion between ruby-horizon and go-horizon. The first thing I’ll be doing after getting to feature complete on go-horizon is to finish removing ruby-horizon. What can we do better to communicate with developers about ruby-horizon’s deprecation besides the big note at the top of ruby-horizon’s README?
<stellar-slack>
<buhrmi> @scott: im confused because it looks like ruby horizon is still receiving development of new features
<stellar-slack>
<fredolafritte> What are the reasons to rewrite horizon from ruby to go ?
<stellar-slack>
<scott> really? As in you no longer believe the not at the top of the README?
<stellar-slack>
<scott> @fredolafritte: the initial horizon was written in jruby, until we found that jruby doesn’t support streaming http responses (despite better concurrency support than MRI)
<stellar-slack>
<fredolafritte> The readme only says that horizon is deprecated, it does not explain the reason why it is supposed to be deprecated
<stellar-slack>
<fredolafritte> Ruby or jruby ?
<stellar-slack>
<sacarlson> top of go-horizon readme.md " # Note this code is pre-alpha. It is definitely not ready yet for production." top of horizon readme.md "*NOTE: This project is being replaced by a port to the go language at http://github.com/stellar/go-horizon*"
<stellar-slack>
<buhrmi> yeah well the commit history is rather active for a project that is to be replaced
<stellar-slack>
<sacarlson> I'm running the ruby horizon standalone and it works to some degree for what I need it fore
<stellar-slack>
<scott> @buhrmi: I don’t really know how to better communicate it is deprecated. Are you advocating that we take development out of the open?
<stellar-slack>
<scott> The fact is that we must continue ruby-horizon development because that is where the importer is currently living.
<stellar-slack>
<fredolafritte> Ruby does not support streaming http response ?
<stellar-slack>
<buhrmi> so it's either alive or depricated....
<stellar-slack>
<buhrmi> i don't think it's deprecated. deprecated means that something better already exists
<stellar-slack>
<scott> @fredolafritte: ruby does (but not well), jruby does not.
<stellar-slack>
<buhrmi> but the "something better" is still indevelopment
<stellar-slack>
<scott> What do you think we should do?
<stellar-slack>
<buhrmi> i don't know lol...
<stellar-slack>
<fredolafritte> Try to keep he number of framework as low as possible
<stellar-slack>
<buhrmi> get to a state where the ruby repo is not neccessary anymore in order to run horizon
<stellar-slack>
<fredolafritte> Http streaming is the only reason to rewrite horizon ?
<stellar-slack>
<scott> yes, http streaming and (after initial launch) websockets are central to the API horizon will provide
<stellar-slack>
<buhrmi> or make it two projects but not with the same name
<stellar-slack>
<buhrmi> maybe "horizon rest server" and "horizon streaming server"
<stellar-slack>
<buhrmi> or something
<stellar-slack>
<buhrmi> that complement eachother
<stellar-slack>
<scott> yeah, we could rename horizon to “horizon-importer"
<stellar-slack>
<buhrmi> yeah that would solve a lot of confusion i think
<stellar-slack>
<scott> I’ll run it by the others, but that seems reasonable
<stellar-slack>
<sacarlson> the way it looks is they are adding layers of new features on the go-horizon that don't exist on ruby-horizon and never will. as it looks they will at some point rewrite what doesn't yet exist go-horizon and make it standalone. maybe you all realize that already but just feel others find it confusing
<stellar-slack>
<scott> yes, our strategy was to finish the horizon api so that people can develop against testnet with a feature complete api before we spend the time to rewrite the history importer and transaction submitter in go. The point was to get to an API that real products can be developed against more quickly
<stellar-slack>
<sacarlson> most the features that it seems are active in creation in the new go-horizon are in the trading platform from what little I know
<stellar-slack>
<buhrmi> understood, @scott
<stellar-slack>
<scott> I’ll work on a PR today to rename ruby-horizon and add some explanatory text to the README to try and reduce confusion
<stellar-slack>
<scott> thanks for bringing it up @buhrmi !
<stellar-slack>
<buhrmi> yeah thanks for clearing it up
<stellar-slack>
<buhrmi> back to my playstation :)
<stellar-slack>
<scott> @sacarlson: yeah, the few remaining features are around trading and path finding
<stellar-slack>
<sacarlson> and scott maybe if you have time you can ether help me figure out the problems I'm having with set_options and or multi-sign. they may be the same problem
<stellar-slack>
<buhrmi> i want a card like a banking card that stores my secret seed
<stellar-slack>
<buhrmi> are there options for that?
<stellar-slack>
<scott> not that I know of, but I would love something like that as well
<stellar-slack>
<scott> @sacarlson: what are the issues you are having?
<stellar-slack>
<sacarlson> at this point I get txFailed, opBadAuth
<stellar-slack>
<buhrmi> is that for multisign?
<stellar-slack>
<sacarlson> I think it's for any set option like set_options(my_keypair,home_domain: "sacarlson")
<stellar-slack>
<sacarlson> I pulled the code from your scc
<stellar-slack>
<scott> Do you have a repro script?
<stellar-slack>
<sacarlson> oh I also haven't released the changes in stellar_utilities with your added functions
<stellar-slack>
<scott> no worries. what line are you failing on? 19?
<stellar-slack>
<sacarlson> yes
<stellar-slack>
<sacarlson> well at the point it sends it but that must be the line
<stellar-slack>
<sacarlson> or maybe I format it wrong?
<stellar-slack>
<scott> let me check out the testnet db for the signer setup of that account
<stellar-slack>
<sacarlson> oh cool
<stellar-slack>
<sacarlson> I can run it again to be sure you see it
<stellar-slack>
<scott> Okay, so GC6NFQDTVH2YMVZSXJIVLCRHLFAOVOT32JMDFZJZ34QFSSVT7M5G2XFK has it’s “high” threshold set to 2, but the master key only has a weight of 1… that’s why you get a BAD_AUTH error on line 19
<stellar-slack>
<sacarlson> yes
<stellar-slack>
<scott> `set_options` is a high security operation
<stellar-slack>
<sacarlson> so what's needed to get needed security?
<stellar-slack>
<sacarlson> I have the key set
<stellar-slack>
<scott> since you haven’t added any additional signers, there is currently no way for that account to perform a high security operation… you’re locked out
<stellar-slack>
<sacarlson> higher fee's ha ha
<stellar-slack>
<sacarlson> oh ok so with two keys signed then it can perform it. well but I also fail to add_sign with I'm guessing the same error
<stellar-slack>
<sacarlson> later in the same code I add two signers but nether is added in the db that I can see
<stellar-slack>
<scott> I would start with a new account, and then add your new signers first (ensure the transactions succeed), then set thresholds
<stellar-slack>
<scott> I’ll add signer and threshold information to go-horizon today, so that the `/accounts/:id` endpoint returns that info
<stellar-slack>
<sacarlson> I have the db here I can look at to get the results of the signer table. ok I'll give it another try
<stellar-slack>
<scott> :+1:
<stellar-slack>
<sacarlson> oh I don't think my add_signer is ever getting sent. I thought the transaction being sent was what changed or added the signer but I must be wrong. it only changes something but I don't know what has to be sent to the server to activate the signing.
<stellar-slack>
<sacarlson> never mind I think I see at least one of my mistakes
Skeribo has joined #stellar-dev
Skeribo has quit [Client Quit]
<stellar-slack>
<sacarlson> ok I made some progress I got one out of two my signers added to the db with the secound I got an error {"status"=>"ERROR", "error"=>"AAAAAAAAAAD////7AAAAAA=="}
<stellar-slack>
<buhrmi> badSeq
<stellar-slack>
<sacarlson> wow how's that posible, I'm running it again with another set of random created accounts
<stellar-slack>
<buhrmi> looks like u used a wrong sequence number :P
<stellar-slack>
<sacarlson> ok it ran ok on the secound run I just increased the time window between
<stellar-slack>
<sacarlson> I tried to speed it up with only 8 secounds but 11 secounds seems to be more reliable
<stellar-slack>
<sacarlson> there code looks for something in a loop that I don't understand. waits for something to change in the db I guess
<stellar-slack>
<sacarlson> oh maybe they reset testnet?
<stellar-slack>
<sacarlson> now there is only 3 accounts
<stellar-slack>
<sacarlson> oh I was looking at the wrong db this is now running on sqlite not postgres
<stellar-slack>
<sacarlson> now everything is looking good
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
<stellar-slack>
<scott> Heads up: I’ll be renaming the “horizon” project to “horizon-importer” and “go-horizon” to “horizon” momentarily. Anyone who has clones of the repositories should update their remotes
<stellar-slack>
<sacarlson> ok
<stellar-slack>
<sacarlson> scott I now have an account with mutiple signers and set_thresholds, so now my question is what is it that each signer signs on a tx to make it authorized? I think it's the envelope but I see no examples of how to sign the envelope with more than one signer
<stellar-slack>
<scott> it will sign the transaction with each one before returning the resulting envelope
<stellar-slack>
<sacarlson> ok like b64 = tx.to_envelope(account,account2,account3).to_xdr(:base64)
<stellar-slack>
<scott> yep!
<stellar-slack>
<sacarlson> cool
<stellar-slack>
<sacarlson> I'm guessing I can also pass array of accounts as a single parameter as that's what they become later but I'm not sure
<stellar-slack>
<sacarlson> nope guess you can't do that
<stellar-slack>
<scott> You can do that with ruby: tx.to_envelope(*[ac1, ac2])
<stellar-slack>
<sacarlson> oh so what if f(account, tx) I can f(*[ac1,ac2],tx)
<stellar-slack>
<scott> read up on the ruby "splat operator"
<stellar-slack>
<sacarlson> nope that didn't work options': wrong number of arguments (3 for 2)
<stellar-slack>
<sacarlson> splat operator will do
de_henne has quit [Remote host closed the connection]
<stellar-slack>
<scott> yeah, `(*[1,2], 3)` gets translated to `(1,2,3)`
<stellar-slack>
<sacarlson> I was looking at all these function already writen that are setup for only a single argument but now I find we sometimes need more
<stellar-slack>
<sacarlson> oh that's what I was hoping
<stellar-slack>
<sacarlson> but why won't this envelope = set_options(*[signerA_keypair,signerB_keypair],home_domain: "sacarlson")
<stellar-slack>
<scott> The SetOptions operation doesn’t support mutating multiple signers within a single operation, and the stellar network level
<stellar-slack>
<sacarlson> cool at least I got it to work, my first successful multi-sign transaction
<stellar-slack>
<sacarlson> and thanks again @scott, time for some sleeping for me, you all have a good one