proto.rune.tx.new: include memo in TxID for deposit transactions (bugfix)

Fixes a bug whereby all memoless registration transactions had the same MMGen
TxID.
This commit is contained in:
The MMGen Project 2026-10-20 17:38:48 +00:00
commit fa905256af
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -40,7 +40,7 @@ class New(VmNew, Base, TxBase.New):
def update_txid(self):
return super().update_txid(
self.serialized |
({'memo': self.swap_memo} if self.is_swap else {}))
({'memo': self.swap_memo} if self.is_swap or self.is_deposit else {}))
async def make_txobj(self): # called by create_serialized()
acct_info = self.rpc.acct_info(self.inputs[0].addr)