File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,21 @@ void CallFunctionInValidationInterfaceQueue(std::function<void ()> func);
5454 */
5555void SyncWithValidationInterfaceQueue ();
5656
57+ /* *
58+ * Implement this to subscribe to events generated in validation
59+ *
60+ * Each CValidationInterface() subscriber will receive event callbacks
61+ * in the order in which the events were generated by validation.
62+ * Furthermore, each ValidationInterface() subscriber may assume that
63+ * callbacks effectively run in a single thread with single-threaded
64+ * memory consistency. That is, for a given ValidationInterface()
65+ * instantiation, each callback will complete before the next one is
66+ * invoked. This means, for example when a block is connected that the
67+ * UpdatedBlockTip() callback may depend on an operation performed in
68+ * the BlockConnected() callback without worrying about explicit
69+ * synchronization. No ordering should be assumed across
70+ * ValidationInterface() subscribers.
71+ */
5772class CValidationInterface {
5873public:
5974 virtual ~CValidationInterface () = default ;
You can’t perform that action at this time.
0 commit comments