How to Disable Complex Checks
Overview
Before you test your Mesh API implementation, we recommend that you disable balance tracking and reconciliation. Balance tracking checks that the balance for an address does not go below zero. Reconciliation ensures that the balance that you calculated matches the balance returned by the /account/balance
endpoint.
Reminder: After you have completed testing your Mesh API implementation, you need to enable these complex checks again! Your Mesh API implementation is complete when these complex checks pass the mesh-cli
tool testing.
You can manage balance tracking with the balance_tracking_disabled
field. To manage reconciliation, edit the value of the reconciliation_disabled
field. These fields are part of the data
object of the Mesh API configuration file.
Disabling and Enabling Complex Checks
To disable and enable balance tracking and reconciliation, perform the following steps:
- Disable balance tracking and reconciliation in your Mesh API implementation (the
config
file). Set the values for thereconciliation_disabled
andbalance_tracking_disabled
fields totrue
. - Run the
check:data
andcheck:construction
tests with themesh-cli
tool. (Read our How to Test your Mesh API Implementation documentation.) - Enable balance tracking and reconciliation in your Mesh API implementation by setting the values of the
reconciliation_disabled
andbalance_tracking_disabled
fields tofalse
. - Run the
check:data
andcheck:construction
tests again.
Your Mesh API implementation is now complete.