You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently return the error code 0 for most RPC errors.
We might want to return the same error codes that zcashd does. (However, we might want to investigate if people rely on them at all before spending time working on this)
Here are some specific instances which we might want to do right away to support specific use cases:
The return codes are not documented. There is a list of them in bitcoin source; we would need to identify which error is returned when in the zcashd source (or do a best-effort of trying to assign the errors that make more sense in each case)
Complex Code or Requirements
No response
Testing
We might want to extend zcash-rpc-diff to test this
Related Work
No response
The text was updated successfully, but these errors were encountered:
For a bit of more context here, @nuttycom tried to run some tests for the lightwalletd GetTransaction grpc method using zcashd and then zebrad as the backend.
~/work/lightwalletd on ᚠfix/get_transaction_notfound [$] via 🐹 v1.22.2 on ☁️ [email protected](us-east1)
✗ grpcurl -d @ na-lax.zcashd.zec.rocks:443 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction <<EOM
{"hash": "OVmYYbd17odbutVyi9YaHZqAbyBzixVG6q/wTdwgEFM="}
EOM
ERROR:
Code: Unknown
Message: -5: No such mempool or blockchain transaction. Use gettransaction for wallet transactions.
~/work/lightwalletd on ᚠfix/get_transaction_notfound [$] via 🐹 v1.22.2 on ☁️ [email protected](us-east1)
✗ grpcurl -d @ zec.rocks:443 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction <<EOM
{"hash": "OVmYYbd17odbutVyi9YaHZqAbyBzixVG6q/wTdwgEFM="}
EOM
ERROR:
Code: Unknown
Message: 0: Transaction not found
Motivation
We currently return the error code 0 for most RPC errors.
We might want to return the same error codes that zcashd does. (However, we might want to investigate if people rely on them at all before spending time working on this)
Here are some specific instances which we might want to do right away to support specific use cases:
getrawtransaction
#8786Specifications
The return codes are not documented. There is a list of them in bitcoin source; we would need to identify which error is returned when in the zcashd source (or do a best-effort of trying to assign the errors that make more sense in each case)
Complex Code or Requirements
No response
Testing
We might want to extend zcash-rpc-diff to test this
Related Work
No response
The text was updated successfully, but these errors were encountered: