Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Make invalid bundle handling in get_account_data configurable #179

Open
todofixthis opened this issue Jun 4, 2018 · 0 comments
Open

Make invalid bundle handling in get_account_data configurable #179

todofixthis opened this issue Jun 4, 2018 · 0 comments

Comments

@todofixthis
Copy link
Contributor

Once an invalid transaction gets broadcast, it is very difficult to remove it from the Tangle. This can effectively prevent a client from using the get_account_data() command (see #178 ).

Proposed workaround: Add an errors argument to get_account_data() that behaves similarly to encode() and decode():

  • errors='strict' (default): Raise an exception if any bundle fails validation (this is the current behaviour).
  • errors='replace': Any bundle that fails validation is replaced by an InvalidBundle object in the result. This object is a container that holds the Bundle and exception objects.
  • errors='ignore': Any bundle that fails validation is silently dropped from the result.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant