Skip validity check for tx command:

* historical tx retrieval no longer needs to pass current validity check;
* introduced additional RPC error code for database deserialization error.

This fixes issue #2597
This commit is contained in:
ShangyanLi
2019-11-01 08:58:02 -04:00
committed by Nik Bougalis
parent ade1afe1b0
commit 11cf27e006
8 changed files with 45 additions and 40 deletions

View File

@@ -88,6 +88,7 @@ constexpr static ErrorInfo unorderedErrorInfos[]
{rpcTXN_NOT_FOUND, "txnNotFound", "Transaction not found."},
{rpcUNKNOWN_COMMAND, "unknownCmd", "Unknown method."},
{rpcSENDMAX_MALFORMED, "sendMaxMalformed", "SendMax amount malformed."},
{rpcDB_DESERIALIZATION, "dbDeserialization", "Database deserialization error."},
};
// C++ does not allow you to return an array from a function. You must