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
Labels
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 toget_account_data()
that behaves similarly toencode()
anddecode()
: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 anInvalidBundle
object in the result. This object is a container that holds theBundle
and exception objects.errors='ignore'
: Any bundle that fails validation is silently dropped from the result.The text was updated successfully, but these errors were encountered: