1 2018-04-18 00:08:23 <OS-27110> hi all, hop youre all doing good
 2 2018-04-18 00:08:58 <OS-27110> i have a question regarding where to keep the bitcoinf.conf file on a linux system
 3 2018-04-18 00:09:14 <OS-27110> is it ok to put it into /etc/bicoin.conf?
 4 2018-04-18 00:09:19 <OS-27110> is it ok to put it into /etc/bitcoin.conf?
 5 2018-04-18 00:10:57 <OS-27110> the reason i ask is, i created a service account to run bitcoind, and when i try run bitcoin-cli i get an error saying no bitcoin.conf file in my directory
 6 2018-04-18 00:11:39 <OS-27110> is it best practice to add the users i want to the service account group i created and then allow access to /etc/bitcoin.conf
 7 2018-04-18 00:11:41 <OS-27110> thanks
 8 2018-04-18 05:46:23 <smrtz> Hey, can someone point me to where TXs are validated against consensus rules please?
 9 2018-04-18 06:38:18 <wumpus> src/validation.cpp
10 2018-04-18 06:39:15 <wumpus> there are various functions involved, ConnectBlock is probably the most important one
11 2018-04-18 08:03:58 <smrtz> Thanks wumpus
12 2018-04-18 08:03:59 <smrtz> !
13 2018-04-18 16:21:11 <robzon> how do SPV nodes make use of merkle tree root? I have a txid, but I still need all adjacent nodes on the path to the root, right? how do I get them without reconstructing the whole tree?
14 2018-04-18 16:32:46 <AndyS2> maybe I'm wrong, but it's like this: The tx's id whose existance you want to confirm is a leaf of the merkle tree. if your SPV client has all block headers, it knows all merkle roots. now the node the SPV client is takling to only needs to provide log n hashes from the merkle tree (it can leave out all those who don't matter for recalculating the hashes on levels above leafs)
15 2018-04-18 16:33:11 <AndyS2> *from the merkle tree the txid is in
16 2018-04-18 16:34:01 <robzon> yep, but how do I get the required hashes? looking at the protocol I don't see an obvious message that would help me get the merkle proof
17 2018-04-18 16:34:55 <AndyS2> https://i.stack.imgur.com/2Ep7y.png <-- you want to confirm the existance of H_K, so a node provides your SPV client with H_K, H_L, and all other nodes (= hashes) that you need to recalculate the merkle root
18 2018-04-18 16:35:26 <AndyS2> hmm, I never looked at the RPC commands in detail to see how it's done
19 2018-04-18 16:36:14 <AndyS2> maybe I misunderstood your question
20 2018-04-18 16:36:31 <robzon> yeah, let me explain again based on the image you linked, will be much easier :-)
21 2018-04-18 16:37:30 <robzon> so I want to watch for block that contains Hk - to do that I need to know Hl, Hij, Hmnop and Habcdefgh and, of course, merkle root
22 2018-04-18 16:37:55 <robzon> I know Hk and merkle root, how do I efficiently fetch all other required hashes?
23 2018-04-18 16:38:35 <robzon> do I have to get all tx hashes from a block and rebuild the full tree or is there a way to fetch only the minimal set required to verify the path?
24 2018-04-18 19:50:36 <echeveria> robzon: there's a shitty p2p call for that.
25 2018-04-18 19:51:23 <echeveria> when you do `filterload` and then `getblock` the matching results come as filtered blocks, that contain the directions of the path you need as a bitmask, and the hashes.
26 2018-04-18 21:17:37 <robzon> echeveria: thanks! will look into it