MCPcopy Create free account
hub / github.com/EvoMap/evolver / logStakeEvent

Function logStakeEvent

src/gep/validator/stakeBootstrap.js:58–73  ·  view source on GitHub ↗
(event, data)

Source from the content-addressed store, hash-verified

56}
57
58function logStakeEvent(event, data) {
59 try {
60 const line = Object.assign({ evt: 'validator_stake', phase: event, ts: new Date().toISOString() }, data || {});
61 console.log('[evomap-validator-stake] ' + JSON.stringify(line));
62 } catch (_) {
63 // best-effort
64 }
65 try {
66 const sync = require('../../sync-engine');
67 if (sync && typeof sync.log === 'function') {
68 sync.log('validator_stake_' + event, data || {});
69 }
70 } catch (_) {
71 // sync-engine is optional in some test/CLI contexts
72 }
73}
74
75function buildStakeHubHeaders() {
76 const buildHeaders = buildNodeScopedHubHeaders || buildHubHeaders;

Callers 1

ensureValidatorStakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected