Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add optional error_code to transaction and action traces #7108

Merged
merged 5 commits into from
Apr 11, 2019

Conversation

arhag
Copy link
Contributor

@arhag arhag commented Apr 10, 2019

Change Description

Resolves #6898.

Rename parent_action_ordinal to closest_unnotified_ancestor_action_ordinal and remove it from the traces stored by the state history plugin.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

The new parent_action_ordinal field from PR #7044 has been renamed to closest_unnotified_ancestor_action_ordinal.

New optional field error_code has been added to action_trace and transaction_trace. This field should always be empty if the except field in the same object is empty. However, it is possible for except to be non-empty but error_code to be empty (this will be the case for any errors that were not due to the eosio_assert_code intrinsic). If error_code is non-empty, it means the error was due to an assertion failure on a call to eosio_assert_code, and the value will be the error code passed into the eosio_assert_code intrinsic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants