<p>No, to the best of my knowledge there is no user-level command to reindex specific blocks.  It's all or nothing.</p>

<p>If you want such a feature you'll have to write the code.</p>

<p>It seems to me kind of unlikely that the index would be wrong only for one specific block, so I would suggest looking for other explanations for the behavior you're seeing.</p>

CC BY-SA 3.0
2018-04-13T14:07:39.827Z
2018-04-13T14:07:39.827Z
Nate Eldredge
<p>I came across a block on my Fullnode that throws an error when attempting the <code>gettrawrtransaction</code> RPC. </p>

<p><code>No such mempool or blockchain transaction. Use gettransaction for wallet transactions.</code></p>

<p>It's only one block so far that seems like it got corrupted or improperly indexed. If I change the block/transaction, the JSON-RPC call works. I have <code>txindex=1</code> set in <code>bitcoin.conf</code> </p>

<p>My question is, can I tell <code>bitcoind</code> to reindex only that particular block <code>282455</code>, or do I need to reindex the entire blockchain? If so, what's the fastest method? Setting a higher <code>dbcache</code>?</p>

CC BY-SA 3.0
2018-04-12T23:03:20.410Z
can you see your transaction in that block?
Tailer
CC BY-SA 3.0
2018-04-13T01:20:15.333Z
none of the transactions in that block work with `getrawtransaction`. They aren't my txs. I'm just trying to get the raw data on them, similar to a blockchain explorer.
relik
CC BY-SA 3.0
2018-04-13T14:05:47.913Z
Can you give the txid of one of the transactions that fails for you?
Nate Eldredge
CC BY-SA 3.0
2018-04-14T20:36:35.097Z
@NateEldredge `e73da0c9a5548e62c73b5b297f33ab7605079bcdb00ca8c5afd56bfae835a88c` or any tx in the `282455` block
relik
<bitcoin-core><bitcoind>
Is it possible to reindex specific blocks?
relik
# Is it possible to reindex specific blocks?

(Asked by: username_0 on 2018-04-12)

I came across a block on my Fullnode that throws an error when attempting the `gettrawrtransaction` RPC.

`No such mempool or blockchain transaction. Use gettransaction for wallet transactions.`

It's only one block so far that seems like it got corrupted or improperly indexed. If I change the block/transaction, the JSON-RPC call works. I have `txindex=1` set in `bitcoin.conf`

My question is, can I tell `bitcoind` to reindex only that particular block `282455`, or do I need to reindex the entire blockchain? If so, what's the fastest method? Setting a higher `dbcache`?

**Tags:** bitcoin-core, bitcoind

> **Comments:**
> **username_1**: can you see your transaction in that block?  
> **username_0**: none of the transactions in that block work with `getrawtransaction`. They aren't my txs. I'm just trying to get the raw data on them, similar to a blockchain explorer.  
> **username_2**: Can you give the txid of one of the transactions that fails for you?  
> **username_0**: @username_2 `e73da0c9a5548e62c73b5b297f33ab7605079bcdb00ca8c5afd56bfae835a88c` or any tx in the `282455` block  

---

## 1 answers

### Answer by username_2 on 2018-04-13. Score: 2 | Accepted answer

No, to the best of my knowledge there is no user-level command to reindex specific blocks. It's all or nothing.

If you want such a feature you'll have to write the code.

It seems to me kind of unlikely that the index would be wrong only for one specific block, so I would suggest looking for other explanations for the behavior you're seeing.


---

