0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 23:08:20 +02:00

ircd:Ⓜ️:vm: Propagate authority for hash mismatch for state eval.

This commit is contained in:
Jason Volk 2020-10-03 04:26:49 -07:00
parent b96a98abe9
commit 0e13620604

View file

@ -450,6 +450,12 @@ try
opts.phase.set(m::vm::phase::FETCH_PREV, false);
opts.phase.set(m::vm::phase::FETCH_STATE, false);
opts.notify_servers = false;
// The result won't give us events with a content hash mismatch unless
// they were obtained from an authoritative source. For this we can
// unconditionally allow hash mismatch from here.
opts.redacted = 1;
vm::eval
{
pdus, opts