XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.5k stars 1.45k forks source link

Reporting Mode: Attempting to retrieve pseudotransaction with "tx" returns "txnNotFound" (Version: 1.10.1) #4209

Open intelliot opened 2 years ago

intelliot commented 2 years ago

Reported by: @natenichols @ckniffen

Issue Description

When attempting to retrieve a pseudo-transaction from a full history Reporting Mode server, rippled returns "txnNotFound".

Steps to Reproduce

Example: Amendment fixPayChanRecipientOwnerDir with key D2F8E457D08ACB185CDE3BB9BB1989A9052344678566785BACFB9DFDBDEDCF09

{ "method": "tx", "transaction": "D2F8E457D08ACB185CDE3BB9BB1989A9052344678566785BACFB9DFDBDEDCF09" }

When I request this with transaction_entry, the transaction is in fact there. (using the tx hash and the ledger index)

When looking up the ledger that the tx is in, the tx doesn't appear there either: https://xrpl.org/websocket-api-tool.html?server=wss%3A%2F%2Fs1.ripple.com%2F&req=%7B%22id%22%3A14%2C%22command%22%3A%22ledger%22%2C%22ledger_index%22%3A%2255161089%22%2C%22full%22%3Afalse%2C%22accounts%22%3Afalse%2C%22transactions%22%3Atrue%2C%22expand%22%3Afalse%2C%22owner_funds%22%3Afalse%7D

(When we look up other transactions from the same ledger, 55161089, "tx" finds them just fine.)

The pseudotransaction:

Expected Result

Pseudotransaction details in response

Actual Result

txnNotFound

Environment

rippled Reporting Mode (s1/s2.ripple.com)

Note: xrplcluster is not affected since those are p2p FH nodes (not Reporting Mode)

Note: Some newer amendment pseudotransactions are retrievable, so not all are affected.

cjcobb23 commented 2 years ago

@natenichols does this affect all reporting mode servers? Or just some?

mDuo13 commented 1 year ago

I (re-)opened #2597 for this issue. The OP there has some test cases that seem to work.

(Also, confirming that this still applies to v1.10.1)

intelliot commented 1 year ago

Example: https://livenet.xrpl.org/transactions/97FD0E35654F4B6714010D3CBBAC4038F60D64AD0292693C28A1DF4B796D8469

Appears to affect all reporting mode servers.

intelliot commented 1 year ago

@injaelee @mounikakun can we check whether this problem occurs in Clio?