0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/vm: Minor cleanup.

This commit is contained in:
Jason Volk 2019-04-27 20:01:27 -07:00
parent 010790550d
commit 6d849b5adc

View file

@ -717,12 +717,11 @@ ircd::m::vm::execute_pdu(eval &eval,
fault::EXISTS, "Event has already been evaluated." fault::EXISTS, "Event has already been evaluated."
}; };
if(opts.verify) if(opts.verify && !verify(event))
if(!verify(event)) throw m::BAD_SIGNATURE
throw m::BAD_SIGNATURE {
{ "Signature verification failed"
"Signature verification failed" };
};
// Fetch dependencies // Fetch dependencies
if(opts.fetch) if(opts.fetch)