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 @@ -53,6 +53,21 @@ void CallFunctionInValidationInterfaceQueue(std::function<void ()> func);
53
53
*/
54
54
void SyncWithValidationInterfaceQueue ();
55
55
56
+ /* *
57
+ * Implement this to subscribe to events generated in validation
58
+ *
59
+ * Each CValidationInterface() subscriber will receive event callbacks
60
+ * in the order in which the events were generated by validation.
61
+ * Furthermore, each ValidationInterface() subscriber may assume that
62
+ * callbacks effectively run in a single thread with single-threaded
63
+ * memory consistency. That is, for a given ValidationInterface()
64
+ * instantiation, each callback will complete before the next one is
65
+ * invoked. This means, for example when a block is connected that the
66
+ * UpdatedBlockTip() callback may depend on an operation performed in
67
+ * the BlockConnected() callback without worrying about explicit
68
+ * synchronization. No ordering should be assumed across
69
+ * ValidationInterface() subscribers.
70
+ */
56
71
class CValidationInterface {
57
72
protected:
58
73
/* *
You can’t perform that action at this time.
0 commit comments