pixelb has joined #stellar-dev
<stellar-slack> <buhrmi> ok...
<stellar-slack> <jed> buhrmi: are you not going to charge tx fees?
<stellar-slack> <buhrmi> no
<stellar-slack> <buhrmi> how can i charge tx fee if there's no currency to charge it in ^_^
<stellar-slack> <jed> what will prevent people from dos'ing the network?
<stellar-slack> <buhrmi> nothing
<stellar-slack> <buhrmi> common sense?
<stellar-slack> <buhrmi> i dunno
<stellar-slack> <buhrmi> I'm like ¯\_(ツ)_/¯
<stellar-slack> <buhrmi> @lab: please tell china not to ddos me :O
<stellar-slack> <lab> no. because ddos cost much than simple spamming..
<stellar-slack> <buhrmi> i don't know, i never ddos anyone lol
<stellar-slack> <lab> i'd like store wikipedia in your ledger.
<stellar-slack> <buhrmi> why
<stellar-slack> <lab> anyone else do it, why not be the first.
<stellar-slack> <lab> :)
<stellar-slack> <buhrmi> you'd have to disect it into transactions
<stellar-slack> <lab> will do it.
<stellar-slack> <buhrmi> LOL
<stellar-slack> <lab> no god, no peace
<stellar-slack> <lab> i bet this reset is the last before production.
<stellar-slack> <buhrmi> @sacarlson: i added history to the config file. it might work now https://github.com/buhrmi/stellar-core/blob/master/docs/stellar-core_testnet.cfg
<stellar-slack> <buhrmi> tokyo-stellar-history.json does not exist...
<stellar-slack> <buhrmi> ah, stellar-core -newhist tokyo
<stellar-slack> <buhrmi> @jed: is the -forcescp option needed? or are all nodes supposed to run without that option? if running without it the ledger number doesn't increase
<stellar-slack> <matschaffer> should only be necessary on the first N nodes if starting a network from nothing (N = quorum threshold)
<stellar-slack> <buhrmi> ah, okay... so after a while, (supposing the number of nodes gets larger), the -forcescp nodes can quit the network?
<stellar-slack> <buhrmi> what if N=0
<stellar-slack> <matschaffer> no idea what that would imply
<stellar-slack> <matschaffer> lowest I've used is 1
<stellar-slack> <matschaffer> but yes, so long as you have enough nodes to achieve quorum any should be able to leave the network, even the forcescp ones
<stellar-slack> <matschaffer> there's nothing really special about the forcescp nodes either though. It just tells them to kickstart the SCP event loop instead of letting it get triggered by seeing messages from peers
<stellar-slack> <buhrmi> with N=0 quorum is always achieved lol
<stellar-slack> <matschaffer> no idea ¯\_(ツ)_/¯
<stellar-slack> <matschaffer> try it and see :)
<stellar-slack> <buhrmi> lol let's try
<stellar-slack> <buhrmi> need a peer
<stellar-slack> <lab> the minimal to bootstrap need 3 nodes: start node1(forcescp), start node2(forcescp), start node3, restart node1, restart node2
<stellar-slack> <buhrmi> k
<stellar-slack> <matschaffer> lab: shouldn't need the restarts at the end
<stellar-slack> <buhrmi> if somebody wants to join the experiment, please compile from my sources and use this config https://github.com/buhrmi/stellar-core/blob/master/docs/open-core.cfg ^^
sv-logger has quit [Remote host closed the connection]
sv-logger has joined #stellar-dev
pixelb has quit [Ping timeout: 255 seconds]
<stellar-slack> <sacarlson> ok buhrmi I'm now awake and will soon be ready to take a wack at it
<stellar-slack> <buhrmi> cool ... gonna work on the UI
<stellar-slack> <sacarlson> ETA: 379 seconds so it says @buhrmi
<stellar-slack> <buhrmi> excite ...
<stellar-slack> <sacarlson> what is it you have to put at this history place?
<stellar-slack> <buhrmi> amazon s3 tokyo region
<stellar-slack> <sacarlson> what is that some free storage or something?
<stellar-slack> <buhrmi> no
<stellar-slack> <sacarlson> ok I'm now synced
<stellar-slack> <buhrmi> Active Peers Address: 124.122.212.164:11625
<stellar-slack> <sacarlson> must be
<stellar-slack> <buhrmi> sweet
<stellar-slack> <buhrmi> now i wanna trust you with some beer
<stellar-slack> <sacarlson> I can try a transaction but not sure how it will work
<stellar-slack> <sacarlson> I'll try native first
<stellar-slack> <buhrmi> native won't work
<stellar-slack> <buhrmi> can't something that doesn't exist
<stellar-slack> <buhrmi> but trust should work
<stellar-slack> <buhrmi> this is my address GCICXSZOM7GE2KML5MN7VKQCSJJ3CEKGBFNJABPHTYTT5DDD5UTYMC7K
<stellar-slack> <sacarlson> I'm getting this error : /home/sacarlson/.bundle/gems/json-1.8.3/lib/json/common.rb:155:in `parse': 757: unexpected token at '{"exception": "sqlite3_statement_backend::prepare: near "WITH": syntax error"}' (Faraday::ParsingError)
<stellar-slack> <sacarlson> no idea what that is
<stellar-slack> <sacarlson> is that what your sending me?
<stellar-slack> <buhrmi> ah.... right ... it doesnt work with sqlite 3
<stellar-slack> <sacarlson> why is that?
<stellar-slack> <buhrmi> because the query i added isn't supported by sqlite 3
<stellar-slack> <sacarlson> on my side or your side?
<stellar-slack> <buhrmi> on your side... gonna change the config file and say that it requires postgres
<stellar-slack> <sacarlson> oh that sucks, that requires me to setup another postgress db
<stellar-slack> <buhrmi> sorry :(
<stellar-slack> <buhrmi> but it shoulb be enough if u just update the config ... it should create the DB by itself, no?
<stellar-slack> <buhrmi> u already got postgres running right?
<stellar-slack> <sacarlson> and the database browser for postgresql is not a cool as the one for sqlite
<stellar-slack> <sacarlson> no I think I have to create the db or I should say give it access to a db it will auto fill it with the tables
<stellar-slack> <buhrmi> ah
<stellar-slack> <sacarlson> but on the positive side with postgres I can also support horizon that as far as I know also doesn't support sqlite
[7] has quit [Disconnected by services]
TheSeven has joined #stellar-dev
<stellar-slack> <sacarlson> that I was able to finally get working last night with the help of scott
<stellar-slack> <buhrmi> wait, is horizon accessing the ledger db directly?
<stellar-slack> <sacarlson> it does yes
<stellar-slack> <sacarlson> you want to run horizon on your side? then I won't even need to change much of anything
<stellar-slack> <buhrmi> no i'm not touching horizon
<stellar-slack> <sacarlson> you need it at some point on the network
<stellar-slack> <buhrmi> why?
<stellar-slack> <sacarlson> to support the libs that pass between it
<stellar-slack> <buhrmi> stellarbase does not require horizon
<stellar-slack> <sacarlson> unless you want all clients to run cores
<stellar-slack> <buhrmi> yeah everybody should have a core :)
<stellar-slack> <sacarlson> I don't think you want to run a core on your android phone
<stellar-slack> <buhrmi> haha
<stellar-slack> <sacarlson> but it might work who knows
<stellar-slack> <buhrmi> i'm sending transactions directly to stellar-core via HTTP
<stellar-slack> <buhrmi> no need for horizon
<stellar-slack> <sacarlson> yes that's what I was doing but my goal is to have clients go to a horizon entity
<stellar-slack> <sacarlson> a minimal horizon doesn't do much
<stellar-slack> <buhrmi> yeah well u can still do that
<stellar-slack> <buhrmi> but i won't officially "recommend" using horizon"
<stellar-slack> <sacarlson> yes but to do it I will need to move to postgres as if you run it then I wouldn't have to
<stellar-slack> <buhrmi> i won't be running horizon, sorry
<stellar-slack> <sacarlson> what do you have against horizon ?
<stellar-slack> <buhrmi> nothing
<stellar-slack> <buhrmi> just don't need it
<stellar-slack> <sacarlson> ok I'll set it up then
<stellar-slack> <sacarlson> I don't know why we didn't have 2 horizon on testnet to start with
<stellar-slack> <sacarlson> what about the js-libs that use horizon? you have something to replace those?
<stellar-slack> <sacarlson> like my work around on ruby you must have that on js?
<stellar-slack> <sacarlson> wasn't as hard as expected, I moved to postgress for opencore
<stellar-slack> <sacarlson> I'll have the horizon hooked to it in a bit, last thing to figure out is how to make horizon public
<stellar-slack> <sacarlson> @buhrmi: I'm now getting {"status"=>"ERROR", "error"=>"AAAAAAAAAAD////7AAAAAA=="}
<stellar-slack> <sacarlson> probly lack of funds
<stellar-slack> <sacarlson> @fredolafritte: how do I get horizon to listen on all addresses not just localhost?
<stellar-slack> <sacarlson> I must be close with this sudo script/server -b 10.0.2.1 -p 3000 ; is that my only option to run as sudo?
<stellar-slack> <buhrmi> AAAAAAAAAAD////7AAAAAA== means bad sequence
<stellar-slack> <buhrmi> StellarBase.xdr.TransactionResult.fromXDR(new Buffer('AAAAAAAAAAD////7AAAAAA==', 'base64'))._attributes.result._switch.name => txBadSeq
<stellar-slack> <buhrmi> @sacarlson: try script/server -b 124.122.212.164 -p 3000 ? lol
<stellar-slack> <buhrmi> @bartek: i think it's impossible to delete a trustline with the js-stellar-base https://github.com/stellar/js-stellar-base/blob/master/src/operation.js#L138
<stellar-slack> <buhrmi> "0" and 0 are both falsey in JS so it would always create a line with in64 as limit
<stellar-slack> <buhrmi> should i file an issue?
<stellar-slack> <sacarlson> I've never tried to delete a trustline, I'll have to give it a try some time
<stellar-slack> <buhrmi> mhh, it works when the string "0", but not integer 0
<stellar-slack> <sacarlson> oh and I did try your above but it still comes out with localhost:3000 every time not sure why
<stellar-slack> <sacarlson> I don't see anything in config that controls it
<stellar-slack> <sacarlson> oh bad sequence your your thing is broken?
<stellar-slack> <buhrmi> no, but since there is no "createAccount" tx anymore, you don't know your sequence...
<stellar-slack> <buhrmi> so if you use "0" as the sequence it should work
<stellar-slack> <sacarlson> yes so it's broken
<stellar-slack> <sacarlson> if no sequence is returned just use 0 that might work
<stellar-slack> <buhrmi> 0 or 1, depending on whether the library you're using automatically adds +1
<stellar-slack> <sacarlson> wow have to try both if first fails
<stellar-slack> <buhrmi> or i don't know... maybe the core adds +1
<stellar-slack> <buhrmi> i don't know who does it... lol
<stellar-slack> <sacarlson> yes for nextseq I guess you add 1
<stellar-slack> <sacarlson> I'll try manualy seq 1 2 3 if they all fails then it's >>>>>>you
<stellar-slack> <buhrmi> just try 0 and 1 ^^
de_henne has joined #stellar-dev
<stellar-slack> <sacarlson> I think it would have worked out of the box if you just set the configs to require zero and fee zero
<stellar-slack> <sacarlson> you still create accounts but with no balance
<stellar-slack> <sacarlson> so they will still have the start seqnum
<stellar-slack> <sacarlson> that way no changes needed on the client pointing side
<stellar-slack> <sacarlson> I think they also have the config for the master account start amount that you can also still set to zero
<stellar-slack> <buhrmi> mhh I get "txInsufficientBalance" when trying to changeTrust ..
<stellar-slack> <sacarlson> maybe you still have fee's set
<stellar-slack> <sacarlson> with just config changes you can also upgrade your core with off the shelf stellar-core pulls
<stellar-slack> <sacarlson> I'll make a config file for you to check out if it's all posible
<stellar-slack> <sacarlson> found a method to change listen bind to 0.0.0.0 for me I had to add this to config/boot.rb
<stellar-slack> <sacarlson> so with that I should assume you can now access your new network with horizon from http://stellar.ddns.net:3000|stellar.ddns.net:3000
<stellar-slack> <buhrmi> cool... but it's down atm, i'm fixing bugs
<stellar-slack> <sacarlson> oh mine wasn't working also I forgot to forward the port
<stellar-slack> <sacarlson> mine should be working now when yours starts again
<stellar-slack> <buhrmi> yeah i'm having some troubles with the implicit account creation
<stellar-slack> <buhrmi> when adding a row to the accounts table within a transaction, it's not available for update further down the transaction
<stellar-slack> <buhrmi> cause the transaction can only perform changes on rows that existed before it started
<stellar-slack> <sacarlson> so what's the plan then?
<stellar-slack> <buhrmi> working on it..
pixelb has joined #stellar-dev
<stellar-slack> <buhrmi> it's running ... no idea if it's working tho
<stellar-slack> <buhrmi> it's not
<stellar-slack> <buhrmi> okay.. made some changes... looks good
<stellar-slack> <buhrmi> i can make trustlines on my fork
<stellar-slack> <alekar> Hey guys- i'm a non technical guy looking to learn more about stellar, if i could maybe pay someone as a consultant to answer some questions cheers!
<stellar-slack> <buhrmi> @alekar: will you pay me in sacarlson/beer ?
<stellar-slack> <alekar> if you lived in berlin hell yer
<stellar-slack> <buhrmi> haha
<stellar-slack> <alekar> re beer
<stellar-slack> <alekar> best beer in germany
<stellar-slack> <buhrmi> Erdinger?
<stellar-slack> <buhrmi> Schöfferburger Weizen?
<stellar-slack> <buhrmi> @alekar: best bet is to ask your questions here
<stellar-slack> <buhrmi> no need to pay anyone...
<stellar-slack> <alekar> augustiner helles
<stellar-slack> <alekar> Are you involved in building gateways here?
<stellar-slack> <buhrmi> yeah kinda
<stellar-slack> <alekar> basically the gateways provide the access to the stellar network? do they issue the user IOU's and then communicate with other gateways to trade based on a users request?
<stellar-slack> <buhrmi> i'm making a website where everybody can act as gateway
<stellar-slack> <alekar> gateways physically hold a users currency though right?
<stellar-slack> <alekar> so basically you get around any legal issues because each person just holds their own $
<stellar-slack> <alekar> but on a super basic level user X wants 100USD they have 80 Euro ( whatever the Forex rate is) they have to use a US gateway which communicates with an EU one? Then the euros are on you stellar wallet? Who provides the liquidity if there is no peer interested in selling those euros?
<stellar-slack> <dzham> @alekar: liquidity would come from independent market makers, who put up offers either directly USD/EUR or using XLM as a bridge currency
<stellar-slack> <alekar> so if you wanted to make a larger trade say 200,000k and it was relatively urgent you'd be at their mercy re-rates? What kind of competition exists or rules to stop market makers selling the currency at a poor rate?
<stellar-slack> <dzham> hard to say anything about competition… but poor rates (large spread) would attract other market makers
<stellar-slack> <buhrmi> what if.... nobody trusts anyone
<stellar-slack> <buhrmi> lol
<stellar-slack> <dzham> MM’s are there to make money, so they would have to trust some gateways
<stellar-slack> <buhrmi> man i suck at c++
<stellar-slack> <buhrmi> anybody can find out why getIsNew() always returns "368" (seems so random) allthough it should be either 0 or 1 ?
<stellar-slack> <buhrmi> maybe i'm declaring the variable in the wrong place... no clue.
<stellar-slack> <dzham> that’s a bit weird. you don’t ever modify it after setting to one :S
<stellar-slack> <buhrmi> but 10 lines further down i'm debugging and the output is "1"
<stellar-slack> <dzham> ah, references :)
<stellar-slack> <buhrmi> yeah ..... :O don't quite understand why it's "1" there and "368" somewhere else
<stellar-slack> <dzham> c++ has changed a lot since I used to use it
<stellar-slack> <alekar> thanks guys
<stellar-slack> <alekar> how much would a gateway cost to build? Aside from the compliance issues? pretty keen to get one made if possible
<stellar-slack> <dzham> depends on a lot of things.. the very simplest gateway wouldn’t cost anything, you can run it all manually
<stellar-slack> <dzham> if you want a gateway for fiat currencies, you have to decide if you want the bank account transfers automated, and then figure out how to integrate that with your bank. you’d want notifications for inbound transactions, and ability to send outbound transfers too
<stellar-slack> <dzham> I’m doing one for a custom asset right now, that’s a bit different.
<stellar-slack> <alekar> I basically want to create a gateway for people (like me) who find the process now a bit technical. I'm an expat and getting money from NZ to Germany is slow and costly.. Ideally it would be for fiat currencies initially in say 3 countries.. The hurdle is KYC/ Anti money laundering law and the amount each jurisdiction requires you hold in physical cash
<stellar-slack> <dzham> You wouldn’t be a bank, so you’d be full reserve. 1 NZD in the bank = 1 NZD in the network.
<stellar-slack> <dzham> Money transfers and being an expat sucks. That’s one of the big reasons I got into cryptocurrencies.
<stellar-slack> <dzham> If it helps the unbanked too, I’m all for it :)
<stellar-slack> <buhrmi> How can it be 368
<stellar-slack> <buhrmi> @alaka: lol fund me I'm building exactly that open source
<stellar-slack> <buhrmi> Alekar
<stellar-slack> <bartek> @buhrmi: are you assigning this variable somewhere?
<stellar-slack> <buhrmi> Just the initial one at declaration and then I pass a reference to the prepared statement
<stellar-slack> <bartek> where exactly?
<stellar-slack> <alekar> @dzham: so are you saying you the legal requirement is fulfilled as you hold every dollar you give out an IOU for? (not the KYC /AML)
<stellar-slack> <buhrmi> Legal requirement... good one
<stellar-slack> <alekar> well, this banking law stuff is complicated
<stellar-slack> <alekar> i know if you issue an IOU / digital money you are required to keep a large amount in physical bank accounts
<stellar-slack> <alekar> @buhrmi: i'd love to see what you're doing- so you're project is really giving people like me the ability to send money to themselves/others?- if you aren't making money from it either your KYC/AML requirements aren't there? Whats the sign up process and have you designed the interface etc? from my research of all the money transfer and crypto gateways the biggest barriers are the sign ups-it takes quite a
<stellar-slack> company that is clearly killing it in this area ( great rates- super easy sign up- free debit card and withdrawals)
<stellar-slack> <buhrmi> Yeah well if u hold trust from someone for usd as long u actually possess the usd at any point in time so you can trade it back then there should be no problem
<stellar-slack> <buhrmi> Legally
<stellar-slack> <alekar> yep, its just if you wanted to provide a more federated gateway service- so you also operate the EUR end, and they trade that USD to Euro, you would either need liquidity or to have a relationship with a marker maker..
<stellar-slack> <buhrmi> "Relationship" is hard to define in that context
<stellar-slack> <buhrmi> But yes
<stellar-slack> <buhrmi> That relationship would have to mean "entitlement"
<stellar-slack> <dzham> @alekar: yeah, that *ought* to be the case.
<stellar-slack> <dzham> As long as you’re not selling air to anyone, there’s a clean record of who holds the titles to the funds
<stellar-slack> <dzham> But you should probably run it by a lawyer :)
<stellar-slack> <buhrmi> Unless u issue air as asset
<stellar-slack> <dzham> I’ve actually put some thought into carbon credits, that’s pretty close :)
<stellar-slack> <buhrmi> If someone trades some usd for your air u can legally sell air
<stellar-slack> <alekar> lol
<stellar-slack> <buhrmi> @alekar u can see progress on http://github.com/buhrmi/open-core|github.com/buhrmi/open-core
<stellar-slack> <buhrmi> It's supposed to run on my own core network tho but it would work with all stellar core networks
<stellar-slack> <bartek> > i think it's impossible to delete a trustline with the js-stellar-base @buhrmi: it expects strings. I updated stellar-base to throw an error when `limit` is not a string (version 0.3.11)
stevedomin has left #stellar-dev [#stellar-dev]
<stellar-slack> <sacarlson> I assume from what I see after failing to connect to stellar-core testnet is that it got reset
<stellar-slack> <sacarlson> I think scott mentioned yestarday he was planing on upgradeing horizon but didn't hear anything about a stellar-core reset
<stellar-slack> <sacarlson> oh no it's seem i'm in "state" : "Catching up"
<stellar-slack> <sacarlson> this is after I did a full reset cleaned out the db to start again
<stellar-slack> <buhrmi> sacarlson: note that you cannot connect to an official testnet core with my version of the core
<stellar-slack> <buhrmi> i made changes to the consensus protocol on my fork
<stellar-slack> <buhrmi> (dont know if you're still running my core)
<stellar-slack> <sacarlson> no I shut yours down
<stellar-slack> <sacarlson> I was testing my last change of get_lines_balance expecting to find the lines I already created but they aren't there
<stellar-slack> <buhrmi> k
<stellar-slack> <buhrmi> i'm resetting often before the launch
<stellar-slack> <sacarlson> I'm getting a new error now even if I run standalone
<stellar-slack> <sacarlson> I have to go back to fred's 0c4c858... to get anything to even come up
<stellar-slack> <sacarlson> maybe something to do with files intermigled with your new version @buhrmi ? I checked /tmp and don't see any files there
<stellar-slack> <buhrmi> the error message looks like you dont have a validation_seed in your config
<stellar-slack> <sacarlson> it has one, I even took it out thinking if not there it would autocreate one. maybe it's mispelled
<stellar-slack> <sacarlson> but this was working with this same config before
<stellar-slack> <lab> possible my first accepted pr, https://github.com/stellar/stellar-core/pull/723 @monsieurnicolas @jed :)
de_henne has quit [Remote host closed the connection]
<stellar-slack> <jed> lab: I don't get it? cfg.load(cfgFile); will cfg.load("-") ?
<stellar-slack> <sacarlson> as buhrmi said seems my validation_seed must have been the last error as I put it back in with a new validation_seed and reset I get the original fault
<stellar-slack> <sacarlson> as far as I know it was running the same code with same configs. When it failed to come up I tried full reset and still stuck.
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
<stellar-slack> <sacarlson> I'm still running stellar-core commit b179493a328955f8927d367c712bf0dd7341f3e7
<stellar-slack> <bartek> @sacarlson: I’m running 5182572c7cbe76a76ef444682e7213e6e273c7e1 and it works
<stellar-slack> <scott> testnet was reset to 5182572c7cbe76a76ef444682e7213e6e273c7e1 yesterday… I wouldn’t expect any prior version to be able to catchup. The XDR definitions changed
<stellar-slack> <sacarlson> oh thanks for telling us, I'll update
<stellar-slack> <buhrmi> man i'm getting really weird random behaviour with AccountFrame
<stellar-slack> <buhrmi> c++ isn't my strength
<stellar-slack> <sacarlson> ya c++ is not as much fun
<stellar-slack> <sacarlson> ok I now have steller-core 51825... running ok
Kwelstr has quit [Ping timeout: 246 seconds]
Kwelstr has joined #stellar-dev
pixelb has quit [*.net *.split]
[0__0] has quit [*.net *.split]
dobson has quit [*.net *.split]
dobson has joined #stellar-dev
pixelb has joined #stellar-dev
[0__0] has joined #stellar-dev
pixelb has quit [*.net *.split]
[0__0] has quit [*.net *.split]
pixelb has joined #stellar-dev
[0__0] has joined #stellar-dev
DomKM has quit [Quit: Connection closed for inactivity]
<stellar-slack> <scott> If anyone wants to do some review:
<stellar-slack> <scott> The above pull requests implement the API change proposed in: https://github.com/stellar/stellar-protocol/issues/20