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."
};
if(opts.verify)
if(!verify(event))
throw m::BAD_SIGNATURE
{
"Signature verification failed"
};
if(opts.verify && !verify(event))
throw m::BAD_SIGNATURE
{
"Signature verification failed"
};
// Fetch dependencies
if(opts.fetch)