Follower mode that 1) tries each transaction as it hits the mempool, 2) notifies an observer of the result
Is your feature request related to a problem? Please describe. https://github.com/stacks-network/stacks-blockchain/issues/3190 suggested a reactive method of debugging stalled user transactions, in which we make a new endpoint, and query this endpoint whenever we have a stuck transaction.
This issue presents a proactive variation, in which we pre-cache the processing outcome for each tranaction.
We can make follower mode where the follower will try every transaction it receives in its mempool, against the chain tip current when the transaction is tried.
This way, every transaction is evaluated once when it hits the mempool.
Using the observer infrastructure, we can make a new event for "transaction was initially tried", and send the (txid, tx, outcome) proactively downstream to an API/explorer node.
This way, the user can get information about whether their transaction would succeed, independent of when miners get to it.
And, the user can get good debugging information without even asking us.
Describe the solution you'd like Follower node that can try each transaction that it sees in its mempool, and output an event result to the observer.
Describe alternatives you've considered #3190
Additional context Efforts to improve mempool visibility and iteration.