All tx rejected can not approve

+1 vote
m2: create txfilter filter1 '{}' 'function filtertransaction(){return "All transactions rejected!";}'
{"method":"create","params":["txfilter","filter1",{},"function filtertransaction(){return \"All transactions rejected!\";}"],"id":"93805889-1547536629","chain_name":"m2"}

1f2737ec1c2a840531cd7c3839269b2425633f050b8e547b7da8196b24e826f2

m2: approvefrom 1SzKXtqDCyeFYzzL6BaT7ELzUVQYCYefw8rm1F filter1 true
{"method":"approvefrom","params":["1SzKXtqDCyeFYzzL6BaT7ELzUVQYCYefw8rm1F","filter1",true],"id":"37963150-1547536807","chain_name":"m2"}

error code: -26
error message:
Error: The transaction was rejected: 64: The transaction did not pass filter filter1: All transactions rejected!

m2: send 1YzfFyGqd1nWbB8cLoj44ENS6r9TEn9je8U6zJ 0.001
{"method":"send","params":["1YzfFyGqd1nWbB8cLoj44ENS6r9TEn9je8U6zJ",0.001],"id":"92552506-1547536751","chain_name":"m2"}

af65dd989b2a594cdf2a8e983342ad1574b8c22c5477b53098ea3df16a40ee41
asked Jan 15, 2019 by mcuser

1 Answer

0 votes
Yes, you cannot approve a filter which would reject the transaction that performs the approval. This provides a basic sanity check on filter approvals.
answered Jan 15, 2019 by MultiChain
It's not actually possible to approve this filter, as explained in the comment at the top of that code.
...