1 2018-02-27 05:57:48 <bobbyNeedsHelp_> hey guys, I have some troubles understanding pay2sh properly. Anyone happy to help out?
 2 2018-02-27 06:02:01 <stoopkid> bobbyNeedsHelp_: you know how p2pkh works?
 3 2018-02-27 06:03:56 <bobbyNeedsHelp_> hey @stoopkid, I thought so at least :)
 4 2018-02-27 06:03:56 <bobbyNeedsHelp_> So what I have troubles with, is how to redeem a p2sh transaction
 5 2018-02-27 06:04:35 <bobbyNeedsHelp_> damnit , sorry, I gotta run
 6 2018-02-27 06:05:43 <stoopkid> bobbyNeedsHelp_: np ping me when you're back and i'll see if i can help if i'm still around
 7 2018-02-27 07:24:22 <FraJah> moinings
 8 2018-02-27 08:45:18 <LordCow> ohi, not sure if this's the right place to post
 9 2018-02-27 08:45:52 <LordCow> tryin to compile 0.16.0 on FreeBSD with gcc6-6.4
10 2018-02-27 08:46:02 <LordCow> fails at crypto/sha256_sse4.cpp:953:15: error: cannot compile this unexpected cast lvalue yet
11 2018-02-27 08:46:03 <LordCow> : "m"(K256), "m"(FLIP_MASK), "m"(SHUF_00BA), "m"(SHUF_DC00)
12 2018-02-27 08:46:19 <LordCow> gets through if i --disable-asm
13 2018-02-27 08:51:02 <wumpus> with clang it should compile on freebsd, never tested gcc
14 2018-02-27 08:51:38 <LordCow> remember running into clang troubles before
15 2018-02-27 08:51:50 <LordCow> 0.15.1 was fine on this gcc
16 2018-02-27 08:52:04 <LordCow> will try though
17 2018-02-27 08:52:32 <wumpus> if building 0.16 on freebsd you might have to add a signal.h header to util_tests.cpp (dd7e42cbb4390788705031ffa0bc893d26f0597e), but I've seen nothing like the asm issue
18 2018-02-27 08:53:03 <LordCow> add a header? oO
19 2018-02-27 08:53:09 <LordCow> in core
20 2018-02-27 08:53:12 <wumpus> add an include
21 2018-02-27 08:53:19 <LordCow> oh
22 2018-02-27 08:54:07 <LordCow> that's in /test
23 2018-02-27 08:54:13 <wumpus> yes
24 2018-02-27 08:54:28 <LordCow> so doesn't sound like this right
25 2018-02-27 08:54:55 <wumpus> no, it is a different issue you'll likely have when building 0.16 with clang on freebsd, much easier to resolve
26 2018-02-27 08:55:16 <wumpus> the asm issue is unknown, you might want to open an issue on the bug tracker for it
27 2018-02-27 08:55:31 <LordCow> orite with clang
28 2018-02-27 08:55:48 <LordCow> oki
29 2018-02-27 08:55:52 <LordCow> where's the bug tracker? 1st time
30 2018-02-27 08:56:28 <wumpus> freebsd with gcc is rare enough, but it might be a gcc 6.6.4 problem
31 2018-02-27 08:56:56 <wumpus> https://github.com/bitcoin/bitcoin/issues
32 2018-02-27 08:57:19 <LordCow> tx
33 2018-02-27 14:39:43 <dermoth> Hi... I noticed this in my log, yet I do not see the rpcuser script to generate salted auth tokens....
34 2018-02-27 14:40:00 <dermoth> Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.
35 2018-02-27 14:40:43 <dermoth> in share I have the manpahes, and bitdoind manpage refers to that same script. Cannot find it anywhere either
36 2018-02-27 14:41:54 <dermoth> using bitcoin-0.16.0-x86_64-linux-gnu.tar.gz
37 2018-02-27 14:49:59 <wumpus> dermoth: IMO we should not remove rpcuser/rpcpasswd support any time soon, but that script has been moved to rpcauth: https://github.com/bitcoin/bitcoin/tree/master/share/rpcauth
38 2018-02-27 15:46:44 <dermoth> Thanks wumpus
39 2018-02-27 19:38:26 <ProfMac> Is this for "official client" only, or are lab-instrumentation and exploratory questions also welcome?
40 2018-02-27 19:38:54 <Chris_Stewart_5> ProfMac: I think this channel is for broader based development questions, not only bitcoin core
41 2018-02-27 19:42:56 <ProfMac> Ah, thanks.  I am using a client to dump values and generally get a feel for how things work.  At the moment, I have invoked CallRPC and gotten a JSON object with the results of getblock <hash>  Nested down inside of this is "time" for the block.  I want to use that value, and I am just weary of Googling at the moment.  Has anyone else done this, or have time to answer some questions related to parsing JSON?
42 2018-02-27 19:46:54 <arubi> ProfMac, that's the time encoded in the block header right?
43 2018-02-27 19:47:36 <ProfMac> Yes, the same.
44 2018-02-27 19:47:48 <arubi> I wonder if getblockheader is available in your version
45 2018-02-27 19:48:25 <arubi> I think getting the raw block hex wasn't right?  that's why you can't just get the header off the raw block and get the time from there
46 2018-02-27 19:50:05 <ProfMac> I'm using 0.8.1.  The reasons are complicated.  I'm stepping through the programmatic equivalents of getblockhash <n> then getblock <hash> and now to find_value(result, "time")
47 2018-02-27 19:50:54 <arubi> right, you could check if univalue has anything useful in that version..  basically parsing json is not fun
48 2018-02-27 19:51:25 <ProfMac> I'm doing academic stuff, like looking at the agreement between a Poisson distribution, and the distribution of (MedianTimePrev - blockTime)
49 2018-02-27 19:52:10 <ProfMac> Yeah, I've been checking and slogging till 5 am, and now up again.  Just hoped someone else had traveled this road already.
50 2018-02-27 19:52:37 <arubi> is there a reason not to get these values from somewhere else?
51 2018-02-27 19:53:02 <ProfMac> In a very micro sense, I want to get ahold of the "result" object.  It, in turn, contains the "time" value.
52 2018-02-27 19:55:34 <arubi> yea I understand, is there importance to getting these values from the client itself and not a 3rd party that already parsed it all?
53 2018-02-27 19:56:08 <ProfMac> Yes.  I am toolbuilding and trying to comprehend the client as allied projects.
54 2018-02-27 19:58:20 <ProfMac> It's also a nerd system's view thing.  Why grab yet another utility and all the overhead to make it and comprehend it, when I could just inject a half-dozen lines of code into the client.
55 2018-02-27 19:58:28 <arubi> alright, so maybe univalue can do what you want.  I'm not sure what's the state of it at 0.8.1 .  other that maybe parse the raw blocks from disk somehow..
56 2018-02-27 19:58:51 <arubi> because zero lines is even more beautiful than 6 :)
57 2018-02-27 19:59:29 <ProfMac> grep -r univalue . doesn't return anything from the src directory.
58 2018-02-27 19:59:48 <arubi> -ir ?
59 2018-02-27 20:00:25 <ProfMac> nope
60 2018-02-27 20:00:44 <arubi> well :(
61 2018-02-27 20:01:35 <ProfMac> Well, I've learned lots about json_spirit in the past 24 hours ...
62 2018-02-27 22:51:11 <bobbyNeedsHelp_> good morning guys, I wondered if anyone is willing to help me figuring out how p2sh?
63 2018-02-27 22:51:11 <bobbyNeedsHelp_> I think I understand everything until redeeming the transaction
64 2018-02-27 22:51:27 <bobbyNeedsHelp_> good morning guys, I wondered if anyone is willing to help me figuring out how p2sh works?
65 2018-02-27 22:51:27 <bobbyNeedsHelp_> I think I understand everything until redeeming the transaction
66 2018-02-27 22:52:47 <bobbyNeedsHelp_> what I'm trying is to spend into a p2sh using the following script: "OP_SHA256 f0ebe3bd55115e573ba35c2b1b65a923ff64c7a548d0deab73f9314754a9149d OP_EQUAL"
67 2018-02-27 22:53:03 <bobbyNeedsHelp_> and I want to redeem the transaction using the secret: 900df00d
68 2018-02-27 22:53:52 <bobbyNeedsHelp_> however, when redeeming I always get: "error": "Operation not valid with the current stack size"