Open che-shr-cat opened 8 years ago
I had same problem and solved it myself. because it seems this project hasn't good support team.
open structures.c file located in tgl directory. find these lines at about 1550 and 1595:
if (DS_M->fwd_from_id) {
FF = tgl_peer_get (TLS, tglf_fetch_peer_id (TLS, DS_M->fwd_from_id));
if (!FF) {
tgl_do_get_difference (TLS, 0, 0, 0);
vlogprintf (E_NOTICE, "unknown fwd_id\n");
return NULL;
}
}
tgl_peer_id_t fwd_from_id;
if (DS_M->fwd_from_id) {
fwd_from_id = FF->id;
} else {
fwd_from_id = TGL_MK_USER (0);
}
and modify them as follows :
if (DS_M->fwd_from_id) {
FF = tgl_peer_get (TLS, tglf_fetch_peer_id (TLS, DS_M->fwd_from_id));
if (!FF) {
tgl_do_get_difference (TLS, 0, 0, 0);
vlogprintf (E_NOTICE, "unknown fwd_id\n");
//return NULL;
}
}
tgl_peer_id_t fwd_from_id;
if (DS_M->fwd_from_id && FF) {
fwd_from_id = FF->id;
} else {
fwd_from_id = TGL_MK_USER (0);
}
recompile and enjoy!
Thanks a lot!
How to recompile?
Hello,
I'm using the test branch and when trying to fetch channel history sometimes get crash and the following error log:
Does anyone have the same problem?