<stellar-slack> <jed> https://www.stellar.org/laboratory/ supports all the operation types in the transaction builder now
bit2017 has quit [Ping timeout: 256 seconds]
victortyau has quit [Quit: Textual IRC Client: www.textualapp.com]
de_henne_ has joined #stellar-dev
de_henne has quit [Ping timeout: 248 seconds]
stellar-slack1 has joined #stellar-dev
stellar-slack has quit [Ping timeout: 240 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
bit2017 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
<stellar-slack1> <regisg27> Hello, I have a problem when I create an account, I can't figure what's going on. I get an error message "TypeError: undefined is not a function"
<stellar-slack1> <regisg27> I have upgraded stellar-sdk to 5.0
<stellar-slack1> <regisg27> thanks for your help !
<stellar-slack1> <sacarlson> @regisg27: the one thing I think I see is that your example uses the depricated .address * Keypair.address (replaced by Keypair.accountId) in sdk v0.4.0
<stellar-slack1> <regisg27> Nope, issueurStellarKeys.address is just a string ...
<stellar-slack1> <sacarlson> you mean it becomes a string it starts from issueurStellarKeys that is a keypair object
<stellar-slack1> <sacarlson> do you have a line number for the typeError: undefined....
<stellar-slack1> <sacarlson> are you running from a browser or from command line with node.js?
<stellar-slack1> <regisg27> no, issueurStellarKeys is just a json Object storing seed & address 's strings
<stellar-slack1> <sacarlson> ok
<stellar-slack1> <sacarlson> and we don't seem to see all the code so....
<stellar-slack1> <dzham> it’s not just complaining about console.log?
<stellar-slack1> <regisg27> @dzham thanks, I've just made a test, console.log works fine
<stellar-slack1> <regisg27> @sacarlson: I've updated the code to show all lines except secret seed.
koolhead17 has joined #stellar-dev
<stellar-slack1> <regisg27> I've created a new account via https://stellar.github.io/network-explorer/ and got funds from friendbot
<stellar-slack1> <regisg27> then I created a new folder, put the same gist code in a file with the new account address & seed
<stellar-slack1> <regisg27> npm install stellar-sdk
<stellar-slack1> <regisg27> babel-node to start the script
<stellar-slack1> <regisg27> => same result : TypeError: undefined is not a function
koolhead17 has quit [Ping timeout: 240 seconds]
<stellar-slack1> <jed> Does it give you a line number?
<stellar-slack1> <sacarlson> I too seem to have run into a problem with V0.4.0 in TypeError: (intermediate value).addOperation(...).addSigner is not a function; when I changed it from .addSigner(key) to .sign(key) it also fails
<stellar-slack1> <sacarlson> ah I found the difference now
<stellar-slack1> <sacarlson> new working version looks like this now
<stellar-slack1> <dzham> @regisg27: I’m getting a tx_bad_seq on the transaction
<stellar-slack1> <sacarlson> my new expermental wallet that seems to work with sdk v0.4.0 is now published on my github and seen here http://sacarlson.github.io/transaction_toolsv0.4.0.html
<stellar-slack1> <dzham> w/ the 0.4.0 sdk, I get `[TypeError: keyPair.address is not a function]`
<stellar-slack1> <irisli> Keypair.address got replaced by Keypair.accountId
<stellar-slack1> <dzham> yup, that’s in his own code though
<stellar-slack1> <dzham> @regisg27: ` console.log(`compte ${keyPair.accountId()} créé`);`<— change to this, and make sure you have the latest sdk
<stellar-slack1> <dzham> Oh, well, slack formatting *grumble*
<stellar-slack1> <irisli> Maybe you could use triple ticks
<stellar-slack1> <dzham> \o/
<stellar-slack1> <regisg27> Ok, the error wasn't throw in the "catch" but was thrown by keyPair.address() line 35 I forgot to change. Thanks a lot.
dcast has joined #stellar-dev
dcast has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<stellar-slack1> <scott> Just an FYI: I found a bug in pathfinding on horizon yesterday… the source_amount calculation is busted. I’ll look into fixing it today.
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
<stellar-slack1> <powderfan> Is this referring to https://github.com/stellar/horizon/issues/240 ?
<stellar-slack1> <scott> no, https://github.com/stellar/horizon/issues/239, but I’ll look into that as well
<stellar-slack1> <mvaneijk> I have a question about the SCP. Stellar sacrifices liveness to gain safety. What if there is a system with two quorum slices [1, 2, 3, 4, 5] and [4, 5, 6, 7, 8]. Will the failure of 4 and 5 give the same result as the failure of 7 and 8? Failure of 4 and 5 breaks the intersection, so are these two slices "aware" that 4 and 5 are the intersection? @jed @dm
koolhead17 has joined #stellar-dev
<stellar-slack1> <lab> IMHO they(1-8) are in the same quorum.
<stellar-slack1> <lab> so if 4/5 is down, either part can't get consensus because larger half disagree from each node's point of view.
<stellar-slack1> <mvaneijk> ah, so because 4 and 5 intersect, all the nodes inspect the complete quorum
<stellar-slack1> <lab> yes, quorum slice is open and quorum is closed graph
koolhead17 has quit [Ping timeout: 265 seconds]
<stellar-slack1> <mvaneijk> So with the correct intersections the quorum will eventually span the complete network. In terms of network efficiency, wont that degrade the overall speed?
<stellar-slack1> <mvaneijk> *of example 100 nodes
<stellar-slack1> <lab> good question i think we need more professional answer.
<stellar-slack1> <mvaneijk> Thanks for your time!
<stellar-slack1> <lab> oh, it's said in Fig7
<stellar-slack1> <lab> 4/5 failure means 2 networks without intersection.
<stellar-slack1> <mvaneijk> yeah, but stellar favors safety over liveness, so you should think it grinds to a halt then, or maybe this is the edge case
koolhead17 has joined #stellar-dev
<stellar-slack1> <lab> i think it's a character of real p2p network.
<stellar-slack1> <mvaneijk> yeah, sounds logical. So the solution is to choose the intersection wise enough
<stellar-slack1> <lab> not aware of completed disconnectivity(network split)
<stellar-slack1> <lab> both internet and bitcoin cannot avoid split from it.
<stellar-slack1> <mvaneijk> So Stellar can fork than?
<stellar-slack1> <mvaneijk> It happened, but maybe changed with the new SCP
<stellar-slack1> <lab> it's called split not fork. :)
<stellar-slack1> <mvaneijk> Ah, sorry for my terminology
<stellar-slack1> <lab> image GFW complete cut china and others
<stellar-slack1> <lab> there will be two different longest chains
<stellar-slack1> <lab> in PoW network. will you call it fork?
<stellar-slack1> <mvaneijk> I guess I've heard that term quite a lot for Bitcoin
<stellar-slack1> <mvaneijk> But what would be the behavior of stellar when node 4 and 5 are up again and the networks collide, will the longest chain be chosen?
koolhead17 has quit [Remote host closed the connection]
koolhead17 has joined #stellar-dev
<stellar-slack1> <lab> halt i guess
<stellar-slack1> <mvaneijk> because there is no safety, sounds logical
<stellar-slack1> <mvaneijk> thanks for the answers @lab
<stellar-slack1> <mvaneijk> however, would be nice if the last answer can be confirmed :)
<stellar-slack1> <lab> you are welcome. i think we still need more accurate answer from sdf. i didn't read the whole whitepaper.
koolhead17 has quit [Remote host closed the connection]
bit2017 has quit [Ping timeout: 256 seconds]
koolhead17 has joined #stellar-dev
koolhead17 has quit [Remote host closed the connection]
edubai__ has quit [Quit: Connection closed for inactivity]
bit2017 has joined #stellar-dev
<stellar-slack1> <eva> @mvaneijk: thanks for the thoughtful questions - @dm will probably be the best person to give a solid answer/confirmation.
<stellar-slack1> <dm> @mvaneijk: Let's say the system has two quorums [1,2,3,4,5] and [4,5,6,7,8]. If nodes 7 & 8 fail, then node 6 will be blocked, but the system will have safety. On the other hand, if 4 & 5 fail, then nodes 1,2,3 can diverge from 6,7,8. At that point how to interpret events depends on whose perspective you are taking. If you are node 1, for instance, there are two possible interpretations. One is that you hav
<stellar-slack1> safety). Two is that nodes 4,5,6,7,8 have all failed, while the state at 1,2,3 is still the ground truth. The first interpretation make sense if 6,7,8 are important financial institutions. In that case it was imprudent for the whole system to pin its safety on malicious nodes 4 & 5. The second interpretation makes sense if 1,2,3,4,5 are the important nodes, and 6,7,8 are either unimportant nodes, or even fake nod
<stellar-slack1> attack by 4 & 5.
<stellar-slack1> <dm> Also worth noting that the divergence only occurs if 4 & 5 are malicious. If they just fail by crashing, then you lose liveness but not safety.
<stellar-slack1> <jed> Proposal for the stellar memo convention: https://github.com/stellar/stellar-protocol/issues/28
<stellar-slack1> <mvaneijk> @dm: thanks for the explanation. I guess it depends on implementation of stellar-core what happens when two separated chains are joined by reselecting the quorum?
<stellar-slack1> <dm> Yes, this is not something that happens automatically. Either one fork is way more important, in which case the other nodes just reset their state, or else you will need some sort of human-level negotiation---e.g., all US banks have one state of the world, all European banks have another, and some kind of compromise may be required. But this can only result from active misbehavior of nodes 4 & 5, who were impo
<stellar-slack1> and then wrote malicious software to divide the world in two, so would face serious sanctions.
<stellar-slack1> <mvaneijk> "Choose your quorum wisely ..." Thanks for the elaboration. I understand it much better now.
edubai__ has joined #stellar-dev