cculianu / Fulcrum

A fast & nimble SPV Server for BCH, BTC, and LTC
Other
331 stars 76 forks source link

consider: get block header by hash #191

Closed monsterbitar closed 10 months ago

monsterbitar commented 1 year ago

It would be useful in some cases to be able to request a block header from a block header hash.

I propose a method that takes a block header hash as input, and provides a dictionary of the block header hex and the respective block height.

If no such header is available, instead return an error string indicating that the header was not found in the current chain.

cculianu commented 10 months ago

Ok, added in #211. Will merge that and 210 later today/tomorrow.

cculianu commented 10 months ago

Implemented in #211