Closed m-pilarczyk closed 6 years ago
Issue by PawelPodkalicki Friday May 11, 2018 at 11:53 GMT Originally opened as https://github.com/adshares/esc/issues/23
Empty log is text "" instead of array []. It does not comply with documentation. Issue could be reproduced by calling get_log with from parameter equal any time in future. For example:
echo '{"run":"get_log","from":"2024236800"}' | ./esc
Below is sample get_log response with empty log.
"tx": { "data": "110100000000000100000000008453F45A8B75CFE69241B39BAA555F14013992301096E79A1CABD401EB4635A5FFA53678F34296D7973012E68879F2F9760385F24AEBCFE3F10A5FC551E73C573FAEF00E" }, "current_block_time": "1525961632", "previous_block_time": "1525961600", "account": { "address": "0001-00000000-9B6F", "node": "1", "id": "0", "msid": "7", "time": "1525961312", "status": "0", "paired_node": "0", "paired_id": "0", "local_change": "1525961312", "remote_change": "1525961568", "balance": "478.04995494215", "public_key": "A9C0D972D8AAB73805EC4A28291E052E3B5FAFE0ADC9D724917054E5E2690363", "hash": "ABCFE935F890AFFD18968FCF214CEE2008A19392CFDABA1B72D5347E14B97448" }, "log": "" }
Comment by jzemlo Friday May 11, 2018 at 14:35 GMT
Fixed
Issue by PawelPodkalicki Friday May 11, 2018 at 11:53 GMT Originally opened as https://github.com/adshares/esc/issues/23
Empty log is text "" instead of array []. It does not comply with documentation. Issue could be reproduced by calling get_log with from parameter equal any time in future. For example:
Below is sample get_log response with empty log.