-
Notifications
You must be signed in to change notification settings - Fork 110
Refactor lastSentCheque
according to lastReceivedCheque
#1604
Comments
Are we positive we only care about the last cheque, in all cases? |
Yes, that should be all we need as it is cumulative. The honey - crypto exchange rate is calculated upon receiving the cheque - at that point we have 2 last cheques which is sufficient. |
The "fast" way to do it would be to just move the I think a better approach would be to do a bigger refactoring and move all things related to a single peer away from My idea would be:
|
Yes indeed I have also seen the need for a complete refactoring.
|
@ralph-pichler, is this issue going to address the following comment?
Originally posted by @zelig in PR #1554 if not, please let me know so i can create a separate issue for this. also: same goes for the issue of only accessing disk when writing values to the maps, instead of when reading them as well (we talked about this on friday with @holisticode) thanks |
@mortelli kind of. While not part of the issue description here it will all be changed as part of the same PR as the |
PR #1590 introduced a
lastReceivedCheque
on thePeer
, with corresponding methods to access this member.However, for accessing the last sent cheque, we don't have this functionality.
For consistency, it would be better if we had this consistent, thus we should have a
lastSentCheque
with its accessor methods onPeer
.The text was updated successfully, but these errors were encountered: