Skip to content

[#321] Use '--mode mockup' in tezos-client calls

Roman Melnikov requested to merge rvem/#321-mockup-mode-in-morley-client into master

Description

Problem: 'tezos-client' has '--mode' option and it's possible to use 'mock' node using which 'tezos-client' doesn't perform any actual RPC requests to the node from the config. Using such mode can speed up nettests and reduce amount of unexpected RPC failures that can be caused by 'tezos-client'.

Solution: Add '--mode ' to the 'tezos-client' call arguments and use mockup mode for all calls that don't perform any actions on the real chain and only use data that is stored in the 'tezos-client' directory (e.g. keys and addresses).

Related issue(s)

Resolves #321 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports