Action: Publish a Operation through the Node RPC which references a branch/block that is older than allowed.
Observed Behavior: Node returns Operation Id, Operation gets published to mempool successfully but will immediately be rendered invalid.
Expected Behavior: Node returns error message, Operation not spread to network.
Use Case: Integrated Wallet system which would need to know whether the publishing of the transaction was successful. It is understood that just publishing does not guarantee inclusion but if it is known that the transaction will never be valid, it would be nice to get an error.
Is this expected behavior or a bug? Thinking outside our system it seems that it can also be used to spam Tezos nodes since they will store transactions which will never cost anybody anything, since they are invalid.