Open ShubhamBhut opened 1 year ago
Hey @sr-gi, Sincere apologies for the formatting mistakes. I believe this commit should solve everything; except I couldn't think of any new & better name for the updated methods.
There's something I just realized while manually testing this.
IIRC if two subscriptions overlapped, the user was only supposed to be storing the latest receipt. However, I just tested this and two receipts were returned where receipt_a
ranged Ta-Tb
, and receipt_b
ranged Ta-Tc
with c>b
.
Does this ring a bell @mariocynicys?
No worries @ShubhamBhut, this is not due to your PR, but we may have forgotten to remove some data in an older PR.
IIRC if two subscriptions overlapped, the user was only supposed to be storing the latest receipt. However, I just tested this and two receipts were returned where receipt_a ranged Ta-Tb, and receipt_b ranged Ta-Tc with c>b.
Revising this, we made the merger on the tower side and not the client side.
The client side though gets it's subscription summary in memory updated to the merger of the two overlapping receipts, but all the receipts are stored in the DB nonetheless.
We should delete those receipts since the last one already covers all of the past overlapping ones, so to get a cleaner output from getregistrationreceipt
.
IIRC if two subscriptions overlapped, the user was only supposed to be storing the latest receipt. However, I just tested this and two receipts were returned where receipt_a ranged Ta-Tb, and receipt_b ranged Ta-Tc with c>b.
Revising this, we made the merger on the tower side and not the client side. The client side though gets it's subscription summary in memory updated to the merger of the two overlapping receipts, but all the receipts are stored in the DB nonetheless. We should delete those receipts since the last one already covers all of the past overlapping ones, so to get a cleaner output from
getregistrationreceipt
.
Referenced this here https://github.com/talaia-labs/rust-teos/issues/208
I am having some issues with squashing, I will submit squashed PR after resolving them. I am submitting code for review in case my squashing issues remain longer.
@mariocynicys care to give this a look when you have some time?
fixes #97
@mariocynicys @sr-gi can you pls have a look at this ? I am actually pretty new to rust.