namecoin / namecoin-legacy

Legacy client. New version here: https://github.com/namecoin/namecoin-core Note the release branch! - Official website:
https://namecoin.org
MIT License
448 stars 177 forks source link

support -txindex and -reindex #193

Closed testalt closed 10 years ago

testalt commented 10 years ago

Hi,

I noticed that last version does not support -txindex and -reindex, is there any plan to add support ?

Thanks

domob1812 commented 10 years ago

-txindex is not necessary, as Namecoin keeps an index of all transactions anyway. (Use getrawtransaction or decoderawtransaction to access non-wallet transactions.)

This will change when we switch to a version based on the latest Bitcoin Core at some point in the future, but then both arguments will be supported as they are in Bitcoin. It is not clear when that will be the case, though.

testalt commented 10 years ago

Thanks. Namecoind does not return a list of transaction hashes for a block, is there a way to get it ?

testalt commented 10 years ago

Specifically, i need to get a list of transaction hashes for a block via RPC

domob1812 commented 10 years ago

Both getblock and getblockbycount do that (in the tx field).

domob1812 commented 10 years ago

Closing.