btcd
btcd copied to clipboard
rpcserver: add gettxoutsetinfo
This PR adds gettxoutsetinfo to the RPC server.
Not sure whether or not to lock the blockchain during the call. Naturally it may take some time due to the size of the UTXO set, so locking may leave the node temporarily nonfunctional. However, not doing so may lead to inconsistent data.
Closes #142
Pull Request Test Coverage Report for Build 373699797
- 0 of 111 (0.0%) changed or added relevant lines in 4 files are covered.
- 3 unchanged lines in 1 file lost coverage.
- Overall coverage decreased (-0.1%) to 53.271%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| database/ffldb/db.go | 0 | 10 | 0.0% |
| btcjson/chainsvrresults.go | 0 | 18 | 0.0% |
| rpcserver.go | 0 | 18 | 0.0% |
| blockchain/chainio.go | 0 | 65 | 0.0% |
| <!-- | Total: | 0 | 111 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| btcec/signature.go | 3 | 92.48% |
| <!-- | Total: | 3 |
| Totals | |
|---|---|
| Change from base Build 362527469: | -0.1% |
| Covered Lines: | 20835 |
| Relevant Lines: | 39111 |