This repository has been archived by the owner on May 28, 2021. It is now read-only.
[cf-core] Validation Middleware #959
Labels
Enhancement
New feature or request
p0 CRITICAL
CRITICAL bugfixes and security problems leading to potential loss of funds
Description
Currently, there is no way to inject validation into the node. This is a problem, particularly for
uninstall
, when users may be able to prematurely uninstall apps. Client and node should be able to inject middleware to be executed prior to state transitions within the lower level frameworks.Solution
Add an
injectMiddleware
function tocf-core
that will be run prior to the state transitions in each protocol in response to anOP_VALIDATE
call.If the callback passed in errors, the protocol should fail before updating the store.
The text was updated successfully, but these errors were encountered: