Page MenuHomePhabricator

Add a dumpcoins RPC to dump the coins available in the wallet
ClosedPublic

Authored by deadalnix on Dec 13 2020, 15:26.

Details

Summary

As per title. This turned useful for debugging, so I productionized it.

Test Plan
ninja all check-all

Added a simple integration test.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Failed tests logs:

====== Bitcoin ABC functional tests: abc_wallet_dumpcoins.py ======

------- Stdout: -------
2020-12-13T15:29:14.935000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20201213_152803/abc_wallet_dumpcoins_210
2020-12-13T15:29:15.192000Z TestFramework (ERROR): JSONRPC error
Traceback (most recent call last):
  File "/work/test/functional/test_framework/test_framework.py", line 120, in main
    self.run_test()
  File "/work/test/functional/abc_wallet_dumpcoins.py", line 22, in run_test
    assert_equal(node.dumpcoins(), {})
  File "/work/test/functional/test_framework/coverage.py", line 48, in __call__
    return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
  File "/work/test/functional/test_framework/authproxy.py", line 159, in __call__
    raise JSONRPCException(response['error'], status)
test_framework.authproxy.JSONRPCException: Method not found (-32601)
2020-12-13T15:29:15.243000Z TestFramework (INFO): Stopping nodes
2020-12-13T15:29:15.445000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20201213_152803/abc_wallet_dumpcoins_210
2020-12-13T15:29:15.445000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20201213_152803/abc_wallet_dumpcoins_210/test_framework.log
2020-12-13T15:29:15.446000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20201213_152803/abc_wallet_dumpcoins_210' to consolidate all logs

Each failure log is accessible here:
Bitcoin ABC functional tests: abc_wallet_dumpcoins.py

majcosta requested changes to this revision.Dec 13 2020, 17:08
majcosta added a subscriber: majcosta.
majcosta added inline comments.
test/functional/abc_wallet_dumpcoins.py
5–7 ↗(On Diff #26355)

give it an accurate description

This revision now requires changes to proceed.Dec 13 2020, 17:08
This revision is now accepted and ready to land.Dec 13 2020, 17:32