Skip to content
Browse files

--tracerpc option for regression tests

Run tests with --tracerpc and all RPC calls will dump to the console.
Very helpful for debugging.
  • Loading branch information...
gavinandresen committed Oct 23, 2014
1 parent c47b9c7 commit ec01243c14294c0e6f25d093156aae6b4458466e
Showing with 6 additions and 0 deletions.
  1. +6 −0 qa/rpc-tests/
@@ -48,9 +48,15 @@ def main(self):
help="Source directory containing bitcoind/bitcoin-cli (default: %default%)")
parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"),
help="Root directory for datadirs")
parser.add_option("--tracerpc", dest="trace_rpc", default=False, action="store_true",
help="Print out all RPC calls as they are made")
(self.options, self.args) = parser.parse_args()

if self.options.trace_rpc:
import logging

os.environ['PATH'] = self.options.srcdir+":"+os.environ['PATH']


0 comments on commit ec01243

Please sign in to comment.
You can’t perform that action at this time.