Scan functions take a scanstackelt.

From this, the current node and version are recoverable.