From d6922e8d0786632cc57349d64dcf4e8eb0e05636 Mon Sep 17 00:00:00 2001 From: Victor Nakoryakov Date: Fri, 13 Apr 2018 12:18:49 +0300 Subject: [PATCH] feat(docs): add `isSettingUp` to the C++ API reference --- docs/reference/node-cpp-api/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/reference/node-cpp-api/README.md b/docs/reference/node-cpp-api/README.md index 6eac6d9a..6f096ceb 100644 --- a/docs/reference/node-cpp-api/README.md +++ b/docs/reference/node-cpp-api/README.md @@ -107,6 +107,13 @@ Returns a pointer to the persistent state storage for the current node. The updated directly, with the pointer returned, no commit is required after a change. + +#### `bool isSettingUp()` + +Returns `true` if the evaluation takes place inside the very first transaction. +Use the function to run some initialization code once on boot, or prevent +undesirable initial values emission. + #### `TimeMs transactionTime()`