Added stamp value property on inbound

This commit is contained in:
Mark Qvist 2024-09-08 01:22:00 +02:00
commit 6d83b019e1
3 changed files with 33 additions and 7 deletions

View file

@ -1282,8 +1282,10 @@ class LXMRouter:
destination_tickets = self.get_inbound_tickets(message.source_hash)
if message.validate_stamp(required_stamp_cost, tickets=destination_tickets):
message.stamp_valid = True
message.stamp_checked = True
else:
message.stamp_valid = False
message.stamp_checked = True
if not message.stamp_valid:
if self._enforce_stamps: