DLTcollab / tangle-accelerator

Accelerate IOTA transactions by caching API requests and redirecting to faster alternatives
MIT License
23 stars 16 forks source link

fix(mam): Move definition to avoid SEGV fault #726

Closed howjmay closed 4 years ago

howjmay commented 4 years ago

Define mam_encrypt_key_t object in the middle of the function would cause SEGV when the mam_encrypt_key_t object being freed.

And using ta_error_to_string to generate the string which is going to be printed in logger.

For #706