Commit Graph

6 Commits

Author SHA1 Message Date
Alfredo Garcia ed22dff17b
Get details from transaction differences in `getrawmempool` (#6035)
* add `ZCASH_RPC_COOKIE_FILE` env var

* get details when `getrawmempool` call differs

* remove non needed cookie file argument in zebra call

* replace cookie args with extra agrs

* read hex from file

* use jq for transactions loop

* dump transactions from the zcashd mempool

* apply suggestions from code review

Co-authored-by: teor <teor@riseup.net>

---------

Co-authored-by: teor <teor@riseup.net>
2023-02-01 13:22:43 +00:00
teor ac6e67d0ee
Make zcash-rpc-diff always do Zebra then zcashd (#5822) 2022-12-09 05:21:26 +00:00
teor 211dbb437b
1. fix(rpc): Fix slow getblock RPC (verbose=1) using transaction ID index (#5307)
* Add RPC timing to zcash-rpc-diff

* Use transaction hash index for verbose block requests, rather than block data
2022-10-02 23:34:44 +00:00
teor 1f7e621e34
change(test): add an identifiable suffix to zcash-rpc-diff temp directories (#4577)
* Add an identifiable suffix to zcash-rpc-diff temp directories

* Explain why we need a fallback temp command

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-06-21 11:31:34 +00:00
teor 12e8130941
fix(state): return non-finalized UTXOs and tx IDs in address queries (#4356)
* Assert that address TxIDs and UTXOs are in chain order

* Always output colour by default in zcash-rpc-diff

* Cross-check getaddressutxos and getaddressbalance in zcash-rpc-diff

* Make balances with no UTXOs match in zcash-rpc-diff

* Add some TODOs

* Display the actual connected node software in zcash-rpc-diff

* Log address UTXOs request summaries

* Log address count for address UTXO requests

* Simplify zcash-rpc-diff node names

* Log chain address UTXOs request processing

* Stop ignoring all non-finalized UTXOs in address queries

* Make zcash-rpc-diff node names more consistent

* Downgrade logs to debug level

* Stop ignoring all non-finalized tx IDs in address queries
2022-05-11 21:43:17 +00:00
teor 2d783f3138
test(rpc): Add a script for comparing zcashd and zebrad RPC responses (#4219)
* Add a tool for comparing zcashd and zebrad RPC responses

* Add the network to the RPC diff logs

This helps diagnose main/test mismatches.

* Warn when heights or networks are different

* Move diff script to utils

* Document zcash-rpc-diff script

* Rename a confusing internal script env var
2022-05-01 15:45:32 +00:00