api: Add "message_nets" field to bids and offers.

This commit is contained in:
tecnovert
2025-07-31 00:03:10 +02:00
parent fea7130835
commit f932a41b1a
3 changed files with 14 additions and 1 deletions

View File

@@ -416,6 +416,7 @@ def js_offers(self, url_split, post_string, is_json, sent=False) -> bytes:
"is_revoked": True if o.active_ind == 2 else False,
"is_public": o.addr_to == swap_client.network_addr
or o.addr_to.strip() == "",
"message_nets": o.message_nets,
}
offer_data["auto_accept_type"] = getattr(o, "auto_accept_type", 0)
if with_extra_info:
@@ -433,7 +434,6 @@ def js_offers(self, url_split, post_string, is_json, sent=False) -> bytes:
offer_data["feerate_to"] = o.to_feerate
offer_data["automation_strat_id"] = getattr(o, "auto_accept_type", 0)
offer_data["auto_accept_type"] = getattr(o, "auto_accept_type", 0)
if o.was_sent:
try:

View File

@@ -367,6 +367,7 @@ def describeBid(
"events": bid_events,
"debug_ui": swap_client.debug_ui,
"reverse_bid": reverse_bid,
"message_nets": bid.message_nets,
}
if edit_bid: