Author

Topic: Full node with search function??? (Read 1365 times)

hero member
Activity: 2954
Merit: 796
January 01, 2016, 05:23:08 AM
#14
Yeah sounds like a lot of hassle, think i will just continue to use a blockexplorer website.  

Yes. I also use website block explorer. That is fast and I do not type command lines. I can see more with block explorer.
hero member
Activity: 1106
Merit: 521
December 31, 2015, 10:19:58 AM
#13
Yeah sounds like a lot of hassle, think i will just continue to use a blockexplorer website. 
legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
December 30, 2015, 11:41:10 AM
#12
[...]able to search for any transaction without using a 3rd party website?
Code:
getrawtransaction
That seems like a lot of hassle just to do a search.

That's just lazy if you ask me. It can be done in two commands(including  txindex=1 which you only need to use once).

Ok its not hassle but its not very convenient is it,Id be faster just opening a third party explorer than finding out the command ,It could just be a search bar thats just for lazy people right?. Why have it more complicated than it needs to be?? I mean at the moment there is no incentive to run a node other than supporting bitcoin which most adopters arent going to do,I didnt think it would be such a big issue putting something like this in but obviously it is.

Anyway we have cleared up already that nobody wants it in the core and its too hard on resources.
administrator
Activity: 3962
Merit: 3162
December 30, 2015, 11:12:32 AM
#11
[...]able to search for any transaction without using a 3rd party website?
Code:
getrawtransaction
That seems like a lot of hassle just to do a search.

That's just lazy if you ask me. It can be done in two commands(including  txindex=1 which you only need to use once).
legendary
Activity: 1176
Merit: 1020
December 30, 2015, 06:58:27 AM
#10
Sound like im the only person that would think this would fit nicely into bitcoin core then =p

Everyone would be happy to have the functionality, but hardly anyone would be willing to put up with the cost.  You probably just don't have a sense of what a block explorer entails based on your previous comment about already having the ledger on the computer.  The blockchain is basically a highly compressed record that is not amenable to quickly searching by address.  A service like blockchain.info has a custom database that they created from the blockchain, but who's data structures are searchable by address, balance, etc..  Such a database could be many times larger than the standard blockchain, and I think it would take something like a week of CPU time to do all the indexing.
sr. member
Activity: 412
Merit: 287
December 29, 2015, 03:36:14 PM
#9
Github is a good place to discuss this stuff! An address based index was discussed recently: https://github.com/bitcoin/bitcoin/pull/6835 but ultimately, it would result in unnecessary bloat for a full node. Arbitrary searches (eg, all tx's with *this* public key) involve a full scan of every block, so it's an intensive task.

The Unix way is to write a simple command, that does one thing. Trying to meet everyone's needs is impossible, so best to allow specialized apps to flourish as separate projects.
legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
December 28, 2015, 07:37:05 AM
#8
Obviously there is no need for it but if you have the whole ledger sitting on your computer you would think you wouldn't need a third party to access it really.  Not a must but would be a welcome feature. 

As others explained already, there are ways to access the ledger - just not out-of-the-box with a nice GUI.  So if you want, you can, but since most people probably don't need that every day, it makes sense to not bloat Bitcoin Core's UI with it.

Sound like im the only person that would think this would fit nicely into bitcoin core then =p
legendary
Activity: 1135
Merit: 1166
December 28, 2015, 07:31:55 AM
#7
Obviously there is no need for it but if you have the whole ledger sitting on your computer you would think you wouldn't need a third party to access it really.  Not a must but would be a welcome feature. 

As others explained already, there are ways to access the ledger - just not out-of-the-box with a nice GUI.  So if you want, you can, but since most people probably don't need that every day, it makes sense to not bloat Bitcoin Core's UI with it.
legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
December 27, 2015, 10:01:24 PM
#6
There is, kind of. You need to use the debug console. In the debug console, you can get information about a block using
Code:
getblock

where is the hash of the block.
You can get the hash by using
Code:
getblockhashs
where is the block height.

You can also get transaction info by using
Code:
getrawtransaction
Where is the txid. This won't always work since Bitcoin Core doesn't index all of the transactions by default. If you want to be able to search every single transaction in the blockchain, then you will need to enable txindex by adding
Code:
txindex=1
to your bitcoin.conf file or add -txindex to the command that starts up Bitcoin Core.

That seems like a lot of hassle just to do a search. i would be easier just using blockchain.info or something similar. i wonder if they will implement this into later updates. i know its not essential but it seems like it would be kind of handy and convenient to have built into the node. it atleast gives a small bit of incentive to actually run the full node in that you can search it as well.


I don't see a need to implement such features on Core. You can use existing websites or setup a blockchain explorer yourself

Obviously there is no need for it but if you have the whole ledger sitting on your computer you would think you wouldn't need a third party to access it really.  Not a must but would be a welcome feature. 
legendary
Activity: 1512
Merit: 1012
December 27, 2015, 09:20:10 PM
#5
There is, kind of. You need to use the debug console. In the debug console, you can get information about a block using
Code:
getblock

where is the hash of the block.
You can get the hash by using
Code:
getblockhashs
where is the block height.

You can also get transaction info by using
Code:
getrawtransaction
Where is the txid. This won't always work since Bitcoin Core doesn't index all of the transactions by default. If you want to be able to search every single transaction in the blockchain, then you will need to enable txindex by adding
Code:
txindex=1
to your bitcoin.conf file or add -txindex to the command that starts up Bitcoin Core.

That seems like a lot of hassle just to do a search. i would be easier just using blockchain.info or something similar. i wonder if they will implement this into later updates. i know its not essential but it seems like it would be kind of handy and convenient to have built into the node. it atleast gives a small bit of incentive to actually run the full node in that you can search it as well.

I don't see a need to implement such features on Core. You can use existing websites or setup a blockchain explorer yourself
legendary
Activity: 4228
Merit: 1313
December 27, 2015, 05:44:28 PM
#4
There is, kind of. You need to use the debug console. In the debug console, you can get information about a block using
Code:
getblock

where is the hash of the block.
You can get the hash by using
Code:
getblockhashs
where is the block height.

You can also get transaction info by using
Code:
getrawtransaction
Where is the txid. This won't always work since Bitcoin Core doesn't index all of the transactions by default. If you want to be able to search every single transaction in the blockchain, then you will need to enable txindex by adding
Code:
txindex=1
to your bitcoin.conf file or add -txindex to the command that starts up Bitcoin Core.

That seems like a lot of hassle just to do a search. i would be easier just using blockchain.info or something similar. i wonder if they will implement this into later updates. i know its not essential but it seems like it would be kind of handy and convenient to have built into the node. it atleast gives a small bit of incentive to actually run the full node in that you can search it as well.

I think it is much more likely that the recommendation will be to use an add on web (or other) interface that queries Bitcoin core versus having it integrated into Bitcoin core itself.
legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
December 27, 2015, 03:28:44 PM
#3
There is, kind of. You need to use the debug console. In the debug console, you can get information about a block using
Code:
getblock

where is the hash of the block.
You can get the hash by using
Code:
getblockhashs
where is the block height.

You can also get transaction info by using
Code:
getrawtransaction
Where is the txid. This won't always work since Bitcoin Core doesn't index all of the transactions by default. If you want to be able to search every single transaction in the blockchain, then you will need to enable txindex by adding
Code:
txindex=1
to your bitcoin.conf file or add -txindex to the command that starts up Bitcoin Core.

That seems like a lot of hassle just to do a search. i would be easier just using blockchain.info or something similar. i wonder if they will implement this into later updates. i know its not essential but it seems like it would be kind of handy and convenient to have built into the node. it atleast gives a small bit of incentive to actually run the full node in that you can search it as well.
staff
Activity: 3458
Merit: 6793
Just writing some code
December 27, 2015, 10:13:14 AM
#2
There is, kind of. You need to use the debug console. In the debug console, you can get information about a block using
Code:
getblock

where is the hash of the block.
You can get the hash by using
Code:
getblockhashs
where is the block height.

You can also get transaction info by using
Code:
getrawtransaction
Where is the txid. This won't always work since Bitcoin Core doesn't index all of the transactions by default. If you want to be able to search every single transaction in the blockchain, then you will need to enable txindex by adding
Code:
txindex=1
to your bitcoin.conf file or add -txindex to the command that starts up Bitcoin Core.
legendary
Activity: 1008
Merit: 1000
★YoBit.Net★ 350+ Coins Exchange & Dice
December 27, 2015, 06:40:25 AM
#1
ive been running a full node for a while now but i was surprised that since i hold the full ledger on my pc then shouldn't i be able to search for any transaction without using a 3rd party website? Or is this already a feature and ive just completely missed how to do it?
Jump to: