enable ivory slog printfs during dawn (ethereum pre-boot validation)

This commit is contained in:
Joe Bryan 2019-06-12 11:03:43 -07:00
parent 3507e5dbf0
commit 1f15266d48

View File

@ -331,12 +331,27 @@ _daemon_come(u3_noun star, u3_noun pill, u3_noun path)
_daemon_dawn(u3_dawn_come(), pill, path);
}
static void
_daemon_slog(u3_noun hod)
{
u3_pier_tank(0, u3k(u3t(hod)));
u3z(hod);
}
/* _daemon_dawn(): boot from keys, validating
*/
void
_daemon_dawn(u3_noun seed, u3_noun pill, u3_noun path)
{
// enable ivory slog printfs
//
u3C.slog_f = _daemon_slog;
u3_pier_boot(sag_w, u3k(u3h(seed)), u3_dawn_vent(seed), pill, path);
// disable ivory slog printfs
//
u3C.slog_f = 0;
}
/* _daemon_exit(): exit parser