[bitcoin/bitcoin] Drop support for getrawtransaction for confirmed tx without txindex (#13931)

sipa commented on this pull request.

> — const Coin& coin = AccessByTxid(*pcoinsTip, hash);
— if (!coin.IsSpent()) pindexSlow = chainActive[coin.nHeight];
— }
— }

— if (pindexSlow) {
— CBlock block;
— if (ReadBlockFromDisk(block, pindexSlow, consensusParams)) {
— for (const auto& tx : block.vtx) {
— if (tx->GetHash() == hash) {
— txOut = tx;
— hashBlock = pindexSlow->GetBlockHash();
— return true;
— }
— }
— }

No, not accidental. Just wrong.

Добавить комментарий