stellar-slack has quit [Ping timeout: 268 seconds]
stellar-slack has joined #stellar-dev
<stellar-slack> <buhrmi> Morning
<stellar-slack> <sacarlson> :)
<stellar-slack> <buhrmi> Is fiat currency deprecated yet?
<stellar-slack> <sacarlson> you wish
<stellar-slack> <buhrmi> Yes. Yes I do XD
[7] has quit [Disconnected by services]
TheSeven has joined #stellar-dev
<stellar-slack> <joyce> Thanks @sacarlson for good bug find:) It is much appreciated.
<stellar-slack> <sacarlson> my pleasure. but many times it's just brainfarts on my side ha ha
de_henne has joined #stellar-dev
<stellar-slack> <buhrmi> mhh there's a thing i don't quite "get" with the quorum still
<stellar-slack> <buhrmi> why can't failure_safety=0 (running a single node on the network) have unsafe_quorum=false
<stellar-slack> <buhrmi> a single node should be able to trust itself and be safe, no?
<stellar-slack> <dzham> @buhrmi: upvoted
pixelb has joined #stellar-dev
pixelb has quit [Ping timeout: 246 seconds]
Kwelstr has quit [Quit: ugh]
Kwelstr has joined #stellar-dev
<stellar-slack> <sacarlson> my stellar-core is failing to start
<stellar-slack> <sacarlson> havn't tried a full db reset yet as I think maybe they did an upgrade without telling us
<stellar-slack> <sacarlson> a full db reset seems to have corrected the problem
<stellar-slack> <buhrmi> wheee 27 stars ^^ https://github.com/open-core/network
<stellar-slack> <sacarlson> oh 27 people stared it
<stellar-slack> <sacarlson> that's way more that I get ha ha
<stellar-slack> <buhrmi> hehe... i applied for the stripe open source grant so maybe i can work full time on it for a couple of weeks
<stellar-slack> <sacarlson> who pays for that?
<stellar-slack> <buhrmi> if accepted, stripe
<stellar-slack> <sacarlson> never heard of it
<stellar-slack> <buhrmi> you never heard of http://stripe.com|stripe.com ?
<stellar-slack> <sacarlson> nope some kind of a store payment system?
<stellar-slack> <sacarlson> maybe like woocomerce or oscomerce
<stellar-slack> <dzham> @buhrmi: coolio, I didn’t know the did stuff like that
<stellar-slack> <buhrmi> yeah, i didn't know it either but @eva gave me the hint
pixelb has joined #stellar-dev
<stellar-slack> <sacarlson> SF for three months to work full-time yuk
<stellar-slack> <sacarlson> just send me the money ha ha
<stellar-slack> <sacarlson> 3 months paid in Hawaii maybe I'll take
<stellar-slack> <sacarlson> as long as I can bring 2 of my girls with me
<stellar-slack> <buhrmi> @dzham: yes that one
<stellar-slack> <buhrmi> i've never been to the US so... ^^
<stellar-slack> <sacarlson> did you read the fine print? they want you to live in sanfransisco for 3 months
<stellar-slack> <buhrmi> yeah so what
<stellar-slack> <sacarlson> oh ok if you think you might like to visit go for it. I'm just not up for it. been there done that
<stellar-slack> <buhrmi> well it's up to them not me
<stellar-slack> <sacarlson> well in the event you won it would be up to you if you wanted to go or not. but sounds like you up for it
<stellar-slack> <dzham> SF isn’t that bad. Lot’s of worse places in the states.
<stellar-slack> <dzham> I have no idea what kind of project I would spend three months on though, full time.
<stellar-slack> <sacarlson> another new error I haven't seen before Stellar::TransactionResultCode.tx_bad_auth_extra(-10)
<stellar-slack> <scott> sacarlson: If you have provided multiple signatures on a transaction envelope and one or more of them are not used to authorize an operation you’ll get that error.
<stellar-slack> <scott> I usually run into this error when I have a (1 of n) situation with my account’s signers but I mistakenly signed the transaction with more than one key
<stellar-slack> <sacarlson> that sounds like it. it should be 3 signers with the transaction requiring all of them
<stellar-slack> <sacarlson> I've failed to find the structure for the threshold values seen in the stellar-core db
<stellar-slack> <sacarlson> to see if they are what I set them to be
<stellar-slack> <sacarlson> AQADAw==
<stellar-slack> <scott> That’s a base64-then-xdr encoded “ThresholdIndexes” object
<stellar-slack> <scott> `Stellar::ThresholdIndexes.from_xdr Stellar::Convert.from_base64 "AQADAw==“`
<stellar-slack> <sacarlson> I'll give that a try. also looks like my account has the signers as expected with 2 adititional signers on this account GBGABM5XGEWTVPVYQM2F6P44E3LYHKE4BHDGL6QUV2M5G4DULWWTT7UT
<stellar-slack> <sacarlson> each signer having weight of 1
<stellar-slack> <sacarlson> I'm getting the same return from your code above as what I got with mine
<stellar-slack> <scott> Sorry, my mistake. I forgot how it is encoded.
<stellar-slack> <scott> It’s actually just the 4 values encoded one after the other: master weight, low threshold, med threshold, high threshold
<stellar-slack> <scott> `Stellar::Thresholds.parse Stellar::Convert.from_base64 "AQAAAA==“`
<stellar-slack> <sacarlson> so maybe convert from base64 to hex
<stellar-slack> <sacarlson> oh ok
<stellar-slack> <dzham> '\x01\x00\x00\x00'
<stellar-slack> <scott> I’ll raise a note to the stellar-core guys to encode that into an xdr structure
<stellar-slack> <scott> or at least document it some
<stellar-slack> <scott> (still need my coffee)
<stellar-slack> <sacarlson> yup that works {:master_weight=>1, :low=>0, :medium=>3, :high=>3}
<stellar-slack> <sacarlson> so with this setup I assume I would need all three to sign with two aditional signers plus the master
<stellar-slack> <scott> depends upon the weight of the other signers… assuming they are both 1, then yes you would need 3 signatures to authorize any operation other than AllowTrust
<stellar-slack> <sacarlson> ok I'll look at the more tomaro. but I have one more question. of data in the stellar-core data base that being the txmeta colum in txhistory
<stellar-slack> <sacarlson> what structure might that be
<stellar-slack> <sacarlson> I'm clueless what the txmeta data even is
<stellar-slack> <monsieurnicolas> @scott, it's already xdr encoded base64. it's just the thresholds field from AccountEntry. ``` // fields used for signatures // thresholds stores unsigned bytes: [weight of master|low|medium|high] Thresholds thresholds; ```
<stellar-slack> <scott> yeah, like I mentioned, I still was not awake yet :)
<stellar-slack> <sacarlson> ya we got that one already
<stellar-slack> <monsieurnicolas> txhistory meta, you can check https://github.com/stellar/stellar-core/blob/master/docs/db-schema.md#txhistory
<stellar-slack> <sacarlson> all that seems to show is txmeta TEXT NOT NULL TransactionMeta (XDR)
<stellar-slack> <sacarlson> so for example this is txmeta for a transaction:
<stellar-slack> AAAAAAAAAAEAAAABAAKAzQAAAAAAAAAAZc2EuuEa2W1PAKmaqVquHuzUMHaEiRs//+ODOfgWiz8AAEtfm+1FNgAAACEAAAIhAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAAAAoDNAAAAAAAAAABCzwVZeQ9sO2TeFRIN8Lslyqt9wttPtKGKNeiBvzI69wAAABdIdugAAAKAzQAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAAoDNAAAAAAAAAABlzYS64RrZbU8AqZqpWq4e7NQwdoSJGz//44M5+BaLPwAAS0hTdl02AAAAIQAAAiEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==
<stellar-slack> <sacarlson> it's the last unknown structure in the stellar-core database for me at this time
<stellar-slack> <sacarlson> but I think I have most of what I need already
<stellar-slack> <scott> `Stellar::TransactionMeta.from_xdr Stellar::Convert.from_base64 “BIGLONGSTRING”`
<stellar-slack> <sacarlson> cool
Kushed has quit []
<stellar-slack> <sacarlson> Thanks Scott that works. I'll have to take a closer look at what's in it tomaro
<stellar-slack> <scott> :+1: Always happy to help
stellar-slack has quit [Remote host closed the connection]
stellar-slack has joined #stellar-dev
Kushed has joined #stellar-dev
pixelb has quit [Ping timeout: 264 seconds]
pixelb has joined #stellar-dev
de_henne has quit [Remote host closed the connection]
<stellar-slack> <jed> stellar-core master is out of sync with testnet. We are waiting for another change to land and then we will wipe history and restart it
pixelb has quit [Ping timeout: 250 seconds]
pixelb has joined #stellar-dev