Jonathan Chappelow

Results 48 issues of Jonathan Chappelow

This complements the Insight socket.io tests in https://github.com/decred/dcrdata/issues/912. To support many non-browser client connections, stress testing needs to be performed on the following components: 1. The dcrdata API HTTP endpoints...

tests

Also support the `If-None-Match` and `If-Modified-Since` _request_ headers, so the client can receive a 304 instead of the old data, saving everyone compute resources and bandwidth.

This complements the HTTP API stress testing issue https://github.com/decred/dcrdata/issues/913 It's important to test with something as close as possible to production. This means N wallet (e.g. Exodus) connections. Clearly not...

tests

The /dev folder should have scripts to backup and restore the PostgreSQL database, with matching data from ~/.dcrdata/data/net

PR https://github.com/decred/dcrdata/pull/887 refactored several packages to facilitate testing of the `explorerUI` page handlers, and added a test of `StatusPage` in the new explorer/explorerroutes_test.go. Tests should be crafted for all of...

tests

We could make an endpoint like `/api/address/{addr}/vins` that lists the transaction inputs that are spending previous outpoints paying to the address, and `/api/address/{addr}/vouts` that lists the outputs that pay to...

enhancement

I've wrestled with this for a while, and it seems like using the Accept header with version in a MIME type parameter (e.g. `Accept: application/json; version=1`), is perhaps the "right...

**EDIT**: This might need more care to "carve out" a v1 module from an existing multi-module repository to avoid ambiguous import issues for Go 1.16 and older users. https://github.com/golang/go/wiki/Modules#is-it-possible-to-add-a-module-to-a-multi-module-repository Since...

When using `txscript.ComputePkScript` with any witness data that is not a P2WPKH, it is assumed to be P2WSH: https://github.com/btcsuite/btcd/blob/31791ba4dc6ef913b1e8eb7bfb6746b1a118e405/txscript/pkscript.go#L253-L262 However, this will return an incorrect pkScript for anything but P2WSH...

For DEX we would like to know: 1. what accounts are configured as the `mixedaccount` and `changeaccount` 2. if mixing is actually enabled (`csppserver` && `mixchange`, not with the ticker...