0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-30 02:32:43 +01:00

ircd:Ⓜ️ Indicate to event:🆔:buf it was written to.

This commit is contained in:
Jason Volk 2018-03-26 17:48:38 -07:00
parent 47edaed3a6
commit e179915008

View file

@ -24,10 +24,13 @@ ircd::m::event_id(const event &event,
const const_buffer &hash) const const_buffer &hash)
{ {
char readable[b58encode_size(sha256::digest_size)]; char readable[b58encode_size(sha256::digest_size)];
return id::event const id::event ret
{ {
buf, b58encode(readable, hash), my_host() buf, b58encode(readable, hash), my_host()
}; };
buf.assigned(ret);
return ret;
} }
ircd::m::id::event ircd::m::id::event