mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-15 21:12:14 -04:00
Renaming of storage messages, add comments
This commit is contained in:
parent
fa2da8dbe5
commit
3dbcfb650a
22 changed files with 241 additions and 182 deletions
|
@ -57,7 +57,7 @@ public class OfferBook {
|
|||
@Override
|
||||
public void onAdded(ProtectedData entry) {
|
||||
log.debug("onAdded " + entry);
|
||||
Serializable data = entry.expirablePayload;
|
||||
Serializable data = entry.expirableMessage;
|
||||
if (data instanceof Offer) {
|
||||
Offer offer = (Offer) data;
|
||||
OfferBookListItem offerBookListItem = new OfferBookListItem(offer);
|
||||
|
@ -69,8 +69,8 @@ public class OfferBook {
|
|||
@Override
|
||||
public void onRemoved(ProtectedData entry) {
|
||||
log.debug("onRemoved " + entry);
|
||||
if (entry.expirablePayload instanceof Offer) {
|
||||
Offer offer = (Offer) entry.expirablePayload;
|
||||
if (entry.expirableMessage instanceof Offer) {
|
||||
Offer offer = (Offer) entry.expirableMessage;
|
||||
|
||||
// Update state in case that that offer is used in the take offer screen, so it gets updated correctly
|
||||
offer.setState(Offer.State.REMOVED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue